Saltar al contenido
Skillpedia
Seguridad6,5 mil · #14156

web-subdomain-takeover

Qué hace

Explica cómo encontrar subdominios cuyo DNS apunta a servicios en la nube eliminados o no reclamados. Va dirigida a equipos de seguridad que quieren limpiar registros olvidados que son suyos.

Cuándo usarla

  • ✓Cuando una empresa quiere comprobar si subdominios antiguos siguen apuntando a servicios que ya no le pertenecen.
  • ✓Cuando un equipo de TI limpia registros DNS después de cambiar de proveedor de alojamiento.
  • ✓Cuando un revisor de seguridad necesita marcar los registros DNS colgantes como un riesgo.

Link de la skill

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/subdomain-takeover/SKILL.md

Có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

Usa esta skill para ayudarme: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/subdomain-takeover/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Comprueba si alguno de nuestros subdominios antiguos apunta a servicios que ya no usamos.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La skill indica a la IA que reúna los subdominios, busque a dónde apunta cada uno y compare esos destinos con servicios que se sabe que permiten reclamarlos. Las coincidencias se marcan para revisión.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Subdomain Takeover (Dangling DNS / CNAME)

A subdomain CNAMEs to a SaaS provider (GitHub Pages, Heroku, S3, etc.) but the underlying tenant has been deleted, expired, or never claimed. Whoever registers the orphaned tenant name controls a trusted *.<TARGET> origin. Severity is almost always High → Critical because the attacker inherits the parent domain's cookie scope, CORS allowlist, OAuth redirect_uri whitelist, CSP *.<TARGET> allowance, and reputation.

1. Asset surface — enumerate every subdomain

# Passive (no traffic to target)
subfinder -d <TARGET> -all -silent -o subs.txt
amass enum -passive -d <TARGET> -o subs.amass.txt
assetfinder --subs-only <TARGET> >> subs.txt
findomain -t <TARGET> -q >> subs.txt
curl -s "https://crt.sh/?q=%25.<TARGET>&output=json" | jq -r '.[].name_value' | tr '\n' '\n' | sort -u >> subs.txt
sort -u subs.txt -o subs.txt

# Active resolution + CNAME extraction
dnsx -l subs.txt -cname -resp -silent -o subs.cname.txt
# subs.cname.txt format:  app.<TARGET>  [cname.provider.net]

2. CNAME → provider fingerprints

Resolve each subdomain, capture the CNAME, and match against the dangling-provider table below.

while read sub; do
  cname=$(dig +short CNAME "$sub" | head -n1)
  [ -z "$cname" ] && continue
  echo "$sub -> $cname"
done < subs.txt | tee cname.map
Provider CNAME pattern Vulnerable fingerprint in HTTP body
GitHub Pages *.github.io There isn't a GitHub Pages site here.
Heroku *.herokuapp.com, *.herokussl.com No such app / herokucdn.com/error-pages/no-such-app.html
AWS S3 *.s3*.amazonaws.com NoSuchBucket
AWS Elastic Beanstalk *.elasticbeanstalk.com NXDOMAIN on CNAME target
Azure CloudApp *.cloudapp.net, *.cloudapp.azure.com NXDOMAIN
Azure Traffic Manager *.trafficmanager.net NXDOMAIN
Azure Edge / Front Door *.azureedge.net, *.azurefd.net NXDOMAIN
Azure Websites *.azurewebsites.net 404 Web Site not found
Fastly *.fastly.net Fastly error: unknown domain
Shopify shops.myshopify.com Sorry, this shop is currently unavailable.
Netlify *.netlify.app, *.netlify.com Not Found - Request ID (and the site is unclaimed)
Surge.sh *.surge.sh project not found
Tumblr domains.tumblr.com Whatever you were looking for doesn't currently exist at this address.
Read the Docs readthedocs.io unknown to Read the Docs
Zendesk *.zendesk.com Help Center Closed
Unbounce unbouncepages.com The requested URL was not found on this server.
Pantheon *.pantheonsite.io The gods are wise, but do not know of the site which you seek.
Help Scout *.helpscoutdocs.com No settings were found for this company
Cargo cargocollective.com 404 Not Found + Cargo branding
Tilda *.tilda.ws Please renew your subscription
Webflow proxy-ssl.webflow.com The page you are looking for doesn't exist or has been moved.
Smartling *.smartling.com Domain is not configured
Worksites.net *.worksites.net Hello! Sorry, but the website you're looking for doesn't exist.
Ghost *.ghost.io Site unavailable / The thing you were looking for is no longer here, or never was
LaunchRock *.launchrock.com It looks like you may have taken a wrong turn somewhere.

Canonical reference (updated by EdOverflow community): can-i-take-over-xyz.

3. Detection — body fingerprint

# Single subdomain
curl -sk -H 'Host: app.<TARGET>' "https://app.<TARGET>/" -o body.html -w '%{http_code}\n'
grep -iEf <(printf '%s\n' \
  "There isn't a GitHub Pages site here" \
  "no such app" "NoSuchBucket" "Fastly error: unknown domain" \
  "Sorry, this shop is currently unavailable" "project not found" \
  "Help Center Closed" "unknown to Read the Docs" \
  "The gods are wise" "Whatever you were looking for doesn't currently exist" \
  ) body.html

NXDOMAIN cases (Azure, Beanstalk) are detected at DNS layer — no HTTP body:

cname=$(dig +short CNAME "app.<TARGET>" | head -n1)
[ -n "$cname" ] && dig +short "$cname" | grep -q . || echo "DANGLING: $cname"

4. Mass detection

# subjack — fingerprints + claim hints
subjack -w subs.txt -t 50 -timeout 30 -ssl -c ~/go/pkg/mod/github.com/haccer/subjack/fingerprints.json -v -o subjack.out

# subzy — newer, maintained, more providers
subzy run --targets subs
Preguntas frecuentes

¿Qué es un registro DNS colgante?

Es un subdominio que apunta a un servicio eliminado, por lo que otra persona podría reclamar ese nombre.

¿Por qué importa?

Un subdominio reclamado puede usarse para engañar a visitantes o para saltar controles de confianza que dependen del dominio principal.

¿Cómo suelen corregirlo los equipos?

Normalmente eliminan el registro DNS antiguo o recuperan el servicio con su propia cuenta.

Detalles

Descripción original del autor

Subdomain takeover via dangling DNS/CNAME — GitHub Pages, Heroku, Azure, Fastly, Shopify, Netlify, Surge, Tumblr, Beanstalk, Zendesk, etc.

repo: BitterSecurity/Decepticon

Popularidad

Estrellas en GitHub
6,5 mil
Posición en el ranking
#14156
Licencia
Apache-2.0
Actualizada
1/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas