client-reverse
できること
このスキルは、公式アプリが作る署名やトークンを持つリクエストを、エージェントが再現する方法を説明します。まず取得したリクエストが変更なしで動くか確かめ、その後で初めて署名のコードを調べます。
使う場面
- ✓テスターが再送したリクエストで無効な署名のエラーが出るのに、実際のアプリは動いているとき。
- ✓テスターが、クライアントコードを調べる前にキャプチャしたリクエストを再送できるか知りたいとき。
- ✓テスターが、タイムスタンプ、ノンス、署名ヘッダーで保護されたリクエストを見つけたとき。
スキルのリンク
https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/client-reverse/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Burp で再送した API リクエストが無効な署名のエラーになります。アプリは動いているので、原因を調べてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは実際のリクエストを取得し、まずそのまま再送を試します。再送が失敗した場合のみ、署名の処理を探し、リクエストを再現するのに必要な分だけ作り直します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
CLIENT-SIDE REQUEST-SIGNING / ANTI-BOT TOKEN REVERSAL
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.
THE CORE PRINCIPLE: PACKET-FIRST
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.
STAGE SPINE: locate → recover → runtime → validation → replay
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)
STAGE 1 — LOCATE: trace backward from the signature field
You know the output (the sign value on the wire). Walk backward to the source. Keep each layer distinct:
writer <- builder <- entry <- source
- writer — the line that finally puts
signinto the body/header/query/cookie/WS frame - builder — the transform:
HMAC,MD5,AES, sort-then-concat,JSON.stringifyordering - entry — the UI action / callback / response that kicks off the chain
- source — what feeds the inputs: upstream response, localStorage, cookie,
Date.now(),crypto.getRandomValues, user input
Browser: find the writer i
よくある質問
署名を破ること自体が発見になりますか?
いいえ。署名は鍵のようなもので、報告すべき欠陥は、その奥にある認可の問題などです。
なぜ最初に再送を試すのですか?
多くの署名はそのまま再送できるため、リバースエンジニアリングが必ずしも必要ではないからです。
どのフィールドが挙げられていますか?
sign、signature、nonce、timestamp、センサーデータなどのヘッダーやフィールドが挙げられています。
詳細
作者による元の説明
Client-side request-signing and anti-bot token reversal for bug bounty — when a request carries a sign/sig/hmac/token/nonce/timestamp/X-Sensor header that Burp Repeater cannot replay, recover the signer just enough to reproduce the request outside the client. Packet-first staging (capture real request → prove replay works → only reverse if replay fails) across the locate→recover→runtime→validation→replay spine. Covers tracing backward from the signature field (writer→builder→entry→source), isolating user-mutable sign inputs (timestamp/nonce/deviceId/body) vs constants (secret key), hooking fet
人気
- GitHubのスター
- 5.5k
- ランキング
- #14786
- ライセンス
- MIT
- 更新日
- 2026/10/28
コメント
- …
このリポジトリの他のスキル
bug-bounty
5.5kエージェントが、対象範囲の確認から資産の調査、脆弱性の検証、レポート作成まで段階的にバグバウンティの調査を計画できるよう支援します。
agentic-app-audit
5.5kエージェントが、稼働中のAIアシスタントを外部から確認し、ツール呼び出しの乗っ取りやメモリの汚染などのリスクを見つけられるよう支援します。
argus
5.5kエージェントが、Webアプリや AI アプリでよくある不具合を調べる6つの自動スキャナーを実行できるよう支援します。
bb-methodology
5.5kエージェントが、バグバウンティのセッションを段階的に計画し、次の作業と適切な確認項目を選び、実際の害につながらない案を除外できるよう支援します。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。