hunting-for-domain-fronting-c2-traffic
यह क्या करती है
यह tool ऐसे इंटरनेट ट्रैफिक को खोजता है जो CDN (content delivery network) जैसी मशहूर वेबसाइटों के पीछे छिपने की कोशिश करता है। यह किसी साइट से कनेक्ट होते समय आपके कंप्यूटर द्वारा भेजी गई अलग-अलग जानकारियों की तुलना करके यह काम करता है।
कब इस्तेमाल करें
- ✓जब आपको शक हो कि कोई खतरनाक संचार छिपा रहा है।
- ✓जब नेटवर्क logs में कोई असामान्य गतिविधि दिख रही हो और उसकी जांच करनी हो।
- ✓यह जांचने के लिए कि आपके सुरक्षा tools इस तरह का छिपा ट्रैफिक पकड़ पा रहे हैं या नहीं।
Skill का लिंक
https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-domain-fronting-c2-traffic/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे proxy logs में छिपा ट्रैफिक ढूंढो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह tool सुरक्षित कनेक्शन की शुरुआत में भेजे गए वेबसाइट नाम (SNI) की तुलना उस वेबसाइट नाम से करता है जिसे आपका browser HTTP request के Host header में बताता है। अगर दोनों अलग हैं और कोई वैध साइट किसी खतरनाक साइट को छिपाने के लिए इस्तेमाल हो रही लगती है, तो यह alert देता है।
तकनीकी सामग्री (मूल 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.
अक्सर पूछे जाने वाले सवाल
'domain fronting' क्या है?
यह एक तकनीक है जिससे हमलावर malware के C2 (command-and-control) ट्रैफिक को छिपाते हैं। इससे ऐसा लगता है जैसे वह किसी भरोसेमंद और मशहूर वेबसाइट, जैसे CDN सेवा, पर जा रहा है।
'SNI' और 'Host header' क्या हैं?
SNI (Server Name Indication) वह जानकारी है जो browser सुरक्षित कनेक्शन (TLS/SSL) की शुरुआत में भेजता है ताकि बता सके कि उसे किस वेबसाइट तक पहुंचना है। Host header थोड़ी बाद में HTTP संचार के अंदर भेजा जाता है और वह भी वही वेबसाइट बताता है।
SNI और Host header की तुलना क्यों ज़रूरी है?
अगर SNI किसी CDN domain (जैसे `cdn.example.com`) की ओर इशारा करता है और Host header किसी अलग, संदिग्ध domain (जैसे `malware.attacker.com`) की ओर, तो यह domain fronting के ज़रिए संचार छिपाने का मज़बूत संकेत है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 31/8/2026
कमेंट
- …
इस repository की और skills
abusing-dpapi-for-credential-access
35kआपके AI एजेंट को किसी खास काम के लिए तैयार instructions देता है, ताकि वह उसे बेहतर और तेज़ी से कर सके।
abusing-shadow-credentials-for-privesc
35kआपके AI एजेंट को साफ़ और अच्छी तरह से व्यवस्थित लिखना सिखाता है।
achieving-cmmc-level-2-compliance
35kयह आपके एजेंट को CMMC Level 2 compliance के लिए environment तैयार करने में मदद करता है। यह security requirements लागू करता है और ज़रूरी documentation संभालता है।
acquiring-disk-image-with-dd-and-dcfldd
35kआपके एजेंट को hard drives की exact copies बनाने में मदद करता है। जाँच के दौरान किसी भी जानकारी के खोने या बदलने से बचाने के लिए यह उपयोगी है।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।