Bug Bounty Automation
Continuous, distributed recon and known-pattern scanning across all your programs: scope → assets → live hosts → templates → alerts. It wins on timing (first to a new asset or a new CVE) rather than depth, and it frees human time for the bugs scanners can’t find.
How it works
hakluke’s history of building one is the canonical lesson set:
- Bash v1.
cat rootdomains.txt | subfinder | httpx | dirsearch …run overnight. It failed on three counts: too slow, flat text files, and one tool error killed the whole run. - Django + PostgreSQL v2. Relational models (program → root domain → subdomain → port/URL → vuln) with created/modified timestamps. That lets you ask “what new subdomains appeared in the last hour?” Modules were Django management commands (
django-admin subfinder -program tesla), parallelised with GNUparallel/ Interlace. - Horizontal scaling. A Postgres job table broke down, RabbitMQ worked, and 100 workers covered all bounty assets. The remaining problems were a monolithic codebase and invisible worker failures.
- Unix-philosophy v3. Four decoupled parts: data store (
hakstoreREST API), job fan-out (hakscaleover a Redis queue), scanner (nuclei) and notifier (notify).
hakstore subdomains import -f subs.txt -rootdomain tesla.com
hakscale push -p "url:./urls.txt" -c "echo _url_ | nuclei -nc --config /opt/config.yml" -t 600
hakscale pop -t 20 # on each worker VPSOnce everyone automated low-hanging fruit, it stopped paying for hakluke. The infrastructure stayed valuable for instant fleet-wide checks, e.g. a new WordPress plugin bug run against every in-scope target, and for keeping an up-to-date asset inventory.
Pipeline building blocks
| Stage | Tools (from raw notes) | Notes |
|---|---|---|
| Scope feed | arkadiyt/bounty-targets-data (data/wildcards.txt, hourly H1/Bugcrowd dumps) | Seed for all-programs scanning, e.g. mass subdomain-takeover checks |
| Subdomains | subfinder, amass, puredns | See Subdomain Enumeration |
| Live hosts | httpx -sc -title -td | Defaults to 150 rps / 50 threads, so throttle it |
| URLs / JS | waybackurls/gauplus, gospider, JS download + diff | See JavaScript Analysis |
| Scanning | nuclei | Templates; -as automatic tech-based selection; -nt new templates only |
| Monitoring | jsmon (cron + Telegram/Slack diff of watched JS), n8n scheduled subdomain diffs | Alert on change, not on state |
| Frameworks | ReconWTF (amass, subfinder, puredns, gauplus, gospider, httpx, nuclei, ffuf) | All-in-one |
Production-safe baseline (xhack). Nuclei defaults to 150 rps with 25 templates × 25 hosts in parallel, which suits a lab, not most production targets.
subfinder -d example.com -silent -o subs.txt
httpx -l in-scope.txt -silent -rl 5 -sc -title -td -o alive.txt
nuclei -l alive.txt -rl 5 -severity medium,high -o nuclei-findings.txtNew-template sweep after a CVE drops, and tech-detect chaining:
nuclei -update-templates && nuclei -l alive.txt -nt
subfinder -d target.com -silent | httpx | nuclei -t technologies/tech-detect.yamlCustom template development (bugbase): -validate to lint, -debug to see raw request/response, and -p http://127.0.0.1:8080 to route through Burp.
Workflow automation and AI
- n8n (Bugcrowd). Scheduled subdomain enumeration diffed against previous runs, with alerts. A Bugcrowd scope-change monitor. A morning CVE digest via Telegram/WhatsApp with an AI summary node (React2Shell, CVE-2025-55182, as the motivating case). Scope and asset tracking across programs.
- Intigriti data. Top researchers run bots watching about 20 programs at once for new assets. The gains are coverage, timing and depth. See AI-Assisted Bug Bounty Hunting.
Pitfalls
- Scanner claims (“zero false positives”, “50x faster”) are vendor marketing that xhack could not verify. Filters reduce noise, but they don’t make a finding real. Validate manually.
- Rate limits and scope are program rules. Encode them in config (
-rl, allowlists), not memory, because automation outside scope voids authorization. - Pure low-hanging-fruit automation is a crowded race. Pair it with change detection and fast human follow-up.
Related
- Bug Bounty Hunting (hub)
- Bug Bounty Methodology · AI-Assisted Bug Bounty Hunting · Bug Bounty Program Selection
- Reconnaissance · Subdomain Enumeration · Content Discovery · JavaScript Analysis · Asset Discovery
Sources
- Hakluke: Creating the Perfect Bug Bounty Automation · original
- 10 tips for crushing bug bounties · original
- Recon automation for bug bounty hunters · original
- The Ultimate Guide to Finding Bugs With Nuclei · original
- Automating Bug Bounties with Nuclei · original
- Tips to automate your hacking using N8N · original
- robre/jsmon: a javascript change monitoring tool for bugbounties · original
- arkadiyt/bounty-targets-data · original
- How To Setup an Automated Sub-domain Takeover Scanner for All Bug Bounty Programs · original
- ReconWTF: a bug bounty recon framework · original
- Recon methodology for bug bounties: finding attack surface others miss · original
- AI raised the floor. The hacker crowd keeps raising the ceiling. · original