web-subdomain-takeover
What it does
It explains how to find subdomains whose DNS points to deleted or unclaimed cloud services. It is for security teams who want to clean up forgotten records they own.
When to use it
- ✓When a company wants to check whether old subdomains still point to services it no longer owns.
- ✓When an IT team is cleaning up DNS records after moving hosting providers.
- ✓When a security reviewer needs to flag dangling DNS entries as a risk.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/recon/web-recon/subdomain-takeover/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Check whether any of our old subdomains point to services we no longer use.”
5 new skills a week. 1 minute to read.
How it works
The skill tells the AI to collect subdomains, look up where each one points and compare those targets against services known to allow claims. Matches are flagged for review.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
What is a dangling DNS record?
It is a subdomain that points to a service that was removed, so the name could be claimed by someone else.
Why does it matter?
A claimed subdomain can be used to mislead visitors or get past trust settings that rely on the parent domain.
How do teams usually fix one?
They commonly remove the old DNS record or reclaim the service under their own account.
Details
Original description by the author
Subdomain takeover via dangling DNS/CNAME — GitHub Pages, Heroku, Azure, Fastly, Shopify, Netlify, Surge, Tumblr, Beanstalk, Zendesk, etc.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14156
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.