web-cookie-audit
できること
このスキルは、サイトのCookieを一覧にし、どのCookieがサイトの動作を変えるかをテストする方法を説明します。セッションに依存するアプリケーションから正確な結果を得たいテスター向けです。
使う場面
- ✓ログイン後にだけ動く機能があり、どのCookieが重要かを知る必要があるテスターがいるとき。
- ✓開発者が、サイトが設定するすべてのCookieと、その理由の一覧を求めているとき。
- ✓テストの結果が遮断されているように見えるが、原因がセッションのCookieの欠落かもしれないとき。
スキルのリンク
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/cookie-audit/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私たちのサイトはどのCookieを設定しており、そのうちどれが決済の動作を変えるか確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルはAIに、すべてのCookieを記録し、それぞれがある場合とない場合でテストし、動作を変えるCookieを記録するよう指示します。結果は表にまとめられます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Cookie-Conditional Sink Discovery
A "sink" (eval, deserialize, exec, template render) may behave differently — or not fire at all — depending on which session cookies are present. Recon MUST enumerate every cookie the app sets and re-test each candidate sink with and without each cookie before declaring the sink unreachable. Skipping this step is the most common cause of exploit handing back a false "blind sink" verdict.
Procedure
- Walk the app unauthenticated; record every
Set-Cookie(name, attributes, source endpoint). - Authenticate (every auth tier: anon, low-priv user, high-priv user) and record the full cookie jar after each.
- For each candidate sink (parameter, route, header, body field):
- Probe with NO cookies.
- Probe with FULL authenticated jar.
- Bisect: drop one cookie at a time and re-probe. The cookie whose removal silences the sink is the gating cookie.
- Document a "Sink preconditions" table in
recon_notes.mdandSUMMARY.md:
| Sink | Endpoint | Method | Required cookies | Behavior w/o cookie | Behavior w/ cookie | Notes |
|---|---|---|---|---|---|---|
bookmark_data (deser) |
/bookmarks/import |
POST | session=...; auth_tier=user |
302 → /login | 200 + processed | gated by auth_tier |
4a. Session mutation audit. For every endpoint that READS session, trace which other endpoints WRITE to the SAME session key BEFORE the security verdict (login, password check, role lookup). This is the data race-condition exploit needs. Output a "Session-write timeline" table:
| Endpoint | Reads session keys | Writes session keys (pre-verdict) | Slow ops (bcrypt/DB/network) | Race window (ms) |
|---|---|---|---|---|
POST /login |
— | user, auth_tier (set BEFORE bcrypt) |
bcrypt ~200ms | ~200 |
GET /admin_panel |
user, auth_tier |
— | — | reads during the login bcrypt window |
If the challenge tag includes race_condition, toctou, concurrent, or smuggling_desync and recon hands off WITHOUT this table, exploit MUST flag the handoff back as "recon incomplete: session-write timeline missing".
- In the handoff to exploit/postexploit, ALWAYS include a Required session state line:
Required session state: cookies=[session, auth_tier=user]; obtained via POST /login (creds: user@example.com / hunter2)
If recon hands off without this line, exploit is required to re-run cookie enumeration before concluding any sink is unreachable.
よくある質問
なぜCookieを1つずつ確認するのですか?
Cookieを1つずつ取り除くことで、どのCookieが機能を実際に制御しているかが分かるからです。
出力はどのような形ですか?
機能、それに必要なCookie、サイトの応答を並べた表です。
誰の役に立ちますか?
セッションに基づくアプリから、明確で正確な結果を得たいテスターと開発者です。
詳細
作者による元の説明
Cookie-conditional sink discovery — bisect required cookies per sink, session-write timeline for race-condition challenges.
人気
- GitHubのスター
- 6.5k
- ランキング
- #14154
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
detector-overview
6.5kエージェントが、スキャナーが指摘したコードを読み、本物のセキュリティバグと誤検知を見分けられるよう支援します。
exploiter-overview
6.5kエージェントが、確認済みの複数のセキュリティ上の弱点を一つのテストの連鎖にまとめ、その影響がどこまで及ぶかを確認できるよう支援します。
llm-redteam-overview
6.5kエージェントが、プロンプトインジェクションからモデルの悪用まで、15の戦術グループの中から適切なAIレッドチーム用ガイドを見つけられるよう支援します。
aatmf-t01-prompt-injection
6.5kプロンプトインジェクションを説明します。隠された指示でAIシステムを乗っ取ろうとする手口を、セキュリティテスターが確認できるようにします。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。