/agentic-bug-hunter:client-reversefrom agentic-bug-hunter
Recovers client-side request-signing and anti-bot tokens when Burp Repeater cannot replay a signed request. Packet-first workflow: capture, prove replay fails, then trace the signer via DevTools hooks and JS deobfuscation to reach protected APIs for IDOR/auth/business-logic hunting.
Ships in agentic-bug-hunter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You hit a request you cannot replay. Burp Repeater returns 401 invalid signature or 403 bot detected even though the browser/app does it fine. There is a sign, sig, X-Signature, _token, nonce, X-Acf-Sensor-Data, or encrypted body the client computes. This skill recovers just enough of that signer to reproduce the request outside the client.
Why a bug bounty hunter cares: the signature is not the bug. The signature is the lock on the door. Behind it is an API the program assumed only their own client would ever reach — so that API is often under-tested for IDOR, BOLA, mass assignment, and business logic. Reversing the signer is the cost of admission; the payout comes from what you fuzz once you're inside. Never report "I reversed your sign algorithm" as a finding on its own — that is N/A. Report the IDOR/auth bug you reached through it.
Reverse engineering is a blocker-resolution step, not the default entrypoint. Capture the real request first. Prove whether it already replays. Only reverse the signer if replay actually fails.
Most hunters waste hours decompiling JS for a "signature" that turns out to be replayable as-is, or gated by a timestamp that's valid for 5 minutes. Run this gate before opening DevTools Sources:
1. Capture the real request (Burp/mitmproxy proxy, or DevTools → Network → Copy as cURL)
2. Replay it UNCHANGED (paste cURL into terminal, or Burp Repeater)
→ 200 / works? → IT'S NOT SIGNED. Skip all reversing. Go fuzz it.
3. Replay it again 5 min later → still 200? → no freshness check (replay window is wide/infinite)
4. Mutate ONE non-signed field (e.g. change an `id` in the body, keep sign as-is)
→ 200? → the sign does NOT cover that field → tamper freely, no reversing needed
→ 401? → the sign covers it → NOW you reverse (continue to STAGES below)
Steps 2–4 alone kill ~half of "I need to reverse this" assumptions. A signature that omits the payload or endpoint, or never expires, is itself the bug — see the CoinMate pattern in Real Paid Examples.
Pick the stage from engineering state, not from clue words. "I see the word sign" does not mean you're in recover. You are in locate until you can point at the exact line that writes the signature.
intake → evidence → locate → recover → runtime → validation → replay
| Stage | Enter when... | Goal | Exit when... |
|---|---|---|---|
| locate | the signing function / write boundary is unproven | find where the sign field is written and what feeds it | you can point at writer ← builder ← entry ← source |
| recover | boundary is real but the code is obfuscated/opaque | de-shell only the layer blocking you (webpack/wasm/JSVMP) | you have a readable or callable signer contract |
| runtime | code is clear but browser-exec ≠ your-exec diverge | find the first divergence (missing object/state/anti-debug) | local run reproduces browser sign output |
| validation | remaining work is equivalence proof | match checkpoints, not just final output | sign(input) == observed for fresh inputs |
| replay | sign reproduces outside the client | Burp/Python baseline request you can fuzz | a stable request you can mutate for IDOR/auth |
Carry a one-line handoff between stages. Do not promote a guess to a fact:
--- Stage Handoff ---
From: locate To: recover
Proven: sign written at app.min.js:1, line ~4021; inputs = ts, nonce, JSON body, deviceId
Open: builder is inside webpack module 5f3 behind a string-table — need to de-shell that one module
Invalid: assumption that deviceId was constant (it rotates per session)
You know the output (the sign value on the wire). Walk backward to the source. Keep each layer distinct:
writer <- builder <- entry <- source
sign into the body/header/query/cookie/WS frameHMAC, MD5, AES, sort-then-concat, JSON.stringify orderingDate.now(), crypto.getRandomValues, user input# 1. XHR/fetch breakpoint — break the moment the signed request fires
DevTools → Sources → XHR/fetch Breakpoints → + → paste the endpoint path (e.g. /api/order)
trigger the action → execution pauses inside the request stack
→ walk UP the Call Stack panel: the frame that mutates headers/body is your writer
# 2. Search the bundle for the field name (catches the writer fast)
DevTools → Sources → Ctrl+Shift+F (search all loaded scripts)
search: "sign" "X-Signature" ".sign =" "headers[" "signature"
click {} (pretty-print) on the minified file so line numbers are stable
# 3. DOM/event breakpoint when a click triggers it
DevTools → Elements → right-click the button → Break on → subtree/attribute modifications
| Sink (where sign lands) | First place to prove |
|---|---|
| request body field | final JSON.stringify / submit / fetch(body=...) |
| request header | the headers[...] = or setRequestHeader call |
| JS-set cookie | the document.cookie = setter |
| WebSocket frame | the final envelope object right before ws.send(...) |
anti-bot blob (X-Sensor-Data, _px) | the SDK init() and the getter that returns the blob |
Do NOT broad-deobfuscate before the boundary is real. Keyword hits are not proof — many bundles ship sign strings that never run.
Enter only after the boundary is proven and the only remaining blocker is that the code is unreadable. Reduce the single layer in your way — never the whole bundle.
| Shell you hit | What it means | Minimal move |
|---|---|---|
| webpack bootstrap | modules wrapped in __webpack_require__ | break inside the target module, read the local closure — don't unpack the whole bundle |
| string-array obfuscation | _0x4a2b[12] lookups | in console, print the decoder array; or set a breakpoint and read decoded values live |
worker / postMessage bridge | sign runs in a Web Worker | breakpoint the worker script; treat postMessage payload as the contract |
| wasm loader | sign math compiled to wasm | hook the JS↔wasm boundary; capture inputs/outputs rather than decompiling wasm |
| JSVMP (custom bytecode VM) | a dispatcher loop interpreting bytes | do not reverse the VM — go runtime: hook inputs+output and treat sign as a black box |
The black-box shortcut beats decompilation 90% of the time. You almost never need to understand the HMAC math. You need the input tuple and a way to call the function. Capture
sign(input) → outputpairs at runtime; if you can call the page's own signer, you never have to reimplement it.
// REUSE — if the signer is a reachable function, just call it from the console.
// Works when the page exposes it or you grab a reference at a breakpoint.
window.__sign = signFn; // assign at a breakpoint inside the builder
window.__sign({id: 999, ts: Date.now()})// → get a valid sig for ANY payload you want
// HOOK to log every real sign(input)->output the app produces (no reimplementation):
(function(){
const orig = CryptoSigner.prototype.sign; // adapt to the real object/method
CryptoSigner.prototype.sign = function(...a){
const out = orig.apply(this, a);
console.log('SIGN', JSON.stringify(a), '=>', out); // copy pairs for offline replay
return out;
};
})();
For every input to the signer, classify it. This is the whole game — it tells you what you can mutate and whether you even need the secret.
| Input | Type | Attacker-mutable? | Implication |
|---|---|---|---|
timestamp / ts | per-request | yes (you set it) | fine — regenerate per replay; check the validity window |
nonce / requestId | per-request random | yes | fine — generate fresh; check if server enforces uniqueness (replay protection) |
deviceId / uuid | per-session | yes (one value, reusable) | grab once, pin it — usually constant for your session |
| request body / path | per-request | yes | the prize — if sign covers it, you mutate body + re-sign to fuzz IDOR/mass-assignment |
secret key / appSecret | constant, baked in | no (you extract it) | if it's in the JS bundle / APK, extraction = full forge ability for any request |
DECISION:
secret is in the client (hardcoded in JS or APK strings)
→ you can re-sign ANY request offline → full replay, fuzz everything
secret is server-side only, but you can call the page's signer function
→ you can sign any payload while the page is open → replay via headless browser bridge
secret is server-side AND signer is uncallable (heavy anti-debug)
→ you may only replay UNCHANGED requests
→ then test: does the sign omit the path/body? (CoinMate pattern) → forge anyway
→ does it never expire? → replay-window bug, report that
Hunt the bundle for a baked secret before doing anything clever:
# Pull the JS and grep for the secret feeding the signer
wget -q -r -l1 -A '*.js' -P /tmp/js/ "https://target.com" 2>/dev/null
grep -rnoE "appSecret|secretKey|signKey|HMAC|hmac|['\"][A-Za-z0-9+/]{24,}={0,2}['\"]" /tmp/js/ | head
# Cross-reference with /secrets-hunt --js-bundle for entropy-scored hits
If you reimplemented the signer in Python, prove equivalence on a fresh input before trusting it. Compare checkpoints, not just the final byte:
import hmac, hashlib, json, time
def sign(body: dict, ts: str, nonce: str, secret: bytes) -> str:
# Reproduce the EXACT canonicalization the JS does — order, separators, encoding.
# Get these by reading the builder, NOT by guessing.
payload = json.dumps(body, separators=(',', ':'), sort_keys=False) # JS JSON.stringify keeps INSERTION order, not sorted — set sort_keys=True ONLY if the builder explicitly sorts keys
msg = f"{ts}{nonce}{payload}".encode() # match JS concat order!
return hmac.new(secret, msg, hashlib.sha256).hexdigest()
# VALIDATE: feed an input you captured from the browser, compare to the observed sig.
# checkpoints that must each match: canonical body string → message tuple → final digest
assert sign(captured_body, captured_ts, captured_nonce, SECRET) == observed_sig
The two killers are almost always (a) JSON key ordering / separator whitespace, and (b) concatenation order of the input fields. If your digest is wrong, diff the pre-hash message string against the one the app builds (log it at a breakpoint), not the output hash.
You are ready only when you can answer all five:
[ ] where is the signed field written?
[ ] which inputs are constants (secret, deviceId) vs per-request (ts, nonce, body)?
[ ] which inputs come from upstream responses / cookies / storage / page lifecycle?
[ ] does request ORDER or session STATE matter (does a prior call seed the nonce)?
[ ] which fields can I mutate and still produce a valid sign?
Then drive it from Python so you can fuzz at scale:
import requests, time, uuid
SECRET = b"extracted_from_bundle" # or call the page's signer via a headless bridge
DEVICE = "pinned-session-device-id"
def signed_request(body):
ts = str(int(time.time()*1000))
nonce = uuid.uuid4().hex
sig = sign(body, ts, nonce, SECRET) # your validated signer from Stage 4
return requests.post("https://target.com/api/order",
json=body,
headers={"X-Timestamp": ts, "X-Nonce": nonce, "X-Signature": sig,
"X-Device-Id": DEVICE})
# NOW the bug hunt begins — mutate the body to reach the protected logic:
for victim_id in range(1000, 1100): # IDOR sweep behind the signature
r = signed_request({"orderId": victim_id})
if r.status_code == 200 and "not authorized" not in r.text:
print(f"IDOR: read order {victim_id}", r.json())
Bridge option when the secret is server-side: keep a headless browser open, expose the page's own
sign()via a tiny local HTTP shim, and have your Python fuzzer call out to it per request. You never reimplement crypto — the app signs for you.
Same spine, harder shell. These ship an SDK that emits an opaque sensor blob (X-Acf-Sensor-Data, _px, datadome cookie). Two realistic paths for a bounty hunter:
Full reversal of Akamai v3 sensor-data (PRNG-shuffled, file-hash + cookie-hash seeded) or PerimeterX's compiled SDK is a week-long research effort — out of scope for a single bounty. If the anti-bot itself is misconfigured (token never expires, token from
accountAvalidatesaccountB's requests, the protected endpoint is also reachable on a sibling host with no anti-bot), report that — it's a real finding without reversing anything. See the Stack→sibling-host idea inweb2-recon.
| Finding | Verdict |
|---|---|
| "I reversed your client signing algorithm" | N/A — not a vuln by itself |
| Signed request replays unchanged forever (no timestamp/nonce freshness) | Low/Medium — replay-attack window; report it |
| Sign omits endpoint/payload → forge requests without the secret (CoinMate pattern) | Medium/High — request forgery |
| Secret key hardcoded in JS bundle / APK → forge any request | Medium alone; High/Critical chained to the API you unlock |
| Reached a protected API via reversed sign → IDOR / BOLA / mass assignment found there | High/Critical — the real prize; report the downstream bug |
| One user's anti-bot token validates another user's request | Medium — broken token binding |
The deliverable is almost never the signing weakness. It is the access-control or business-logic bug on the endpoint the signature was guarding. Reach it, then run the IDOR / Broken Auth / Mass Assignment / Business Logic playbooks from
web2-vuln-classes.
| Need | Tool |
|---|---|
| capture the real request | Burp Suite proxy, or mitmproxy, or DevTools Network → Copy as cURL |
| break on the signed request | Chrome DevTools → Sources → XHR/fetch Breakpoints |
| read minified code | DevTools {} pretty-print + Ctrl+Shift+F global search |
| hook fetch/XHR / log sign() | DevTools console snippet (Object.defineProperty / method override) |
| grep bundle for the secret | wget -r -A '*.js' + grep, or /secrets-hunt --js-bundle |
| find hidden endpoints in JS | LinkFinder / jsluice (see web2-recon) |
| replay + fuzz at scale | Python requests (Stage 5 template) |
| mint anti-bot tokens | Selenium / Playwright headless bridge |
| mobile app variant (signer in APK) | apktool + jadx (static), objection / frida CLI (runtime hook) — same locate→recover→runtime→replay spine, packet-first |
Mobile note: for an authorized Android app, the packet-first rule still wins — drive the app, watch Burp/mitmproxy, and only
jadx/fridathe APK when the packet is encrypted or unreplayable. Decompiling first is the rookie move.
Cross-reference: once you're through the signature, run IDOR, Broken Auth / Access Control, Mass Assignment, and Business Logic from
web2-vuln-classes; useweb2-reconfor hidden-endpoint and sibling-host discovery; validate with the 7-Question Gate before reporting.
See references/browser-js-signing.md for the full browser-JS staging detail, the boundary model, and handoff-card discipline.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: repository: Invalid input: expected string, received object, agents: Invalid string: must end with ".md"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
25 skills in this plugin
/agentic-app-auditBlack-box security audit of a DEPLOYED AI agent (not the MCP server behind it) — tool-call hijacking, cross-session memory poisoning, confused-deputy via connected tools, agent-to-agent IDOR, excessive agency / unconfirmed destructive actions, and privilege compromise where the agent holds broader perms than the user. Use when the target is a live assistant/agent product with tool access (bookings, email, payments, file/RAG, browsing) rather than a raw LLM chat box or an MCP server you can read./argusArgus — the all-seeing scanner suite. Six automated scanners for high-value web + LLM bug classes — CORS misconfiguration (origin reflection / null / credentialed read), CRLF & host-header injection, NoSQL injection (operator auth-bypass / $where blind), JWT attacks (alg:none / RS256→HS256 confusion / secret crack), out-of-band confirmation of blind SSRF/XXE/SQLi/RCE/Log4Shell via interactsh, and an LLM red-team corpus (prompt-injection / jailbreak / system-prompt leak / exfil / indirect injection). Use when a target exposes a JSON API, a login endpoint, JWT auth, a parameter that might reach the server, a chatbot/agent, or any endpoint suspected of a blind/out-of-band bug./bb-methodologyUse at the START of any bug bounty hunting session, when switching targets, or when feeling lost about what to do next. Master orchestrator that combines the 5-phase non-linear hunting workflow with the critical thinking framework (developer psychology, anomaly detection, What-If experiments). Routes to all other skills based on current hunting phase. Also use when asking "what should I do next" or "where am I in the process."/bug-bountyComplete bug bounty workflow — recon, pre-hunt learning, vulnerability hunting (IDOR, SSRF, XSS, auth bypass, CSRF, race conditions, SQLi, XXE, file upload, business logic, GraphQL, HTTP smuggling, cache poisoning, OAuth, OIDC, SSTI, subdomain takeover, cloud misconfig, ATO chains, agentic AI), LLM/AI security testing (ASI01-ASI10), A-to-B bug chaining, bypass tables, language-specific grep patterns, and reporting (7-Question Gate, 4 validation gates, CVSS 3.1, PoC generation, submission checklist). Use for ANY bug bounty task — recon, hunting specific vulns, auditing source code, testing AI features, validating findings, or writing reports./bug-chainingStandalone bug chaining skill — synthesized from omni-killchain, omni-references/chaining-impact, triage-validation, apex-hunter, web2-vuln-classes, bug-bounty, and bb-methodology. Covers the complete chaining mindset: 10-question filter, 15 proven chain patterns (A–O) with payout data, escalation ladders per vuln class, conditional-chain table (when a standalone bug needs a gadget), impact-writing rules, CVSS chain multipliers, and 30-minute chain-or-move decision clock. Use when you have a low/medium finding and want to know how to chain it to Critical, or when strategizing what to hunt for maximum payout. Authorized testing only — bug bounty in-scope, pentest engagement, or CTF.
/bugcrowd-reportingBugcrowd-specific reporting tactics complementing report-writing: VRT category search-and-fallback strategy when no exact match exists, manual severity override when VRT defaults underrate impact, severity-request paragraph as first body section, OOS-clause rebuttal templates (rate limiting on auth-flow endpoints, debug-info framing, user-enumeration with sensitive PII, theoretical-issue counter), chained-finding cross-reference patterns, target selection for QA-vs-prod programs, researcher-side hygiene (Bugcrowdninja email alias, account state restoration, friendly-tester posture). Use when filing a Bugcrowd submission, when VRT default seems wrong, when triager closes as OOS or downgrades severity, when chaining linked submissions, or when scope distinguishes production from QA. Pairs with report-writing and triage-validation.2 plugins ship this exact skill · first indexed Sep 15, 2026
Other plugins' skills for the same job