Subdomain takeover risk

How the scan checks old subdomains from certificate history for DNS records that point at closed services, when it fails, and how to clean them up.

What AuditX checks

The scan asks the public certificate log site crt.sh once for the certificates ever issued for your domain. It keeps up to 40 subdomain names found there. It drops wildcard names, the bare domain and www. For the first 25 names it looks up the DNS CNAME record using public resolvers. It never sends a request to the subdomain itself. If the CNAME target matches a built-in list of third-party hosting services, the scan checks whether the target still has an A or AAAA record. A target counts as dangling when it has neither. If a lookup cannot be done, the target is treated as alive, to avoid a false alarm. The check fails when at least one matched subdomain is dangling, and names up to 3 with the service. It passes when subdomains point at listed services and all of them still resolve. It is an info note, which does not lower the score, when no subdomain points at a listed service, or when the crt.sh lookup did not complete, and it is never marked as not measured. The scan does not read page content, and it does not look at subdomains that never had a certificate, at services outside its list, or at records other than CNAME. If probes are turned off or the address is not public, the lookup is skipped. A fail lowers the security score. This check never caps the overall score.

Why it matters

MDN explains that a subdomain takeover happens when an attacker gains control of a subdomain, typically because the subdomain has a CNAME record in DNS but no host provides content for it, for example when a virtual host was removed.

Microsoft Learn explains that such DNS records are known as dangling DNS entries, and that a takeover lets malicious actors redirect traffic meant for your domain to a site performing malicious activity.

How to fix it

  1. Open the DNS settings for your domain and find the subdomains the report names.
  2. If you no longer use the service, delete the DNS record. If you still need the name, recreate the resource at the vendor so that the name points at something you control.
  3. When you close a service in future, remove its DNS record first, then delete the resource at the vendor. MDN calls this order of operations in lifecycle management.
  4. Keep a list of the subdomains you use and review it once a year, then scan again.
; Remove records like this when the service is gone
old-shop.example.com.  3600  IN  CNAME  closed-site.vendor.example.

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.