← All guides
Critical

Subdomain takeover: the forgotten address an attacker can claim

An old web address still pointing at a service you stopped using can be taken over and used to impersonate your business.

6 minute read · Urgent threats

The short version

A subdomain is an address like shop.yourbusiness.co.uk or blog.yourbusiness.co.uk. If one of them still points at a service you have stopped using — an old online shop, a help desk, a landing page tool — an attacker can sign up for that same service, claim the spot, and suddenly *their* content appears under *your* name. It is called a subdomain takeover, and it is one of the most underestimated risks for established businesses.

How it happens, step by step

Businesses accumulate subdomains over the years. You tried Shopify for a while and pointed shop.yourbusiness.co.uk at it. You had a help centre on a support tool at help.yourbusiness.co.uk. Your old agency set up staging.yourbusiness.co.uk on a cloud server. Then you cancelled the Shopify account, switched help desks, and the agency shut down the server — but nobody updated your domain settings.

The DNS record (the signpost that says "shop.yourbusiness.co.uk lives at Shopify") is still there, pointing at a space that is now empty. This is called a dangling record. An attacker who spots it simply opens their own free account with that same provider, tells it "my site is shop.yourbusiness.co.uk", and because the signpost already points there, it works. They now control a page on your domain.

Why it is so damaging

The attacker's page is served from your real domain name, so it inherits all of your trust. It can:

  • Run convincing phishing — a fake login or payment page on shop.yourbusiness.co.uk is almost impossible for your customers to spot as fake, because the address is genuinely yours.
  • Steal cookies and sessions — browsers often share cookies across subdomains, so a hostile subdomain can read the cookies your main site set, including login sessions.
  • Bypass your security settings — many protections (CORS, CSP, cookie rules) trust "anything on my domain". A hijacked subdomain is inside that trusted circle.
  • Damage your reputation and search ranking — the page can host anything from spam to malware, all attributed to you, and Google will treat it as part of your site.

Because the attacker never touches your actual server, your hosting security, your passwords and your firewall are all irrelevant. The weakness is in a forgotten line of DNS.

How to check

On verified domains, VigilScan finds every subdomain of yours it can discover, checks where each one points, and tests whether the destination is a known service that is currently unclaimed. It only reports a takeover when the characteristic "this space is available" signature is present, so you are not chasing false alarms.

You can also review manually: log in to wherever you manage your domain (your registrar or Cloudflare), open the DNS records, and look at every CNAME record. For each one, ask: do we still use this service, and is the account still active? Anything you cannot account for deserves a closer look.

How to fix it

  1. In your DNS settings, find the record for the affected subdomain.
  2. If you no longer use that service, delete the record. The subdomain simply stops resolving — which is exactly what you want for something you do not use.
  3. If you do still want the subdomain, re-claim the resource on the provider's side (recreate the site or app so the destination exists again and is yours), or repoint the record somewhere you control.
  4. Make a habit of it: whenever you cancel an online service that had its own address on your domain, remove the DNS record the same day.
Deleting a stale DNS record is instant, free and risk-free. There is no good reason to leave a dangling record in place "just in case".

Common questions

I have never set up any subdomains. Can this still affect me?
Possibly — web developers, agencies and hosting companies often create subdomains on your behalf (staging, mail, cpanel, autodiscover and so on). A verified VigilScan check lists everything that exists so you can see for yourself.
What is the difference between a subdomain and a domain?
Your domain is the part you bought, like yourbusiness.co.uk. A subdomain is anything added in front of it — www, shop, blog, mail. You can create as many as you like for free, which is exactly why they tend to pile up and get forgotten.
Why is this only in the verified check?
Discovering and probing subdomains is more intrusive than a passive scan, so we only do it once you have proven you own the domain — that is both good manners and the legal basis for a deeper test.

Not sure if this affects your site?

Run a free check — it takes about 90 seconds and tells you exactly where you stand.

Check my website