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 scope helps you manage the in-scope asset list for bug-bounty programs. The import subcommand pulls the current scope directly from a bug-bounty platform’s API and writes it to a local YAML file. The diff subcommand compares two scope files and reports added or removed domains and CIDRs — a key building block for continuous attack surface management (ASM) workflows where you re-import scope daily and scan only the net-new assets.
Synopsis
Subcommands
scope import <platform> <program-slug>
Pull the in-scope asset list for a bug-bounty program and write it to a YAML file.
Supported platforms:
| Platform | Alias | Auth env vars |
|---|---|---|
| HackerOne | h1 or hackerone | HACKERONE_API_USER, HACKERONE_API_TOKEN |
| Bugcrowd | bugcrowd | BUGCROWD_API_TOKEN |
| Intigriti | intigriti | INTIGRITI_API_TOKEN |
- Environment variable (CI-friendly)
- OS keychain entry (set by
pentestswarm initorpentestswarm scope login)
Output file path for the imported scope definition.
scope.yaml output structure:
scope diff <prev.yaml> <current.yaml>
Compare two scope YAML files and report the set-difference — which domains and CIDRs were added or removed between the two snapshots.
Emit the diff as machine-readable JSON/YAML instead of human-readable text. Useful for feeding into downstream automation.
| Code | Meaning |
|---|---|
0 | Scope files are identical — no changes. |
1 | Changes found — assets were added or removed. |
scope diff composable in shell pipelines and CI jobs:
ASM pipeline pattern
Usescope diff to build a continuous ASM loop that only scans net-new assets:
Examples
scan
Feed an imported scope.yaml into the AI swarm with
--scopeplaybook
Use scope files with the bug-bounty playbook for structured runs
init
Store platform API tokens in the OS keychain with
pentestswarm initcampaign
Monitor campaigns launched from scoped asset lists