BreachHunter
Pricing Blog Log inSign up
● thermal huntscan engines onlineassessment only — no exploits
  1. Home
  2. Blog
  3. Subdomain Takeover: How a Dangling DNS Record Lets Attackers Claim Your Name

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

By the Ingenious AI team

The short answer: A subdomain takeover happens when a DNS record — usually a CNAME — still points at a third-party service (a deleted site host, an abandoned storage bucket, a removed helpdesk) that no longer claims that name. Anyone can then register the abandoned target at the provider and instantly serve content as blog.your-domain or status.your-domain, with your domain's trust and, often, cookies scoped to ride along. BreachHunter's recon includes a dedicated takeover module that checks your subdomains for exactly this dangling state.

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:

  1. Build the inventory: list every subdomain from your DNS zone and certificate transparency, with a named owner and purpose for each.
  2. Delete DNS records in the same change window as cancelling any third-party service — make it a decommissioning checklist line.
  3. Check remaining CNAMEs to third parties: each target must be a service you still hold and have claimed.
  4. Treat any subdomain nobody can explain as an incident until it is explained or removed.
  5. 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.
Share this: X · Facebook · LinkedIn · WhatsApp

Related guides

  • Website Security Test: What It Checks, What It Misses, and How to Read Yours · 9 min read
  • Website Security Cheat Sheet: Headers, TLS, Cookies and Exposed Files · 7 min read
  • What a Website Security Assessment Actually Tests · 10 min read
  • TLS/SSL Basics: What Your Certificate Says About Your Site · 8 min read
  • Common Website Misconfigurations (and How to Fix Them) · 11 min read
  • Reading Your First Pentest Report: From Score to Action · 9 min read
  • Deleted ≠ Gone: What the Wayback Machine Keeps After You Delete Your Secrets · 9 min read
  • SQL Injection in Plain English: How One Login Box Can Read Your Database · 9 min read
  • What Does a Website Security Scan Check? · 8 min read
  • Exposed .git Directory: What It Leaks and How to Check · 7 min read
  • Security Headers Missing? What Each Header Stops · 7 min read
  • How Much Does a Penetration Test Cost in 2026? · 7 min read
  • Website Security Checklist for Small Teams (60-second self-check) · 6 min read
  • Reading Your Scan Results: Which Findings Fix First? · 7 min read
  • Content-Security-Policy Missing: What CSP Does and How to Add It Safely · 8 min read
  • HSTS Missing: What Strict-Transport-Security Prevents · 7 min read
  • Clickjacking and X-Frame-Options: How Framing Attacks Work · 7 min read
  • Cookie Flags Explained: Secure, HttpOnly and SameSite · 8 min read
  • Exposed .env File: What Leaks, What Attackers Do Next, What You Do First · 8 min read
  • Directory Listing Enabled: What It Shows Attackers and How to Disable It · 7 min read
  • Mixed Content: Why Your HTTPS Page Still Loads Insecure Resources · 7 min read
  • Expired SSL Certificate: What Breaks, Why Renewal Fails, and How to Catch It Early · 7 min read
  • TLS 1.0 and 1.1 Still Enabled: Why Old Protocols Show Up as a Finding · 7 min read
  • Open Ports on a Web Server: Which Ones Should Never Face the Internet · 8 min read
  • No SPF or DMARC Record: How Missing Email Auth Exposes Your Website · 7 min read
  • Forgotten Subdomains: The Staging Site You Forgot Is Still Public · 7 min read
  • WordPress Security Scan: The Exposures an Assessment Finds on WordPress Sites · 8 min read
  • Exposed Backup Files: .bak, .old and .zip Files Sitting in Your Web Root · 7 min read
  • phpinfo() in Production: The Diagnostic Page That Maps Your Server for Attackers · 7 min read
  • Server Version Banners: Why Your Headers Point Attackers to the Right Exploit · 7 min read
  • End-of-Life Software: Running a Server Stack Nobody Patches Anymore · 7 min read
  • CORS Misconfiguration: When Cross-Origin Sharing Opens Your Data to Any Site · 7 min read
  • Open Redirect Vulnerability: How Your Own Domain Sends Visitors to a Phishing Page · 7 min read
  • Dangerous HTTP Methods: What TRACE, PUT and DELETE Should Never Answer · 7 min read
  • Host Header Injection: Poisoned Reset Links and Cache Attacks Explained · 7 min read
  • What Is security.txt? The Small File That Lets Researchers Reach You · 6 min read
  • Admin Panel Exposed to the Internet: What an Assessment Flags and Why · 7 min read
  • phpMyAdmin Exposed: Why This Database Door Is a Prime Brute-Force Target · 7 min read
  • Spring Boot Actuator Exposed: Environment Dumps, Heap Leaks and Shutdown Endpoints · 7 min read
  • Debug Console in Production: The Finding That Can Become Code Execution · 7 min read
  • Exposed AWS Credentials File: The /.aws/credentials Finding, Explained · 7 min read
  • Referrer-Policy and Permissions-Policy: The Two Quiet Headers You Are Probably Missing · 6 min read
  • Exposed package.json: Your Dependency List Is a Recon Gift · 6 min read
  • DNS Zone Transfer Open (AXFR): Handing Out Your Entire DNS Map · 6 min read
  • Certificate Name Mismatch: Why the Cert Does Not Match Your Domain · 6 min read
  • Website Security Assessments for Agencies: Checking Every Client Site Without a Security Team · 8 min read
  • SaaS Security Questionnaires: What Buyers Check About Your Website First · 8 min read
  • Ecommerce Website Security: The Exposures That Put Your Checkout at Risk · 8 min read
  • Small Business Website Security: The Checks That Matter at Your Size · 7 min read
  • How to Prepare for a Website Security Assessment (and Read the Report Calmly) · 7 min read
  • Vulnerability Severity Explained: What Critical, High, Medium and Low Actually Mean · 7 min read
  • Retest After Fixes: How to Prove a Security Finding Is Actually Closed · 7 min read
  • Security Assessment vs Vulnerability Scan vs Pentest: What Is the Difference? · 7 min read
  • How Long Does a Website Security Scan Take? · 6 min read
  • Website Security Drift: Why Last Month's Clean Scan Is Already Out of Date · 7 min read
  • WordPress Site Keeps Getting Hacked After Cleanup · 8 min read
  • Google Blacklist Removal: Getting the Red Warning Off Your Site · 8 min read
  • VirusTotal Flagged My Site: How to Clear a False Positive · 8 min read

