Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Armur-Ai/Pentest-Swarm-AI/llms.txt
Use this file to discover all available pages before exploring further.
pentestswarm playbook lets you run structured, repeatable attack sequences defined in YAML instead of relying on the freestyle AI swarm. Playbooks encode expert knowledge about a specific testing objective — OWASP Top 10, bug-bounty recon, CI/CD pipeline auditing, CTF solving — into an ordered series of phases, each specifying which tools to run and how the AI should interpret the results. This makes campaigns auditable, shareable, and reproducible across teams.
Synopsis
Subcommands
playbook run <path-or-name>
Execute a playbook against a target. The argument is either a direct file path to a YAML file or the name of a playbook in the ./playbooks/ directory (without the .yaml extension).
The domain name or IP address to test. Required.
pentestswarm scan --follow.
Example output:
playbook list
List all playbooks discovered in the ./playbooks/ directory, showing phase count and tags.
playbook validate <path>
Parse and validate a playbook YAML file without running it. Checks that required fields are present, tool names are recognized, and variable references are consistent.
playbook create
Scaffold a new playbook YAML file at ./playbooks/my-playbook.yaml with sensible defaults and inline comments. Edit the generated file, then run playbook validate before using it.
Built-in playbooks
The following playbooks ship in the./playbooks/ directory:
| Name | File | Phases | Tags |
|---|---|---|---|
| Bug Bounty Swarm | bug-bounty.yaml | 4 | bug-bounty, external, web, recon, active |
| OWASP Top 10 Assessment | owasp-top10.yaml | 4 | web, owasp, comprehensive |
| External Attack Surface Monitoring | external-asm.yaml | 5 | asm, external, monitoring, passive-first |
| CI/CD Security Swarm | ci-cd-security.yaml | 4 | ci, cd, sast, secrets, sbom, sarif |
| Internal Network Swarm | internal-network.yaml | 3 | internal, network, authorized-only, high-risk |
| CTF Solver Swarm | ctf-solver.yaml | 4 | ctf, htb, thm, benchmark, autonomous |
| API Security Assessment | api-security.yaml | 2 | api, rest, graphql |
Bug Bounty Swarm playbook — phase breakdown
Thebug-bounty.yaml playbook is the most comprehensive example. Its four phases are:
subdomain_enumeration— runssubfinder(recursive) anddnsx, then asks the AI to flag wildcards and dangling CNAME takeover candidates.web_surface— runshttpx,katana(depth-3 with JS crawling), andgau, then maps alive hosts, tech stacks, and deep-link endpoints.vulnerability_scan— runsnucleiagainst critical/high/medium severity templates, filtering duplicates against known program issues whenprogram_slugis set.active_escalation— opt-in phase triggered when the classifier finds aPOTENTIAL_SQLI,SSRF, orIDORfinding with pheromone score ≥ 0.5. Runssqlmapwith--batchfor automated confirmation.
Playbook YAML reference
Examples
scan
Run a freestyle AI pentest without a playbook
scope
Import and diff program scope files to feed into playbook runs
report
Polish the findings report generated after a playbook run
doctor
Verify the tools referenced in your playbooks are installed