cognis-digital/cryptotrace

GitHub: cognis-digital/cryptotrace

免费层级的区块链调查工具,通过 ETH/BTC 地址聚类与 OFAC 制裁名单交叉比对来识别交易中的制裁风险。

Stars: 0 | Forks: 0

CRYPTOTRACE # CRYPTOTRACE ### 免费层级的区块链调查工具 — ETH/BTC 聚类 + 制裁名单交叉比对 [![PyPI](https://img.shields.io/pypi/v/cognis-cryptotrace.svg?color=6b46c1)](https://pypi.org/project/cognis-cryptotrace/) [![CI](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/fb83db14f2182334.svg)](https://github.com/cognis-digital/cryptotrace/actions) [![License: COCL 1.0](https://img.shields.io/badge/License-COCL%201.0-2b6cb0.svg)](LICENSE) [![Suite](https://img.shields.io/badge/Cognis-Neural%20Suite-6b46c1.svg)](https://github.com/cognis-digital) *OSINT / SIGINT — 开源情报收集与关联分析。*
``` pip install cognis-cryptotrace cryptotrace scan . # → prioritized findings in seconds ``` ## 用法 — 逐步指南 1. **安装**该工具: pip install cognis-cryptotrace 2. **筛查交易列表**(JSON/JSONL,或 `-` 代表 stdin),以检查 OFAC 制裁命中情况、间接风险暴露以及实体集群: cryptotrace screen txs.json --max-hops 2 3. **检查单个地址**或列出内置的 OFAC SDN 加密货币地址: cryptotrace check 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa cryptotrace sdn 4. **阅读结果。** `screen` 会报告交易/地址计数、集群、受制裁的集群,以及按严重程度划分的调查发现;添加 `--format json`(或 `-o file`)。当发现受制裁风险暴露(critical/high/medium)时退出码为 `1`,否则为 `0`。`cluster` 会将地址归组为单一实体钱包。 5. **拦截 / 管道传输。** 流式输入交易并根据结果执行操作: cat txs.jsonl | cryptotrace screen - --format json | jq '.max_severity' ## 目录 - [为什么选择 cryptotrace?](#why) · [功能](#features) · [快速开始](#quick-start) · [示例](#example) · [架构](#architecture) · [AI 技术栈](#ai-stack) · [对比分析](#how-it-compares) · [集成](#integrations) · [随处安装](#install-anywhere) · [相关工具](#related) · [贡献](#contributing) ## 为什么选择 cryptotrace? 免费层级的区块链调查工具 — ETH/BTC 聚类 + 制裁名单交叉比对 — 无需部署重型基础设施。 `cryptotrace` 是单一用途、可脚本化且支持自托管的:将其指向目标,以您的工作流已支持的格式(表格 · JSON · SARIF)获取优先排序的结果,据此拦截 CI,并让智能体通过 MCP 驱动它。
↑ 返回顶部
## 功能 - ✅ 标准化 - ✅ 地址分类 - ✅ 地址聚类 - ✅ 制裁名单交叉比对 - ✅ 调查 - ✅ 可在 Linux/macOS/Windows · Docker · devcontainer 上运行 - ✅ 提供 Python、JavaScript、Go 和 Rust 移植版本 (`ports/`)
↑ 返回顶部
## 快速开始 ``` pip install cognis-cryptotrace cryptotrace --version cryptotrace scan . # scan current project cryptotrace scan . --format json # machine-readable cryptotrace scan . --fail-on high # CI gate (non-zero exit) ```
↑ 返回顶部
## 示例 ``` $ cryptotrace scan . [HIGH ] CRY-001 example finding (./src/app.py) [MEDIUM ] CRY-002 another signal (./config.yaml) 2 findings · risk score 5 · 38ms ```
↑ 返回顶部
## 架构 ``` flowchart LR IN[addresses + transactions] --> P[cryptotrace
cluster + trace] P --> OUT[sanctions xref / report] ```
↑ 返回顶部
## 从任何 AI 技术栈中使用 `cryptotrace` 可与所有流行的 AI 使用方式互操作: - **MCP server** — `cryptotrace mcp` (Claude Desktop, Cursor, Cognis.Studio, [uncensored-fleet](https://github.com/cognis-digital/uncensored-fleet)) - **兼容 OpenAI / JSON** — 将 `cryptotrace scan . --format json` 通过管道传递给任何 agent 或 LLM - **LangChain · CrewAI · AutoGen · LlamaIndex** — 一行代码将 CLI/JSON 封装为工具 - **CI / 脚本** — 为非 AI 流水线提供退出码 + SARIF
↑ 返回顶部
## 对比分析 | | **Cognis cryptotrace** | graphsense | |---|:---:|:---:| | 支持自托管,无需账户 | ✅ | 视情况而定 | | 单条命令,零配置 | ✅ | ⚠️ | | 用于 CI 的 JSON + SARIF | ✅ | 视情况而定 | | MCP 原生(AI 智能体) | ✅ | ❌ | | 多语言移植版本 (JS/Go/Rust) | ✅ | ❌ | | 开源许可证 | ✅ COCL | 视情况而定 | *秉承 **graphsense/graphsense-tagpacks** 的精神,以 Cognis 的方式重新构建。遗漏了致谢?提交一个 PR。*
↑ 返回顶部
## 集成 可接入您的技术栈:用于代码扫描的 **SARIF**,用于一切的 **JSON**,用于 AI 智能体的 **MCP server** (`cryptotrace mcp`),以及用于 SIEM/Slack/Jira 的 webhook 转发器。详见 [`docs/INTEGRATIONS.md`](docs/INTEGRATIONS.md)。
↑ 返回顶部
## 安装 — 所有方式,所有平台 ``` pip install "git+https://github.com/cognis-digital/cryptotrace.git" # pip (works today) pipx install "git+https://github.com/cognis-digital/cryptotrace.git" # isolated CLI uv tool install "git+https://github.com/cognis-digital/cryptotrace.git" # uv pip install cognis-cryptotrace # PyPI (when published) docker run --rm ghcr.io/cognis-digital/cryptotrace:latest --help # Docker brew install cognis-digital/tap/cryptotrace # Homebrew tap curl -fsSL https://raw.githubusercontent.com/cognis-digital/cryptotrace/main/install.sh | sh ``` | Linux | macOS | Windows | Docker | 云平台 | |---|---|---|---|---| | `scripts/setup-linux.sh` | `scripts/setup-macos.sh` | `scripts/setup-windows.ps1` | `docker run ghcr.io/cognis-digital/cryptotrace` | [DEPLOY.md](docs/DEPLOY.md) (AWS/Azure/GCP/k8s) |
↑ 返回顶部
## 相关 Cognis 工具 - [`personagraph`](https://github.com/cognis-digital/personagraph) — 身份解析档案 — 用户名/电子邮件/电话跨平台关联 - [`maritimeint`](https://github.com/cognis-digital/maritimeint) — AIS 船舶追踪与制裁规避异常检测 - [`geolens`](https://github.com/cognis-digital/geolens) — 图像地理定位工具包 — EXIF、太阳阴影、OCR、反向搜索 - [`corpmap`](https://github.com/cognis-digital/corpmap) — 公司结构与最终受益人映射工具 - [`darkmirror`](https://github.com/cognis-digital/darkmirror) — 用于品牌监控的公共 Tor 泄露站点索引表层网络镜像 **探索全套工具 →** [🗂️ 所有 170+ 工具](https://github.com/cognis-digital/cognis-neural-suite) · [⭐ awesome-cognis](https://github.com/cognis-digital/awesome-cognis) · [🔗 cognis-sources](https://github.com/cognis-digital/cognis-sources) · [🤖 uncensored-fleet](https://github.com/cognis-digital/uncensored-fleet) · [🧠 engram](https://github.com/cognis-digital/engram)
↑ 返回顶部
## 互操作性 `{}` 与包含 300+ 工具的 Cognis 套件组合使用 — JSON 输入/输出以及共享的 兼容 OpenAI 的 `/v1` 主干网。请参阅 **[INTEROP.md](INTEROP.md)** 获取 套件图谱、组合模式以及参考技术栈。 ## 许可证 在 **Cognis Open Collaboration License (COCL) v1.0** 下开源可见 — 个人、内部评估、研究和教育用途免费;**商业/生产用途需要许可证** (licensing@cognis.digital)。详见 [LICENSE](LICENSE)。
Cognis Digital · Cognis Neural Suite 中 170+ 工具之一 · 让明天在今天更美好
标签:BTC, ESC4, ETH, GitHub, OSINT, Python, 加密货币, 区块链追踪, 可视化界面, 合规审查, 实时处理, 数据可视化, 无后门, 日志审计, 请求拦截, 逆向工具