Related from the Ingenious AI suite

  • Ingenious AI — the full suite of security and compliance tools
  • DomainGuard — domain impersonation and typosquat defense
  • See BreachHunter pricing →
BreachHunter · by Ingenious AI · read-only security assessment — scan only targets you own or are authorized to test
About · Contact · Blog · vs Intruder · Privacy · Terms · Security · Threats · Nextcloud Check · Verify Evidence · Help · Redeem
More from Ingenious AI:
DisclosureGuard — AI disclosure compliance · Vibe-Code Audit — AI code security scanner · Rogue-Agent Defense — AI agent firewall · ChatBreaker — AI chatbot red-teaming · ModelMinder — AI model deprecation radar · TermsWatch — AI vendor terms monitor · Agent Flight Recorder — tamper-evident agent audit trails · Agent Auth Gateway — agent credentials & kill switch · DomainGuard — domain impersonation defense · Agent Passport — Know-Your-Agent registry · AgentGate — agent policy publisher · AgentBlock — AI agent & crawler access control · BoundaryVault — agent log forensics · Agentic Receipts — verifiable agent payment receipts · EvalEgress — eval-to-production exposure scan · HomeShield MCP — home AI server exposure check · WireWatch — payment verification ceremony · ADMT Notice Kit — AI decision notice compliance · DueLadder — human-approved invoice chasing · Agent-Ready Store Audit — can AI agents buy from your store · ContentCraft AI — content operations · AgentReady — agent-readiness checks · AI Audit Exchange — AI audit exchange · CallbackShield — callback & webhook protection · CompanionGuard — AI companion safety guardrails · CRAClock — EU Cyber Resilience Act deadline clock · EInvoice Translator — e-invoice format translator · GEOFixer — geo & local listing fixes · MandateGuard — agent spending mandates · OutcomeMeter — AI outcome measurement · ProvenanceGuard — content provenance checks · ReviewDesk — review response desk · ReviewProof — verified review evidence · TakedownCoop — coordinated phishing takedowns · TrustGate — trust & safety gating · BreachHunter — website penetration testing · All 36 platforms — the Ingenious AI portfolio

We use cookies. Necessary cookies keep the site working. With your permission we also use analytics cookies (to understand usage) and marketing cookies (for ads). Read our privacy policy.

NecessaryRequired for login, security and core features. Always on.
AnalyticsHelps us understand which pages are useful.
MarketingUsed for advertising and measuring ad performance.

    No match. Try “pricing”, “php2shell” or “contact” — or press Esc to close.

    ↑↓ navigate · Enter open · Esc close