bb-pipeline
Full bug-bounty hunting pipeline for authorized programs (Intigriti/HackerOne/Bugcrowd). Use whenever the user wants to hunt bugs, start recon on a bounty target, "go hunt", test an in-scope program,
Files3
View on GitHubSKILL.mdskills/bb-pipeline/SKILL.md
GitHubBug Bounty Pipeline
Run authorized-target hunting as a disciplined pipeline. Authorization context must exist (a bounty program with published scope).
Establish the engagement once, then run continuously. At the start, load or create the engagement manifest through the engagement skill (engagement.py). If a manifest with authorization.established: true already exists for this program, reuse it and continue from the saved phase — do not re-confirm scope or re-interview. If none exists and the user has named no program and no scope, ask once for the program page/scope, then persist it. After the manifest exists, do not ask the user to approve or advance each phase — move through the pipeline automatically, pausing only for the human-judgment gates in docs/SAFETY.md (destructive/disruptive production tests, material scope ambiguity, program-prohibited actions, mass test-account creation, payment-flow testing, report submission). The manifest carries scope, exclusions, rate limits, required headers, restrictions, recon state, current phase, and completed work; pass it to every specialist so none restarts the authorization interview or recon.
Prime directives (read first)
- Scope is law. Classify every host against the program's scope list before the first request. Out-of-scope hosts get logged in
recon/subdomains/out_of_scope_subs.txtand are never touched — not even a HEAD request. Wildcards in scope (e.g.*.cloud.target.com) are in scope; similar-looking domains (target.comvstarget.net) are not. - Audit everything. Create a workspace
recon/withaudit.log. Append one timestamped line per action batch:date -u +%FT%TZ [PHASE] what was done. Reports reference evidence files, never memory. - Program rules beat thoroughness. Read the program's rules: required headers (e.g. Intigriti requires
X-Intigriti: <username>on every request), rate limits (default assumption ≤5 req/s), forbidden endpoints, known-issues/dupes list. If the user hasn't provided required identifiers, keep volume at manual pace (single-digit requests per endpoint, ≥1.2s apart) and tell them what's blocked on compliance. - Evidence-based over brute force. Blind path guessing wastes budget and trips WAFs. Build every wordlist from JS bundles, wayback CDX, and observed traffic. Blind fuzz only after evidence-based paths are exhausted, only if the user explicitly demands it, and then throttled with the required headers.
- Honest negatives. A tested-and-rejected path is progress. Record it with the server's own error string as evidence (
403 "Cart unit does not belong to the current cart"is proof of a working authz check). Never present an unverified finding as a bug. - Rounds, not one pass. If round 1 finds nothing, the answer is deeper recon (new sources, new pivots), not the same probes harder. Each round must add a source: wayback → VT pivots → vhost brute → JS deep-dive → authenticated.
Pipeline phases
Run in order. Skip only phases the user explicitly excludes.
Phase 0 — Engagement, workspace & scope
mkdir -p recon/{subdomains,js,ips,findings}; startaudit.log.- Load or create the engagement manifest:
engagement.py --workspace recon resume; if absent, establish it once —scope_gate.py --operator-declared "<domains>" --quote "<verbatim>"when the operator declared targets in the prompt (quick-start, writes the same manifest + audit record), elseengagement.py init --program … --roots … --exclude … --restrictions …. This parses the program scope into in-scope roots, out-of-scope patterns, known-issues/forbidden actions, rate limits, and required headers once and persists them. Extract these from the supplied program page/files automatically instead of re-asking. - Record the researcher identifier for mandatory headers in the manifest (
--researcher-tag/--header, non-secret) once — not per request. Never put tokens/cookies in the manifest. - Recon branch: if the user supplied an existing recon directory, go to Phase 1b (import) instead of running fresh recon. If
recon.statusis alreadyrunning/complete/imported, do not re-run.
Phase 1 — Passive subdomain recon (multi-source, escalate per round)
Use scripts/passive_recon.sh <domain> (bundled) — 8 passive sources in parallel: certspotter, crt.name, rapiddns, Wayback CDX (root + interesting wildcards), urlscan, ctl.shodan. Then:
- Dedupe + classify:
in_scope_subs.txt/out_of_scope_subs.txt. - DNS resolve; note non-CDN IPs (different infra = interesting).
- Wayback CDX per interesting zone:
web.archive.org/cdx/search/cdx?url=*.<host>/*&collapse=urlkey&output=text&fl=original&limit=15000— yields historical hostnames + endpoint dictionaries + old params. Diff found hosts against current recon: everything new gets DNS + fingerprint. Old PHP-era endpoints (loginProcess.php, admin.php) prove nothing — verify live before caring. - VirusTotal pivots (v2 API, ~4 req/min — pace ≥16s):
vtapi/v2/ip-address/report?ip=<IP>on the target's IPs — including RFC1918 internal IPs from passive DNS. Internal IPs routinely leak sibling hostnames viaresolutionsanddetected_urls(one 10.x query once returned 350+ hostnames + forgotten vhosts).vtapi/v2/domain/report?domain=<host>—detected_urlsshows archived parameterized endpoints (tokens, IDs in query strings) anddomain_siblings.
- Wildcard-DNS zones: if
*.foo.target.comanswers the same IP for any name, DNS is useless for discovery — brute vhosts by Host header instead and diff response signatures (a wildcard zone hid a live API behindtest./demo.labels). Extract the TLS cert SANs (openssl s_client+x509 -text) — wildcard certs confirm nothing, SANs with real names are leads. - Fingerprint everything alive (status, server, title, redirect, first bytes) and sort: login-gated / IAP-gated / open apps / internal-only (10.x answering public DNS = topology leak, Low).
For active depth (DNS brute-force, live crawling, HTTP probing, ~30-bucket URL classification, opt-in checks) on the resolved in-scope set, hand off to recon-engine's scripts/recon.sh — the standard active engine, vendored from the canonical repo M0st8fa/Recon-Script. Before running it, check it is up to date: recon_sync.py status --dir <clone>, and recon_sync.py ensure --dir <clone> if stale/missing (then its setup.sh if the toolchain is absent). Run it wherever a terminal + toolchain are available (see recon-engine's execution decision table). Then ingest its output dir (Phase 1b). Do not silently downgrade a requested active run to passive-only.
Phase 1b — Import existing recon (when the user supplies a recon folder)
If the user already has recon output, start from it instead of re-running recon:
python3 -I <engagement>/scripts/ingest_recon.py <recon_dir> --workspace recon— inventories the directory (txt/csv/json/jsonl), reads run config/logs first (records which tools ran/failed/were skipped — a failed tool is missing evidence, never coverage), builds a deduplicatedinventory.jsonlpreserving method/param/endpoint variants with provenance, scope-classifies every URL, and keeps out-of-scope URLs in a separateexcluded_inventory.jsonlthat is never scheduled.- Schedule every distinct in-scope URL (
--next-batch N [--route <specialist>]), not just the homepage or first lines; batch, persist per-URLtest_status, and resume from the inventory if interrupted. Route by endpoint semantics to the specialists below.
Phase 2 — JS recon
Hand every JS bundle URL found in HTML/manifests/history/wayback to the js-recon skill (its scripts/mine_js.py does download + extraction in one pass). Deliverables: API path dictionary, GraphQL operation list, secret scan, internal-host inventory, microfrontend maps, per-environment config maps (prod/staging/QA URL sets leak the whole topology).
Phase 2.5 — Browser pass (WAF-protected frontends)
When scripts get Cloudflare-challenged (403 "Just a moment"/"Attention Required") but the app matters:
- Launch Edge/Chrome with
--remote-debugging-port=9222 --user-data-dir=<fresh>; drive it over the CDP websocket (websocket.create_connection(ws_url, suppress_origin=True)— required to pass the 403 origin check). - Timer throttling trap: an occluded/minimized window freezes
setTimeout, so asyncRuntime.evaluatehangs forever. Use sync evaluates + Python-side sleeps, or verify with a microtask test first. Page.reloadcan trigger the CF interstitial; in-pagelocation.reload()usually passes it.- Hook
XMLHttpRequest.prototype(axios apps) ANDfetchin-page to capture method/URL/headers/body + cloned responses — this recovers the real API contract behind any SPA. - Synthetic
element.click()works for most controls; real clicks needInput.dispatchMouseEventat viewport coordinates from a freshgetBoundingClientRectin the same evaluate.
Phase 3 — Authenticated testing
Real bug classes live behind login. Get sessions via the user's own accounts, in preference order:
- Cookie handoff: user pastes
Cookie:headers (Cookie-Editor export) per domain per account, labeled acct1/acct2. - Burp ingestion: user signs up through Burp, then either (a) enable the Burp REST API (
127.0.0.1:1337,/v0.1/proxy/history) and hand me the key, or (b) "Save items" from HTTP history into the workspace — I parse sessions from the file. - CDP login: I drive the browser through the login flow myself (works for password forms; NOT for email-OTP flows where the code goes to the user's inbox — for those, the user must fetch the OTP or hand off the post-login cookies).
- "Copy as cURL" blocks from DevTools — one per account.
Then: parse into jars; identify each session first via the app's session-status endpoint (
{"loggedIn":true}or identity object) before any testing. Dead jar? Say so plainly and ask for a fresh paste. Never reuse a jar that failed identification.
Phase 4 — IDOR/BOLA matrix
Use the idor-runner skill. Its script enforces the discipline that matters: positive control (owner succeeds) BEFORE cross-account attempts, mutation reverts, and JSON evidence logs. Report a negative only when the positive control succeeded or the server returned an explicit ownership error.
Phase 5 — Escalation & chains (with real-bug precedent)
For each finding, try to chain to full impact (IDOR → PII exfil on own accounts; info leak → account enumeration → verify it's not on the known-issues list). Then calibrate against the bb-disclosures corpus (11,338 real paid reports):
python3 -I <skills>/bb-disclosures/scripts/query.py --q "<pattern>" --min-bounty 1000(use the skill's own path in your install) — what did similar bugs pay, and what element did the expensive ones have that yours lacks? Close that delta or temper the claim.- Re-check every candidate against the program's out-of-scope list before writing it up — most "bugs" on real programs are pre-declared known issues (redirects, missing headers, enumeration, rate limits).
Phase 6 — Report
Use the bb-report skill. One recon/findings/report.md: every bug with Title/Summary/PoC/Impact/Remediation/CVSS, a TESTED-NEGATIVE section, and the artifact index. Update it incrementally every session, not at the end.
On Bugcrowd programs, classify every finding with the VRT (VRT: <path> [P1..P5] — bb-report's VRT map) and use its P1/P2 reward tables to prioritize which classes to hunt next on this target.
Bug-class routing (use the matching skill per surface)
| Surface / user says | Skill |
|---|---|
| IDOR, BOLA, access control, auth bypass, JWT | bb-authz |
| Business logic, price/coupon/checkout/refund flows | bb-bizlogic |
| Race conditions, double redeem, concurrency | bb-race |
| SSRF, URL fetch, webhooks, cloud metadata | bb-ssrf |
| XSS, DOM sinks, postMessage | bb-xss (deep DOM source→sink work: bb-domxss) |
| Pre-hunt: understand/map the whole target from passive sources first | target-intelligence |
| OAuth/SSO login flows, redirect_uri, social login, MCP | bb-oauth |
| File uploads, public buckets, polyglots, serve-side rendering | bb-upload |
| CSRF, content-type defenses, state-changing actions cross-site | bb-csrf |
| GraphQL API | bb-graphql |
Cache deception/poisoning, CDN X-Cache/cf-cache-status, cached PII |
bb-cache |
| RCE, command injection, SSTI, deserialization, upload-to-RCE | bb-rce |
| PII exposure, data leaks, oversharing, GDPR impact | bb-pii |
| SQL / NoSQL injection | bb-sqli |
| JS bundle mining | js-recon |
| Deep JS audit (10-section attack-surface + vuln mapping) | js-audit |
| Tech fingerprint → known-bug/CVE hunt per stack | footprinting |
| Escalate/chain a finding, "worth reporting?" | bb-chains |
| Real-bug precedent, bounty calibration, idea generation | bb-disclosures |
| Cross-account test execution | idor-runner |
| Write/format findings | bb-report |
Session continuity
If a recon/ workspace exists for the target, load the engagement manifest (engagement.py resume) + audit.log tail + inventory.jsonl + findings/report.md first and continue from the recorded phase and per-URL status instead of re-running recon or re-confirming scope. Completed checks and recorded findings are preserved; do not repeat a completed check without a reason (new evidence, a failed test, or a coverage gap). Multi-program hunts: one workspace per program (each with its own manifest — authorization never crosses programs) under a shared hunt/ root.
Coverage review (before calling a hunt done)
Read inventory.jsonl: which in-scope URLs were analyzed, which applicable checks passed, which failed, which remain pending. Do not claim full coverage while eligible in-scope work is unprocessed or a tool failure (see the manifest's recon.tool_status) left a gap — report those gaps honestly.
Campaign playbooks (read before long hunts)
references/hunt-playbooks.md — program-selection discipline, narrow-vs-wide recon switching, asset discovery beyond crt.sh CN (Organization-field certs, ASN pivots, corporate-blog mining), parameter bruteforcing (x8/GAP), session-upgrade flow bugs, and hours-based goal setting. Distilled from three $7k–$20k documented campaigns.