by Tcotl
嵌入式蜜罐与 AI Agent 反制平台:23 种 Agent 指纹识别 + 功能性伪装收编 + 对话式 C2 + 交互式 SSH 蜜罐与会话回放,实测五款主流 Agent 全部反制上线。
# Add to your Claude Code skills
git clone https://github.com/Tcotl/AgentCaptureAgentCapture is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Tcotl. 嵌入式蜜罐与 AI Agent 反制平台:23 种 Agent 指纹识别 + 功能性伪装收编 + 对话式 C2 + 交互式 SSH 蜜罐与会话回放,实测五款主流 Agent 全部反制上线。. It has 50 GitHub stars.
AgentCapture's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Tcotl/AgentCapture" and add it to your Claude Code skills directory (see the Installation section above).
AgentCapture is primarily written in Python. It is open-source under Tcotl on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh AgentCapture against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
AgentCapture 是一套面向安全值守、红蓝对抗与互联网系统接入的蜜罐态势感知与反制平台。它不是传统孤立式蜜罐,而是一个可以嵌入现有 Web 站点、反向代理链路和运营后台的 deception layer:通过隐藏路由、假凭证、文件蜜饵、Jsonp 画像、Agent 注入回显和浏览器侧信号采集,识别自动化扫描、AI Agent 探测、凭证泄露和横向侦察行为——并在识别之后主动反制。
平台的核心差异化能力是 AI Agent 反制闭环:23 种主流 Agent 产品指纹识别(Claude Code / ChatGPT Codex / Kimi Code / Pi / ZCode 等)→ 功能性伪装收编(页面可见的 Developer API 文档诱导 Agent「按文档接入」,即完成注册上线)→ 对话式 C2 控制台下发自然语言指令与任务 → 会话蜜标令牌全程归因溯源。实测五款主流通用 Agent(统一 GLM-5.3-Flash 底座、保留各自原生安全体系)全部被反制上线。
平台围绕 攻击流量、凭证蜜饵登陆、文件蜜饵下载、API 路由蜜饵命中、协议蜜罐会话、Web 应用蜜罐、C2 Agent、执行审计 建模,把攻击证据从"零散请求日志"收敛成可以追踪、可以回放的攻击链路。
蜜饵管理拆分为三类,可单独运营也可绑定成完整攻击链:
Bk2026!<会话指纹>)被攻击者窃取复用后,可溯源到具体蜜罐会话。deploy.sh,自动识别 amd64 / arm64 架构并使用 Docker Compose 部署。以下为测试环境实打实测得的反制结果:五款主流通用 Agent CLI 均接入同一模型(GLM-5.3-Flash)并保留各自原生安全体系,对运行中的蜜罐实例执行站点巡检 / 渗透任务。
| Agent | 行为检测 | 处置轨迹 | 诱饵 API 接入 | 注册上线 | 自主心跳 |
|---|---|---|---|---|---|
| ChatGPT(Codex CLI) | 命中 | challenge → block | 完成 | 已上线 | 持续 |
| Claude Code | 命中 | challenge → isolate | 完成 | 已上线 | 持续 |
| OpenCode | 命中 | challenge → isolate | 完成 | 已上线 | 持续 |
| kimiCode | 命中 | challenge → isolate | 完成 | 已上线 | 持续 |
| Pi | 命中 | challenge → block | 完成 | 已上线 | 持续 |
五家全部被反制上线:Agent 自主完成"读取页面 Developer API 说明 → 携会话令牌调用结构化 API → 按 API 文档注册客户端 → 周期心跳"的完整接入流程,进入 C2 名册并可通过心跳领取操作员任务;全过程以会话蜜标令牌(session canary token)归因,从首次页面访问到注册可完整回溯。
术语说明:显式命令式提示注入在实测中被全部主流 Agent 拒绝;平台的反制上线能力来自功能性伪装(API 接入流程),而非提示词服从。
以下截图均为测试环境运行实拍(真实浏览器窗口比例,2946×1556 @2x,非设计稿)。

组件数据流:
flowchart LR
A[真实互联网系统] --> B[反向代理 / FastAPI Middleware]
B --> C[API 路由蜜饵]
B --> D[文件蜜饵分发]
B --> E[凭证蜜饵登录页]
B --> F[Beacon / Recon / Prompt Canary]
P[协议蜜罐 SSH·MySQL·Redis·FTP·ES] --> G[(事件与证据库)]
P --> Q[(会话转录库)]
C --> G
D --> G
E --> H[(凭证观察库)]
F --> G
G --> I[风险引擎]
H --> I
I --> J[Allow / Observe / Challenge / Isolate / Block]
G --> K[后台管理台]
H --> K
Q --> K
K --> L[态势大屏 / 攻击流量 / 会话回放]
K --> M[节点管理 / 端口服务 / Web 应用]
K --> N[Jsonp 画像 / Agent 回显 / C2 控制]
K --> O[执行历史 / 用户管理]
核心运行链路:
更多说明见:docs/architecture.md;互联网系统接入方式、配置命令与接入拓扑见 docs/integration.md。
AgentCapture/
├── app/ # FastAPI 应用、路由、模型、服务、模板与静态资源
│ ├── core/ # 配置、数据库初始化与迁移
│ ├── middleware/ # 请求采集、风险判定、挑战与页面注入
│ ├── models/ # SQLAlchemy 数据模型(事件、蜜饵、会话、隔离等)
│ ├── routes/ # admin / traps / c2 / console / public api
│ ├── services/ # 风险引擎、SSH 蜜罐、欺骗文件系统、告警、保留策略等
│ ├── static/ # beacon.js、recon.js、Logo、Agent 样例
│ └── templates/ # 管理后台与公开页面模板
├── data/ # 运行期数据目录(Docker volume 持久化)
├── docs/ # 架构说明与实拍截图
├── scripts/ # 自检与运维脚本
├── Dockerfile
├── docker-compose.yml
├── deploy.sh # 一键 Docker 部署脚本
├── pyproject.toml
├── README.md
└── README_EN.md
amd64/x86_64 或 arm64/aarch64# 克隆仓库
git clone https://github.com/Tcotl/AgentCapture.git
cd AgentCapture
# 一键部署(自动识别 arm64 / amd64)
chmod +x deploy.sh
./deploy.sh
常用参数:
./deploy.sh --port 8080
./deploy.sh --admin-password 'admin'
./deploy.sh --platform linux/arm64 --pull
./deploy.sh --reset-data --yes
./deploy.sh --logs
cp .env.example .env.docker
HOST_PORT=4877 docker compose --env-file .env.docker up -d --build
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
uvicorn app.main:app --reload --host 0.0.0.0 --port 4877
默认管理员账户:
adminadmin生产环境请通过 .env.docker 或部署参数覆盖:
BOOTSTRAP_ADMIN_USERNAME