
Hunting for Domain Fronting C2 Traffic
FreeDetect command-and-control traffic hidden behind legitimate domains.
Free · Opens the source repo
What Hunting for Domain Fronting C2 Traffic does
The Hunting for Domain Fronting C2 Traffic skill is designed for cybersecurity professionals who need to identify and analyze command-and-control (C2) traffic that utilizes domain fronting techniques. This method allows attackers to disguise their malicious activities by using different domain names in the TLS Server Name Indication (SNI) field and the HTTP Host header. By leveraging this skill, users can effectively parse proxy logs to detect mismatches between these fields, which is a key indicator of potential domain fronting.
The skill operates by parsing web proxy or secure web gateway logs that contain SNI and Host header fields. It compares the SNI domain against the HTTP Host header to identify discrepancies. Additionally, it utilizes the pyOpenSSL library to extract TLS certificate information, enabling the identification of connections that are hosted on Content Delivery Network (CDN) services. By correlating this data with known CDN provider IP ranges, the skill flags high-confidence domain fronting instances where the SNI points to a reputable domain while the Host header targets a potentially malicious domain.
This skill is particularly useful for Security Operations Center (SOC) analysts and threat hunters who are investigating security incidents or building detection rules related to domain fronting. It provides structured procedures for analyzing proxy logs and validates the effectiveness of existing security monitoring coverage. The output is a comprehensive JSON report that includes detected domain fronting indicators, SNI-Host pairs, certificate details, and confidence scores, all mapped to the relevant MITRE ATT&CK technique.
By integrating this skill into their security toolkit, analysts can enhance their threat detection capabilities and respond more effectively to sophisticated evasion tactics employed by attackers.
When to use it
Use this skill when investigating potential security incidents involving domain fronting or when building detection rules for C2 traffic.
When not to use it
This skill may not be suitable for environments without access to proxy logs or where TLS inspection is not enabled.
What you can build with it
Investigating Security Incidents
Use this skill to analyze proxy logs for signs of domain fronting during security incident investigations.
Building Detection Rules
Leverage this skill to create effective detection rules for identifying C2 traffic that employs domain fronting techniques.
Validating Security Coverage
Utilize the skill to ensure your security monitoring systems are capable of detecting domain fronting evasion tactics.
How to install Hunting for Domain Fronting C2 Traffic
View source1. Install with the skills CLI
npx skills add mukul975/anthropic-cybersecurity-skills/hunting-for-domain-fronting-c2-traffic --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by mukul975Hunting 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.
Frequently asked questions about Hunting for Domain Fronting C2 Traffic
Similar skills
Asset Criticality Scoring for Vulns
Prioritize vulnerabilities based on asset criticality.
Performing Alert Triage with Elastic SIEM
Streamline alert triage processes in Elastic Security.
Active Directory Vulnerability Assessment
Secure your Active Directory with comprehensive assessments.
Active Directory Investigation
Streamline your Active Directory compromise investigations.
Parsing Artifacts with Eric Zimmerman Tools
Efficiently parse Windows forensic artifacts for analysis.
Operationalizing MISP Threat Feeds
Enhance threat detection with curated MISP feeds.
