# 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: 1. **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. 2. **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 GNU `parallel` / Interlace. 3. **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. 4. **Unix-philosophy v3.** Four decoupled parts: data store (`hakstore` REST API), job fan-out (`hakscale` over a Redis queue), scanner (nuclei) and notifier (notify). ```bash 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 VPS ``` Once 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. ```bash 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.txt ``` New-template sweep after a CVE drops, and tech-detect chaining: ```bash nuclei -update-templates && nuclei -l alive.txt -nt subfinder -d target.com -silent | httpx | nuclei -t technologies/tech-detect.yaml ``` Custom 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 - [[raw/labs.detectify.com/hakluke-creating-the-perfect-bug-bounty-automation-5948|Hakluke: Creating the Perfect Bug Bounty Automation]] - [[raw/hakluke.com/10-tips-for-crushing-bug-bounties-5919|10 tips for crushing bug bounties]] - [[raw/xhack.io/recon-automation-for-bug-bounty-hunters-13444|Recon automation for bug bounty hunters]] - [[raw/blog.projectdiscovery.io/the-ultimate-guide-to-finding-bugs-with-nuclei-5916|The Ultimate Guide to Finding Bugs With Nuclei]] - [[raw/bugbase.ai/automating-bug-bounties-with-nuclei-4266|Automating Bug Bounties with Nuclei]] - [[raw/bugcrowd.com/tips-to-automate-your-hacking-using-n8n-bugcrowd-5865|Tips to automate your hacking using N8N]] - [[raw/github.com/robre-jsmon-a-javascript-change-monitoring-tool-for-bugbounties-5872|robre/jsmon: a javascript change monitoring tool for bugbounties]] - [[raw/github.com/arkadiyt-bounty-targets-data-this-repo-contains-hourly-updated-data-du-1005|arkadiyt/bounty-targets-data]] - [[raw/medium.com/how-to-setup-an-automated-sub-domain-takeover-scanner-for-all-bug-boun-1010|How To Setup an Automated Sub-domain Takeover Scanner for All Bug Bounty Programs]] - [[raw/solo10010.github.io/reconwtf-a-bug-bounty-recon-framework-14227|ReconWTF: a bug bounty recon framework]] - [[raw/bug-bounties.as93.net/recon-methodology-for-bug-bounties-finding-attack-surface-others-miss-14252|Recon methodology for bug bounties: finding attack surface others miss]] - [[raw/intigriti.com/ai-raised-the-floor-the-hacker-crowd-keeps-raising-the-ceiling-12333|AI raised the floor. The hacker crowd keeps raising the ceiling.]]