← Learn

Subdomain takeover: a dangling DNS record an attacker can claim

If a subdomain still points (CNAME) at a deprovisioned host, someone else can register that host and serve content from your domain. Here is how to find and fix it.

A subdomain takeover happens when a DNS record — usually a CNAME — still points at a third-party service you no longer use. If that service lets anyone claim the unclaimed hostname, an attacker can host their own content on your subdomain.

Why it's serious

An attacker controlling app.yourdomain.com can run phishing under your brand, steal cookies scoped to your domain, or pass domain-validated checks. It looks legitimate because it really is your subdomain.

The fix

  1. Find DNS records pointing at services you no longer have an active resource on.
  2. Delete the dangling record in your DNS provider, or re-claim the resource on the target service.
  3. Audit wildcard and old marketing/staging subdomains — they're the usual culprits.

→ Run a free scan

FAQ

What causes a subdomain takeover?
A DNS record (often a CNAME) that still points at a third-party host you deprovisioned. If the host lets anyone claim that unclaimed name, an attacker can serve content from your subdomain.

How do I fix a dangling DNS record?
Delete the record in your DNS provider, or re-claim the resource on the target service. Pay special attention to old staging, marketing, and wildcard subdomains.

Related questions

Check your own app
Free passive scan, ~10 seconds, no login.