cognis-digital/certsearch

GitHub: cognis-digital/certsearch

一款分析证书透明度导出文件以发现子域名和违规证书签发的安全工具,支持 CI 集成与 AI 智能体调用。

Stars: 0 | Forks: 0

CERTSEARCH # CERTSEARCH ### 分析 Certificate-Transparency 导出文件以获取子域名与违规签发情况 [![PyPI](https://img.shields.io/pypi/v/cognis-certsearch.svg?color=6b46c1)](https://pypi.org/project/cognis-certsearch/) [![CI](https://static.pigsec.cn/wp-content/uploads/repos/2026/06/aab54424ce060822.svg)](https://github.com/cognis-digital/certsearch/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) *Cognis Neural Suite 的一部分。*
``` pip install cognis-certsearch certsearch scan . # → prioritized findings in seconds ``` ## 使用说明 — 逐步指南 `certsearch` 通过分析 Certificate-Transparency 导出文件,来提取某个基础域名的子域名。 1. **安装**: pip install -e . 2. **分析某个基础域名的 CT 导出文件** (JSON/JSONL/CSV): certsearch analyze ct-export.jsonl -d example.com 3. **通过 stdin 管道传入导出文件**: cat ct-export.json | certsearch analyze - -d example.com 4. **将报告输出**为 JSON 或 HTML 文件: certsearch analyze ct-export.jsonl -d example.com --format html -o report.html 5. **在 CI/cron 中自动化运行** — 输出 JSON 供攻击面监控使用: certsearch analyze ct-export.jsonl -d example.com --format json -o subdomains.json ## 目录 - [为什么选择 certsearch?](#why) · [功能](#features) · [快速开始](#quick-start) · [示例](#example) · [架构](#architecture) · [AI 技术栈](#ai-stack) · [对比](#how-it-compares) · [集成](#integrations) · [随处安装](#install-anywhere) · [相关项目](#related) · [贡献指南](#contributing) ## 为什么选择 certsearch? 无需搭建沉重的底层基础设施,即可分析 Certificate-Transparency 导出文件,挖掘子域名并发现违规签发行为。 `certsearch` 专一专注、可脚本化且支持自托管:只需指定目标,即可输出符合您工作流格式的优先级排序结果(table · JSON · SARIF),将其用作 CI 的把关工具,并允许智能体通过 MCP 调用它。
↑ 回到顶部
## 功能 - ✅ 解析导出文件 - ✅ 分析 - ✅ 支持 Linux/macOS/Windows · Docker · devcontainer 运行 - ✅ 提供 Python、JavaScript、Go 和 Rust 版本 (`ports/`)
↑ 回到顶部
## 快速开始 ``` pip install cognis-certsearch certsearch --version certsearch scan . # scan current project certsearch scan . --format json # machine-readable certsearch scan . --fail-on high # CI gate (non-zero exit) ```
↑ 回到顶部
## 示例 ``` $ certsearch scan . [HIGH ] CER-001 example finding (./src/app.py) [MEDIUM ] CER-002 another signal (./config.yaml) 2 findings · risk score 5 · 38ms ```
↑ 回到顶部
## 架构 ``` flowchart LR IN[target / export] --> P[certsearch
collect + correlate] P --> OUT[ranked findings] ```
↑ 回到顶部
## 从任何 AI 技术栈中使用 `certsearch` 兼容所有主流的 AI 使用方式: - **MCP server** — `certsearch mcp` (Claude Desktop, Cursor, Cognis.Studio, [uncensored-fleet](https://github.com/cognis-digital/uncensored-fleet)) - **OpenAI 兼容 / JSON** — 通过管道将 `certsearch scan . --format json` 传给任何 agent 或 LLM - **LangChain · CrewAI · AutoGen · LlamaIndex** — 一行代码将 CLI/JSON 封装为工具 - **CI / 脚本** — 为非 AI pipeline 提供 exit code 和 SARIF 支持
↑ 回到顶部
## 对比 | | **Cognis certsearch** | 典型工具 | |---|:---:|:---:| | 支持自托管,无需账号 | ✅ | 视情况而定 | | 单条命令,零配置 | ✅ | ⚠️ | | 适配 CI 的 JSON + SARIF | ✅ | 视情况而定 | | MCP 原生支持 (AI agents) | ✅ | ❌ | | 多语言端口 (JS/Go/Rust) | ✅ | ❌ | | 开源协议 | ✅ COCL | 视情况而定 |
↑ 回到顶部
## 集成 可无缝接入您的现有技术栈:**SARIF** 用于代码扫描,**JSON** 用于万物互联,**MCP server** (`certsearch mcp`) 用于 AI agents,以及用于 SIEM/Slack/Jira 的 webhook 转发器。详见 [`docs/INTEGRATIONS.md`](docs/INTEGRATIONS.md)。
↑ 回到顶部
## 安装 — 全方式、全平台 ``` pip install "git+https://github.com/cognis-digital/certsearch.git" # pip (works today) pipx install "git+https://github.com/cognis-digital/certsearch.git" # isolated CLI uv tool install "git+https://github.com/cognis-digital/certsearch.git" # uv pip install cognis-certsearch # PyPI (when published) docker run --rm ghcr.io/cognis-digital/certsearch:latest --help # Docker brew install cognis-digital/tap/certsearch # Homebrew tap curl -fsSL https://raw.githubusercontent.com/cognis-digital/certsearch/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/certsearch` | [DEPLOY.md](docs/DEPLOY.md) (AWS/Azure/GCP/k8s) |
↑ 回到顶部
## 相关 Cognis 工具 **探索全套工具 →** [🗂️ 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+ 工具之一 · 让明天更美好
标签:Blue Team, GitHub, 动态插桩, 可视化界面, 子域名枚举, 实时处理, 数据可视化, 日志审计, 系统安全, 证书透明度, 请求拦截, 逆向工具