Subdomain Takeover: The Silent Threat Most Companies Miss
Abandoned subdomains are an easy entry point for attackers. Here's how to find and fix them.
You have a subdomain pointing to a service you no longer use. An attacker registers that service and now controls your subdomain. This is subdomain takeover.
How it works
Company uses blog.example.com pointing to a Heroku app. They delete the Heroku app but forget to remove the DNS record. Attacker creates a new Heroku app, and now blog.example.com serves their content.
Why it's dangerous
- Attackers can steal cookies set on the parent domain
- Phishing using your legitimate domain
- Defacing content on your subdomain
- SSRF attacks against internal services
How to prevent it
- Audit all CNAME and ALIAS records regularly
- Remove DNS records for services you no longer use
- Use monitoring tools to alert on subdomain changes
- Implement a subdomain registry