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) 시작 시 보내는 웹사이트 이름(SNI)과, 그다음 HTTP 통신에서 보내는 웹사이트 이름(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
35kAI 에이전트에게 특정 작업을 위한 준비된 지침을 제공해, 더 잘하고 더 빠르게 처리하도록 합니다.
abusing-shadow-credentials-for-privesc
35kAI 에이전트가 명확하고 잘 구성된 텍스트를 쓰도록 가르칩니다.
achieving-cmmc-level-2-compliance
35kCMMC Level 2 규정 준수를 위한 환경을 준비하도록 돕습니다. 보안 요구 사항을 구현하고 필요한 문서를 관리합니다.
acquiring-disk-image-with-dd-and-dcfldd
35k에이전트가 하드 드라이브의 정확한 복사본을 만들도록 돕습니다. 조사 중 정보가 손실되거나 변경되지 않도록 하는 데 유용합니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.