A subdomain takeover happens when one of your DNS records still points to an external service, such as a cloud storage bucket, a hosted website or a SaaS landing page, that you no longer use. If someone else can claim that resource, they control content served on your subdomain. Attackers use taken-over subdomains for convincing phishing pages, stealing cookies scoped to your domain and damaging your reputation. The fix is simple once you know: remove DNS records when you retire the service, and monitor your DNS for records pointing at unclaimed resources.
How a takeover happens
The typical sequence looks like this. A team creates a marketing site on a hosting platform and points promo.example.com at it with a CNAME record. The campaign ends, the hosting account is deleted, but the DNS record stays. The record now points at a name on the platform that nobody owns. An attacker who finds it can create a new account on the same platform, claim that name, and serve any content they like at promo.example.com, with your domain in the address bar.
Why it matters
A subdomain on your domain inherits trust. Users and email filters treat it as yours.
- Phishing pages hosted on your own domain are far more convincing.
- Cookies scoped to the parent domain may be readable by the attacker's page, which can expose sessions in some configurations.
- Attackers may be able to obtain TLS certificates for the subdomain, making the page look fully legitimate.
- Defacement or malicious content damages your reputation and can get your domain flagged by browsers and email filters.
- Some security policies trust all subdomains, extending the impact.
Services commonly involved
Takeovers are possible wherever a service lets anyone claim a name that your DNS points at, and does not verify domain ownership. Historically, cases have involved cloud storage buckets, static site hosting, platform-as-a-service apps, content delivery networks, help desk and landing page tools. Providers have tightened verification over time, so the list changes; the community-maintained "can I take over XYZ" project tracks which services are currently vulnerable.
How to find vulnerable subdomains
Start by listing every subdomain you have, then check where each one points.
- Export all records from your DNS provider, including old zones.
- Add subdomains found in certificate transparency logs, which list every publicly issued certificate.
- For each CNAME, A or ALIAS record pointing at an external service, check that the resource exists and belongs to you.
- Watch for error pages typical of unclaimed resources, such as "no such bucket" or "site not found".
- Check records pointing at IP addresses in cloud ranges you no longer hold.
Fixing what you find
For each dangling record, either delete it or reclaim the resource. Deleting is usually right if the service is no longer needed. If you suspect a subdomain has already been taken over, treat it as an incident: preserve evidence of the content being served, remove or repoint the record, and check whether it was used for phishing against your users or clients.
Preventing new ones
Prevention is a process change more than a tool.
- Make DNS cleanup a required step in decommissioning any service.
- Restrict who can create DNS records, and record the owner and purpose of each.
- Manage DNS as code where possible, so records are reviewed like other changes.
- Use providers' domain verification features where offered.
- Monitor DNS and certificate transparency continuously for new and dangling records.
A worked example
A company's external discovery flags help.example.com returning an error page from a support platform the company stopped using a year earlier. The DNS record still points at the platform, and the account name is unclaimed. The company deletes the DNS record the same day, checks logs and search results to confirm nothing was served from the subdomain in the meantime, and adds DNS cleanup to its supplier offboarding checklist. A second dangling record, for an old campaign site on a static hosting service, is found and removed in the same review.
Who should own the fix
DNS often sits with IT while the services it points at belong to marketing, development or vendors. Agree who owns each record, and make the service owner responsible for telling DNS owners when something is retired.
Continuous monitoring
Subdomains appear and services are retired all the time, especially in growing companies, so a one-off check goes stale quickly. External attack surface management tools discover subdomains and check them for takeover conditions continuously. Our EASM service does this as part of monitoring your internet-facing assets, and our post on what EASM is explains the wider approach.
Frequently asked questions
What is a subdomain takeover?
How do subdomain takeovers happen?
How do I prevent subdomain takeovers?
Is a subdomain takeover a security incident?
Find dangling subdomains before attackers do
Our EASM service discovers your subdomains and checks them for takeover conditions continuously.

