by Tcotl
针对 AI 自动化渗透 Agent 的新一代反制蜜罐,通过反向代理将API密饵载入真实业务、反向提示词注入等方式反制自动化渗透 Agent,实现多款主流通用Agent的反制上线控制。
# Add to your Claude Code skills
git clone https://github.com/Tcotl/AgentCaptureLast scanned: 9/8/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-09-08T08:38:41.352Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how AgentCapture compares with popular alternatives.
AgentCapture is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Tcotl. 针对 AI 自动化渗透 Agent 的新一代反制蜜罐,通过反向代理将API密饵载入真实业务、反向提示词注入等方式反制自动化渗透 Agent,实现多款主流通用Agent的反制上线控制。. It has 125 GitHub stars.
Yes. AgentCapture passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
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!
30 days in the Featured rail · terms & refunds
⚠️ 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.
Automated security scan — not a certification.
AgentCapture 是一套面向安全值守、红蓝对抗与互联网系统接入的蜜罐态势感知与反制平台。它不是传统孤立式蜜罐,而是一个可以嵌入现有 Web 站点、反向代理链路和运营后台的 deception layer:通过隐藏路由、假凭证、文件蜜饵、Jsonp 画像、Agent 注入回显和浏览器侧信号采集,识别自动化扫描、AI Agent 探测、凭证泄露和横向侦察行为——并在识别之后主动反制。
平台的核心差异化能力是 AI Agent 反制闭环:23 种主流 Agent 产品指纹识别(Claude Code / ChatGPT Codex / Kimi Code / Pi / ZCode 等)→ 功能性伪装收编(页面可见的 Developer API 文档、Agent 自动读取的 AGENTS.md / CLAUDE.md 指令文件、MCP 工具服务诱导 Agent「按文档接入」,即完成注册上线)→ 对话式 C2 控制台下发自然语言指令与任务 → 会话蜜标令牌全程归因溯源。实测五款主流通用 Agent(统一 GLM-5.3-Flash 底座、保留各自原生安全体系)全部被反制上线。
协议蜜罐与 Web 蜜罐由 SSH 假文件系统中的内网主机线索串联成蜜网:攻击者在 SSH 蜜罐「横向移动」到内网 wiki / 数据库蜜罐,全程仍在平台观测之内,水印凭证跨面复用即刻触发 lateral_credential_reuse 高危告警。
平台围绕 攻击流量、凭证蜜饵登陆、文件蜜饵下载、API 路由蜜饵命中、协议蜜罐会话、Web 应用蜜罐、C2 Agent、执行审计 建模,把攻击证据从"零散请求日志"收敛成可以追踪、可以回放的攻击链路。
蜜饵管理拆分为三类,可单独运营也可绑定成完整攻击链:
Bk2026!<会话指纹>)被攻击者窃取复用后,可溯源到具体蜜罐会话。AGENTS.md / CLAUDE.md / .cursorrules——Agent 自动读取的项目级信任入口);MCP 蜜罐(JSON-RPC 工具服务,query_customer_db / run_diagnostic 等,调用即上线);消耗战数据集(无限分页水印假数据,逐行可溯源)。/latest/meta-data/...)返回蜜标云凭证,SSRF 利用即高危告警 + 凭证归因;毒化数据全量水印,泄露可逐条溯源。lateral_credential_reuse 高危告警。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/ # 管理后台与公开页面模板
├── api/ # Vercel 无服务器入口(Web 反制层)
├── vercel.json # Vercel 部署配置
├── data/ # 运行期数据目录(Docker volume 持久化)
├── docs/ # 架构说明与实拍截图
├── scripts/ # 自检与运维脚本
├── Dockerfile
├── docker-compose.yml
├── deploy.sh # 一键 Docker 部署脚本
├── pyproject.toml
├── README.md
└── README_EN.md
| 项目 | 信息 |
|---|---|
| 演示地址 | https://agentcapture-demo.vercel.app/ |
| 登录账号 | admin |
| 登录口令 | Admin@123(首次登录需按提示完成强制改密,演示环境可沿用) |
| 更新策略 | 每次代码推送自动部署(GitHub Actions → Vercel) |
演示环境运行于 Vercel Serverless:Web 蜜罐面、控制台与开放 API 全功能可用;SQLite 数据库不持久化(冷启动重置),端口服务蜜罐等长驻组件请自建节点部署。
curl -fsSL https://raw.githubusercontent.com/Tcotl/AgentCapture/main/scripts/install.sh | bash
脚本自动识别 Linux / macOS 与 x86_64 / aarch64,优先使用 Docker,否则原生 venv + uvic