Playbooks
Playbooks are deterministic attack chains the swarm can execute. Where the stigmergic scheduler lets the swarm improvise — reacting to findings as they land — a playbook gives it a known-good, repeatable sequence for a specific job: a bug-bounty sweep, external attack-surface mapping, a CI/CD security gate, an internal-network pass, or a CTF solve.
Think of them as the difference between "explore this target" and "run this proven procedure against this target." Playbooks make runs reproducible and easy to drop into automation.
A playbook runs a fixed, known-good sequence — repeatable and predictable. A
scan mode (via --mode) instead steers the improvising
swarm toward an objective. Reach for a playbook when you want the same procedure
every time; reach for a swarm scan when you want the swarm to react to what it
finds.
Running a playbook
pentestswarm playbook run <name> --target <target>
For example:
pentestswarm playbook run bug-bounty --target example.com
Bundled playbooks
The repo ships a set of playbooks under
playbooks/:
bug-bounty— a bug-bounty-style sweepexternal-asm— external attack-surface mappingci-cd-security— a security gate for CI/CD pipelinesinternal-network— an internal-network passctf-solver— CTF solvingapi-security— API-focused attacksowasp-top10— OWASP Top 10 coverage
Each is a YAML file — open one to see the exact chain it runs.
The playbook format and authoring workflow are still evolving. The bundled playbooks are the best current reference for structure; dedicated authoring docs are on the way. Ask in Discord if you're writing your own and want a hand.