by cdxiaodong
Real-world AI penetration testing engineer for authorized assessments — built-in cloud module covering AWS/Azure/GCP + Aliyun/Tencent/Huawei clouds. Built on Claude Agent SDK
# Add to your Claude Code skills
git clone https://github.com/cdxiaodong/cain-agentLast scanned: 8/10/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-08-10T05:25:28.682Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}cain-agent is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by cdxiaodong. Real-world AI penetration testing engineer for authorized assessments — built-in cloud module covering AWS/Azure/GCP + Aliyun/Tencent/Huawei clouds. Built on Claude Agent SDK. It has 102 GitHub stars.
Yes. cain-agent 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/cdxiaodong/cain-agent" and add it to your Claude Code skills directory (see the Installation section above).
cain-agent is primarily written in Python. It is open-source under cdxiaodong 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 cain-agent against similar tools.
No comments yet. Be the first to share your thoughts!
🚧 Under active development. Star & watch for updates.
Cain is an AI penetration testing engineer built for real-world authorized security assessments — not a CTF toy. It understands business logic, maintains a global attack state machine, adapts to real WAF/risk-control environments, and ships with a built-in cloud penetration module covering AWS / Azure / GCP / 阿里云 / 腾讯云 / 华为云.
Built on Claude Agent SDK.
| CTF/靶场型 Agent | Cain (实战型) | |
|---|---|---|
| Target | Static labs, preset flags | Real enterprise assets, bug bounty, authorized engagements |
| Vulnerability focus | Known syntax-pattern vulns | Business logic flaws, auth chains, cloud misconfigurations |
| Environment | No WAF, no rate limiting | Real WAF / risk control with dynamic strategy adjustment |
| Deliverable | A flag | Auditable evidence chain + reproducible PoC + remediation advice |
Deterministic engineering constrains agent freedom — stage transitions, scope enforcement, and dangerous-operation circuit breakers are hard engineering constraints; path selection and evidence analysis are left to the agent.
skills/Cain is strictly for authorized security testing — your own environments or engagements with written authorization. Core features run with read-only credentials. Scope is enforced by configuration, not by AI self-discipline. You are responsible for complying with applicable laws.
pip install cain-agent
"安装 cain-agent 到用户本地 Python 环境,克隆仓库 https://github.com/cdxiaodong/cain-agent,用 pip/uv 装 editable 模式,验证 CLI 可执行"
This single prompt instructs any AI agent to:
pip install -e . or uv pip install -e .)cain-agent --versionPhase 0 — project scaffolding. See ROADMAP.md and CHANGELOG.md.
Apache-2.0. See LICENSE.