Guides · ← All guides
Subdomain Takeover: How a Dangling DNS Record Lets Attackers Claim Your Name
Published: November 14, 2026 · Last reviewed: November 14, 2026 · 7 min read
Run a free BreachHunter assessment on your site →
Every other finding in a report is about something you run. This one is about something you stopped running. The subdomain was legitimate once — a campaign site, a docs host, a status page — the service got cancelled, the DNS record did not, and the gap between those two events is the vulnerability.
This guide explains the mechanics (why providers' unclaimed-name states are claimable by strangers), what the takeover check looks for in certificate-transparency and DNS data, and the two-ended hygiene — DNS record removed when the service dies — that prevents it. It pairs naturally with the forgotten subdomains problem: takeover is what happens when “forgotten” meets “pointing at a claimable service”.
How does the takeover actually work?
Say events.your-domain was a CNAME to a site-builder account you closed in 2024. The CNAME still resolves; the provider, seeing no account claiming that custom domain, offers it to the next customer who asks. An attacker creates an account, claims events.your-domain as their site's domain — the provider checks only that DNS points at them, which your stale record helpfully confirms — and publishes a page. Your subdomain now serves their content over a name your customers trust.
The yield varies by what the subdomain can access. At minimum: convincing phishing under your real domain (no look-alike spelling to spot). Worse: cookies set with Domain=.your-domain are sent to subdomains, so a takeover of a cookie-scoped name can interact with real sessions; and some single-sign-on and CORS configurations trust subdomains wholesale. The scanner treats dangling records seriously for exactly this escalation potential.
What does the check look for, and what is the fix?
The takeover module works from your subdomain inventory (certificate transparency logs are the public source — every certificate ever issued for your names) and tests each record's target: does the CNAME point at a provider known to allow custom-domain claiming, and does that target respond as unclaimed? Providers' error fingerprints (“no such site”, “bucket does not exist”) are the tells. A verified dangling record is reported with the subdomain and target as evidence.
The fix is deletion, and it is delightfully final: remove the DNS record and the takeover surface ceases to exist. Process is the prevention: service decommissioning checklists that end with “remove the DNS record and the certificate,” plus a periodic inventory diff — the recon phase's subdomain list compared against the services you can name. Any subdomain nobody can name gets investigated that week, not next quarter.
Worked example: brightpathtutoring.example
Brightpath Tutoring had run a 2023 summer-camp microsite on a hosted site builder under book.brightpathtutoring.example. The camp ended; the builder account was cancelled; the CNAME lived on. The takeover check flagged it as dangling — the target responded with the provider's unclaimed-site page.
Takeover check: book.brightpathtutoring.example CNAME -> sites.example-builder.com Target state: UNCLAIMED (provider default page) Finding: dangling record, claimable by any provider customer
Brightpath deleted the record the same day and audited the rest of its zone against the subdomain inventory the scan produced: eleven subdomains, nine with named owners, one other stale record (an oldmail pointer, removed), and one surprise staging name that fed into a separate cleanup. The verified-takeover finding closed on retest — trivially, because with the record gone there was nothing left to claim.
The five actions to take
Keeping your subdomain estate takeover-proof:
- Build the inventory: list every subdomain from your DNS zone and certificate transparency, with a named owner and purpose for each.
- Delete DNS records in the same change window as cancelling any third-party service — make it a decommissioning checklist line.
- Check remaining CNAMEs to third parties: each target must be a service you still hold and have claimed.
- Treat any subdomain nobody can explain as an incident until it is explained or removed.
- Re-run the takeover check quarterly and after any marketing/tooling churn — campaigns are the top source of dangling records.
Run a free BreachHunter assessment on your site →
Frequently asked questions
How is subdomain takeover different from someone hacking our DNS?
No account is compromised. The DNS record is one you left behind, working exactly as configured — pointing at a provider who will happily hand the name to whoever claims it now. The attack exploits your cleanup gap, not a breached password.
Can an attacker really get a certificate for our subdomain?
Often, yes: once they control the content the name serves, domain-validation for a certificate on that exact subdomain can succeed through the same HTTP challenge your own sites use. The phishing page can be fully HTTPS — padlock included.
Which subdomains are worth checking first?
Any CNAME pointing outside your own infrastructure — site builders, helpdesks, status pages, storage buckets, podcast and event platforms. A-records to your own servers cannot be “claimed” the same way; dangling CNAMEs are the takeover surface.
We found a dangling record. Is deleting it enough?
Yes for that record — deletion removes the name's resolution entirely. Then audit the zone for siblings and fix the process that left it, because the same campaign workflow usually leaves more than one.
Does the scanner claim the subdomain to prove it?
No — the check is non-invasive: it fingerprints the target's unclaimed state from the provider's own responses. Proof comes from the provider's default page and the record itself, without registering anything.
Keeping a subdomain inventory that stays true
Takeovers feed on forgotten records, so the defence is an inventory someone owns. Export your full DNS zone quarterly — every record, not just the ones you remember creating — and give each subdomain a named owner and a one-line purpose. A record nobody can explain is a record to investigate that week, not next quarter.
Decommissioning gets a closing step, too: when a service is cancelled, the DNS record pointing at it dies in the same ticket. Most dangling records are born in that gap — the marketing tool was cancelled in March, its CNAME lived on, and the subdomain stayed claimable by whoever registered the abandoned service name next.
Sources
The authorities this guide is built on, in the form we check our own work against:
- RFC 1035 (1987) — the DNS specification — CNAME records and what they point at.
- OWASP Web Security Testing Guide (2021) — subdomain enumeration as an information-gathering test.