hunting-for-domain-fronting-c2-traffic
できること
このツールは、CDN(コンテンツ配信ネットワーク)などの有名なウェブサイトの陰に隠れようとする不審なインターネットトラフィックを探します。コンピューターがサイトに接続する際に送る複数の情報を比較して判断します。
使う場面
- ✓誰かが悪意のある通信を隠していると疑うとき。
- ✓ネットワークログを調べて、通常とは異なる動きを調査しているとき。
- ✓セキュリティツールがこの種の隠れたトラフィックを検出できているかを確認したいとき。
スキルのリンク
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-domain-fronting-c2-traffic/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“当社のプロキシログで、隠れたトラフィックがないか探してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このツールは、安全な接続(TLS/SSL)の開始時に送られるSNI(接続先のウェブサイト名)と、ブラウザーがアクセスしようとしているウェブサイト名を示すHostヘッダーを比較します。両者が異なり、正規のサイトを悪用して悪意のあるサイトへ通信を隠しているように見える場合に警告を出します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Hunting for Domain Fronting C2 Traffic
Overview
Domain fronting (MITRE ATT&CK T1090.004) is a technique where attackers use different domain names in the TLS SNI field and the HTTP Host header to disguise C2 traffic behind legitimate CDN-hosted domains. This skill detects domain fronting by parsing proxy/web gateway logs for SNI-Host header mismatches, analyzing TLS certificates for CDN provider identification, flagging connections where the SNI points to a high-reputation domain but the Host header targets an attacker-controlled domain, and correlating with known CDN provider IP ranges.
When to Use
- When investigating security incidents that require hunting for domain fronting c2 traffic
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Web proxy or secure web gateway logs with SNI and Host header fields
- Python 3.8+ with pyOpenSSL and cryptography libraries
- TLS inspection enabled on proxy for Host header visibility
- CDN provider IP range lists (CloudFront, Azure CDN, Cloudflare)
Steps
- Parse proxy logs for connections with both SNI and Host header fields
- Compare SNI domain against HTTP Host header for mismatches
- Extract TLS certificate Subject and SAN fields using pyOpenSSL
- Identify CDN-hosted connections via certificate issuer and IP ranges
- Flag high-confidence domain fronting where SNI and Host differ on CDN IPs
- Score alerts based on domain reputation differential
- Generate detection report with network flow context
Expected Output
JSON report containing detected domain fronting indicators with SNI-Host pairs, certificate details, CDN provider identification, confidence scores, and MITRE ATT&CK technique mapping.
よくある質問
「ドメインフロンティング」とは何ですか?
攻撃者が、マルウェアからの C2(コマンド&コントロール)通信を、CDNサービスなどの正規で有名なウェブサイトへの通信に見せかけて隠す手口です。
「SNI」と「Hostヘッダー」とは何ですか?
SNI(Server Name Indication)は、安全な接続(TLS/SSL)の開始時に、ブラウザーが接続したいウェブサイト名を伝えるための情報です。Hostヘッダーは、その後のHTTP通信の中で送られ、同じく接続先のウェブサイトを示します。
SNIとHostヘッダーを比較することが重要なのはなぜですか?
SNIがCDNのドメイン(例:`cdn.example.com`)を指しているのに、Hostヘッダーが別の不審なドメイン(例:`malware.attacker.com`)を指している場合、ドメインフロンティングによって通信を隠そうとしている強い兆候だからです。
詳細
作者による元の説明
Detects domain fronting C2 traffic by analyzing SNI-vs-HTTP-Host-header mismatches in proxy logs and inspecting TLS certificate discrepancies with pyOpenSSL. Use when hunting for command-and-control traffic hidden behind legitimate CDN domains, or when investigating proxy/TLS logs for signs of domain fronting evasion.
人気
- GitHubのスター
- 35k
- ランキング
- #7959
- ライセンス
- Apache-2.0
- 更新日
- 2026/8/31
コメント
- …
このリポジトリの他のスキル
abusing-dpapi-for-credential-access
35k特定のタスク向けに用意された指示をAIエージェントに与え、より良く、より速く作業できるようにします。
abusing-shadow-credentials-for-privesc
35kAIエージェントに、明確で構成のしっかりした文章の書き方を教えます。
achieving-cmmc-level-2-compliance
35kエージェントがCMMC Level 2への準拠に向けた環境を整えられるようにします。セキュリティ要件を実装し、必要なドキュメントを管理します。
acquiring-disk-image-with-dd-and-dcfldd
35kエージェントがハードディスクの完全なコピーを作成できるようにします。調査中に情報が失われたり改変されたりしないようにするのに役立ちます。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。