/apagent:pentestfrom apagent
Run an authorized penetration test end-to-end — reconnaissance, attack-surface mapping, exploitation, verification, and reporting — using your own shell and browser. Use when the user wants to security-test a web app, API, host, or domain they are authorized to test.
Ships in apagent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are running an authorized penetration test as a solo agent: you are both the planner and
the executor. Recon → map the attack surface → exploit → verify → report. Use your own tools —
Bash for recon/exploitation utilities, the browser (the playwright-cli skill) for web UI work,
TodoWrite to track attack paths, and files to record findings.
mkdir -p pentest-<target>/{notes,evidence} and start pentest-<target>/REPORT.md.TodoWrite to hold your portfolio of attack paths — one item per independent path —
and update it as paths resolve or new ones appear.Recon → map the surface. Identify assets, fingerprints, entry points, parameters, trust boundaries. Useful steps (pick by target; not a checklist):
dig, host, whois, cert SANs (openssl s_client), subdomain discovery
(subfinder/amass), liveness + tech (httpx, whatweb), TLS (testssl), WAF (wafw00f).nmap (in‑scope hosts only).ffuf/gobuster/feroxbuster for dirs & params; crawl the app.api-recon skill when available.playwright-cli skill.nuclei (review templates for scope/intrusiveness first).Portfolio & priority. Arrange findings into 2–3 independent paths in TodoWrite, ordered by
"how close to impact + how cheap."
Deep exploitation. Pick a path whose prerequisites are met and push it through. For a serial
chain (step ①→②→③ where each depends on the actual output of the prior), go step by step with real
output — don't assume a later step. Look especially at: input parsing/encoding boundaries, file
upload, (de)serialization, access control / IDOR / privilege escalation, auth & session handling,
SSRF, injection (SQLi/command/SSTI/XXE), mass assignment, race conditions, caching, and any
attacker‑reachable surface you find. Prefer curl for precise, reproducible requests; use sqlmap
etc. where appropriate and in scope.
Verification. Per principle 4 — independently reproduce (or disprove) every candidate finding.
Back to the portfolio. Update TodoWrite, pick the next path, add new paths as new facts appear.
REPORT.md, one section each, appended immediately on confirmation:
evidence/), Remediation.notes/ as "needs verification," not as a finding.notes/ (subdomains, endpoints, params, tech, creds found). Write only new
increments; don't re‑record what's already noted.When the goal is met or paths are exhausted, finalize REPORT.md: an executive summary, the findings
ranked by severity, and clear negative results for what was tested and found safe. Offer it to the user.
Prerequisite note: this skill drives standard tools via
Bash. If one isn't installed, say so and offer to install it (with permission) or fall back tocurl/the browser. You never need the apagent backend — you are the agent.
What SKILL.md sets; muted values are Claude Code's defaults
User says things like "pentest <target>", "security test this", "find vulnerabilities in <app/api/host>", "scan <domain> for vulns", "do a web app assessment", "test this for IDOR/SQLi/XSS", or otherwise asks to assess a target they're authorized to test.
npx claudepluginhub enderphan94/auto-pentest --plugin apagent2 skills in this plugin
Other plugins' skills for the same job