zen-ai-pentest-framework — Claude Code skill: autonomous pentest
A skill that sets up an autonomous pentest framework for AI agents, running real security tools and producing compliance-mapped reports.
npx skills add reason-machines/security-skills --skill zen-ai-pentest-framework -a claude-codeWhat zen-ai-pentest-framework does
This skill covers deploying Zen-AI-Pentest, a framework where AI agents drive actual security tooling — Nmap, Nuclei, SQLMap, FFuF and more — inside a Docker sandbox instead of faking results. Agents follow the ReAct loop: reason, act, observe, reflect. Four safety levels decide what is allowed, from passive information gathering up to exploit validation.
The stack includes a FastAPI backend pushing live updates over WebSocket, PostgreSQL for persistence, Redis for caching, JWT auth with RBAC, and report output in PDF, HTML or JSON mapped to OWASP, PCI-DSS and GDPR. A Python SDK lets you create a scan with ZenClient, wait for it to finish and save the report. Custom tools plug in through the BaseTool class.
You need Python 3.10+, Docker and Docker Compose, PostgreSQL 13+, plus OPENAI_API_KEY and ANTHROPIC_API_KEY in .env. Level 3 requires a VPN — without one it will not run. Installing manually also means pulling nmap, sqlmap and the rest yourself.
What it helps with
- stand up an autonomous pentest framework that runs real tools
- scan a target with AI agents under a chosen safety level
- produce a vulnerability report with CVSS and EPSS scoring
- wire a custom security tool into the agent
- run pentests from a CI/CD pipeline
Example prompts for the agent
- Deploy Zen-AI-Pentest with Docker Compose and run a quick scan on example.com
- Create a scan at safety level 1 using nmap, nuclei and whatweb
- Configure an agent with memory at level 2 to probe web vulnerabilities
How to install zen-ai-pentest-framework
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill zen-ai-pentest-framework -a claude-code2Manually: put the files in place
~/.claude/skills/zen-ai-pentest-framework/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/zen-ai-pentest-framework/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill zen-ai-pentest-framework -a codex2Manually: put the files in place
.agents/skills/zen-ai-pentest-framework/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill zen-ai-pentest-framework -a cursor2Manually: put the files in place
.cursor/skills/zen-ai-pentest-framework/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/security-skills zen-ai-pentest-framework2Manually: put the files in place
.github/skills/zen-ai-pentest-framework/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill zen-ai-pentest-framework -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/security-skills --path skills/zen-ai-pentest-frameworkManually: put the files in place
.devin/skills/zen-ai-pentest-framework/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill zen-ai-pentest-framework -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about zen-ai-pentest-framework
How do I install zen-ai-pentest-framework in Claude Code?
Run npx skills add reason-machines/security-skills --skill zen-ai-pentest-framework -a claude-code. The skill lands in ~/.claude/skills/zen-ai-pentest-framework/SKILL.md.
What does zen-ai-pentest-framework do?
It deploys an autonomous pentest framework: AI agents execute real security tools in a Docker sandbox, collect findings and generate reports mapped to compliance frameworks.
What do I need to run the framework?
Python 3.10+, Docker and Docker Compose, PostgreSQL 13+, and OPENAI_API_KEY and ANTHROPIC_API_KEY in .env. Redis is only for caching.