AI-powered web application penetration testing skills with Claude Code
FAQ
claude-pentest-skills is a Claude Code plugin with 1 hand-picked skill for security work, indexed on Flowy. Install it with the command on its page. It includes claude-pentest-skills. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
$ npx -y skills add frendysanusi/claude-pentest-skills --agent claude-code
Repo: frendysanusi/claude-pentest-skills
OWASP-based methodology, curated payload references, strict validation gates, and report generation โ all orchestrated through slash commands.
Quick Startย ย |ย ย How It Worksย ย |ย ย Commandsย ย |ย ย Coverageย ย |ย ย Structure
6 slash commands ยท 3 agent personas ยท 18 vuln classes
6-gate validation ยท OWASP WSTG mapped ยท PDF report gen
Pentesting with AI is powerful, but without structure it's chaotic:
Claude Pentest Skills is a structured skill pack for Claude Code. It enforces scope, follows OWASP methodology, validates findings through a 6-gate quality process, and generates professional reports โ all through simple slash commands.
| Before | After |
|---|---|
| Ad-hoc testing, no structure | OWASP WSTG methodology with coverage tracking |
| False positives in reports | 6-gate validation kills bad findings before they waste your time |
| "Is this in scope?" uncertainty | Mandatory /scope gate โ refuses to test without authorization |
| Write reports from scratch | /report --full generates professional markdown + PDF |
| Forget what you tested | Payload log + coverage tracker across sessions |
| Search PayloadAllTheThings manually | Curated methodology + direct references per vuln class |
Step 1 โ Clone
git clone https://github.com/frendysanusi/claude-pentest-skills.git
cd claude-pentest-skills
Step 2 โ (Optional) Set up tools
# Burp Suite MCP
cp .mcp.json.example .mcp.json
# Edit with your local paths
# PDF report generation
python3 -m venv .venv
.venv/bin/pip install markdown weasyprint
Step 3 โ Hunt
claude # Start Claude Code in the project dir
/scope target.com # Define authorization (REQUIRED first step)
/recon target.com # Map attack surface
/hunt injection # Test for SQLi, NoSQLi, CMDi, SSTI, XXE
/validate # 6-gate quality check
/report --full # Generate pentest report
YOU
|
โโโโโโโผโโโโโโ
โ Claude โ <โโ Burp MCP (optional)
โ Code โ
โโโโโโโฌโโโโโโ
|
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโ
| | |
โโโโโโโผโโโโโโโ โโโโโโโโผโโโโโโ โโโโโโโผโโโโโโ
โ Recon โ โ Hunter โ โ Validator โ
โ Agent โ โ Agent โ โ Agent โ
โโโโโโโฌโโโโโโโ โโโโโโโโฌโโโโโโ โโโโโโโฌโโโโโโ
| | |
curl / Burp payloads/ 6-gate check
JS analysis PASS / REJECT
tech fingerprint NEEDS-WORK
| | |
โโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโ
โ engagements/<target>/ โ
โ โ
โ scope.md ยท findings.md ยท payload-log.md โ
โ coverage.md ยท tech-stack.md ยท notes.md โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
โโโโโโโผโโโโโโ
โ /report โ โโ> Markdown + PDF
โโโโโโโโโโโโโ
Each command loads the right agent persona, methodology skill, and payload references. State is tracked per engagement in engagements/<target>/.
| Command | What It Does |
|---|---|
/scope <target> | Define target scope and confirm authorization. Must run first. |
/recon <target> | Map attack surface โ tech stack, endpoints, input vectors, WAF detection |
/hunt <vuln-class> | Test for a specific vulnerability class using OWASP methodology |
/validate | Run 6-gate quality check on all unvalidated findings |
/report --full | Generate complete pentest report (exec summary, findings, remediation) |
/report --finding F-001 | Generate report for a single finding |
/status | Show engagement dashboard โ findings, coverage, payload stats |
/hunt injection # SQLi, NoSQLi, CMDi, SSTI, XXE
/hunt auth-access # IDOR, JWT, OAuth, privilege escalation
/hunt server-side # SSRF, path traversal, file upload, deserialization
/hunt client-side # XSS, CSRF, open redirect
/hunt session # Session fixation, token weakness, cookie security
/hunt business-logic # Race conditions, workflow bypass, logic flaws
/hunt config # Headers, CORS, TLS, info disclosure
/hunt ai-llm # Prompt injection, LLM tool abuse, system prompt leakage
# Or target specific sub-classes:
/hunt sqli /hunt xss /hunt ssrf
/hunt idor /hunt jwt /hunt prompt-injection
3 specialized personas, each activated by the relevant command:
| Agent | Activated By | Personality | Role |
|---|---|---|---|
| Recon Agent | /recon | Systematic, methodical | Maps the full attack surface before exploitation |
| Hunter Agent | /hunt | Creative, persistent | Tries bypass techniques, iterates on partial success |
| Validator Agent | /validate | Skeptical, adversarial | Assumes false positive until proven otherwise |
When no command is active, Claude behaves as a general security consultant.
Every finding must pass all 6 gates to reach the report. One failure = REJECTED or NEEDS-WORK.
Finding โโ> Gate 1: Reproducible PoC?
Gate 2: HTTP evidence captured?
Gate 3: Impact verified (not theoretical)?
Gate 4: Target in scope?
Gate 5: Real vulnerability (not informational)?
Gate 6: Client can reproduce it?
โ
โโโโโโโโโโโโผโโโโโโโโโโโ
โ โ โ
VALIDATED REJECTED NEEDS-WORK
(โ report) (killed) (fix & retry)
This process eliminates false positives, ensures evidence quality, and produces findings that clients can verify independently.
| Class | Sub-Classes |
|---|---|
| SQL Injection | Union, blind, time-based, error-based, auth bypass |
| XSS | Reflected, stored, DOM, CSP bypass, polyglots |
| SSRF | Internal access, cloud metadata, protocol abuse, IP bypass |
| SSTI | Jinja2, Twig, Freemarker, Pebble, Mako, ERB |
| Command Injection | Metacharacters, blind detection, space/quote bypass |
| XXE | Classic, blind OOB, SVG upload, XInclude, PHP filter |
| Path Traversal | Encoding bypass, null byte, overlong UTF-8 |
| File Upload | Extension bypass, MIME spoof, magic bytes, polyglots |
| IDOR | Sequential ID, UUID harvest, GraphQL node, HPP |
| JWT Attacks | alg:none, RS256โHS256, KID injection, claim tampering |
| OAuth/OIDC | Redirect URI bypass, state absence, PKCE downgrade |
| NoSQL Injection | MongoDB operator injection, $regex blind, $where |
| Deserialization | Java/PHP/Python/.NET/Ruby/YAML gadgets |
| CSRF | Auto-submit forms, JSON CSRF, SameSite bypass |
| Open Redirect | Protocol-relative, encoding chains, @ symbol tricks |
| Request Smuggling | CL.TE, TE.CL, HTTP/2 downgrade, TE obfuscation |
| Race Condition | TOCTOU, coupon reuse, rate limit bypass, double spend |
claude-pentest-skills/
โโโ commands/
โ โโโ scope.md # /scope โ define target authorization
โ โโโ recon.md # /recon โ map attack surface
โ โโโ hunt.md # /hunt โ test vulnerability class
โ โโโ validate.md # /validate โ 6-gate quality check
โ โโโ report.md # /report โ generate pentest report
โ โโโ status.md # /status โ engagement dashboard
โ
โโโ agents/ # Agent persona definitions
โ โโโ recon-agent.md
โ โโโ hunter-agent.md
โ โโโ validator-agent.md
โ
โโโ skills/
โ โโโ recon.md # Reconnaissance phases
โ โโโ validate.md # 6-gate validation process
โ โโโ report.md # Report templates + CVSS guide
โ โโโ hunting/ # Per-vuln-class methodology
โ โโโ injection.md โ auth-access.md โ server-side.md
โ โโโ client-side.md โ session.md โ business-logic.md
โ โโโ config.md โ ai-llm.md
โ
โโโ payloads/ # Methodology + payload references
โ โโโ sqli.md โ xss.md โ ssrf.md โ ssti.md โ xxe.md
โ โโโ cmdi.md โ idor.md โ jwt.md โ oauth.md โ nosqli.md
โ โโโ csrf.md โ path-traversal.md โ file-upload.md
โ โโโ deserialization.md โ open-redirect.md
โ โโโ request-smuggling.mdโ race-condition.md
โ โโโ prompt-injection.md
โ
โโโ mcp/ # MCP server integration docs
โ โโโ burp-suite/ # Burp Suite proxy setup
โ
โโโ tools/ # Utilities
โ โโโ md2pdf.py # Markdown โ styled PDF report
โ
โโโ engagements/ # Per-target state (gitignored)
โ โโโ <target>/
โ โโโ scope.md โ findings.md โ payload-log.md
โ โโโ coverage.md โ tech-stack.md โ notes.md
โ โโโ report-*.md / report-*.pdf
โ
โโโ local-payloads/ # Full curated payloads (gitignored)
โโโ CLAUDE.md # Master config for Claude Code
โโโ .mcp.json.example # MCP config template
| Tool | Integration | Use |
|---|---|---|
| Burp Suite | MCP server | Proxy, traffic analysis, request replay |
| SQLMap | Bash (post-detection) | Automated SQL injection exploitation |
| Commix | Bash (post-detection) | Automated command injection exploitation |
| Custom scripts | Claude generates on the fly | Race conditions, token analysis, encoding |
| md2pdf.py | Python (weasyprint) | Convert report markdown to styled PDF |
SQLMap and Commix are used only after manual detection confirms the vulnerability. Never as first-pass scanners.
The public payloads/ directory contains methodology and payload references. For curated payload lists with full exploit code, add them to local-payloads/ (gitignored):
mkdir local-payloads
# Add your curated .md files with full payloads here
# The hunt skills will reference both payloads/ and local-payloads/
These are enforced in CLAUDE.md. Non-negotiable.
1. SCOPE FIRST /scope must run before any other command
2. CHECK EVERY REQUEST verify against scope.md before sending
3. LOG BEFORE ANALYZE write payload to log BEFORE reading response
4. NO OUT-OF-SCOPE refuse requests to excluded domains/paths
5. ASK IF UNCERTAIN stop and confirm with user when scope is ambiguous
6. WARN ON DESTRUCTIVE get explicit approval for DELETE/data modification
For authorized security testing only. Only test systems you own or have explicit written permission to test.
.gitignore
.mcp.json.example
agents/
hunter-agent.md
recon-agent.md
validator-agent.md
CLAUDE.md
commands/
hunt.md
recon.md
report.md
scope.md
status.md
validate.md
mcp/
burp-suite/
setup.md
README.md
payloads/
cmdi.md
csrf.md
deserialization.md
file-upload.md
idor.md
jwt.md
nosqli.md
oauth.md
open-redirect.md
path-traversal.md
prompt-injection.md
race-condition.md
request-smuggling.md
sqli.md
ssrf.md
ssti.md
xss.md
xxe.md
README.md
SKILL.md
skills/
hunting/
ai-llm.md
auth-access.md
business-logic.md
client-side.md
config.md
injection.md
server-side.md
session.md
recon.md
report.md
validate.md
tools/
md2pdf.pyยฉ 2026 Flowy ยท Free and open source
Built for Claude Code ยท Not affiliated with Anthropic
| Prompt Injection | Direct override, system prompt extraction, persona hijack, encoding bypass, tool abuse, indirect injection |