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).
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

StageTools (from raw notes)Notes
Scope feedarkadiyt/bounty-targets-data (data/wildcards.txt, hourly H1/Bugcrowd dumps)Seed for all-programs scanning, e.g. mass subdomain-takeover checks
Subdomainssubfinder, amass, purednsSee Subdomain Enumeration
Live hostshttpx -sc -title -tdDefaults to 150 rps / 50 threads, so throttle it
URLs / JSwaybackurls/gauplus, gospider, JS download + diffSee JavaScript Analysis
ScanningnucleiTemplates; -as automatic tech-based selection; -nt new templates only
Monitoringjsmon (cron + Telegram/Slack diff of watched JS), n8n scheduled subdomain diffsAlert on change, not on state
FrameworksReconWTF (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.txt

New-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.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.

Sources