Skip to content
← RegistryDossier · 7 steps · 6 edges

Subdomain takeover → cookie theft → account takeover

Dangling CNAME on a corporate subdomain (e.g. mail.target.com → unclaimed Heroku app). Claim it, serve a malicious page, harvest session cookies scoped to *.target.com.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: session cookies set with Domain=.target.com (common). At least one DNS record points to an unclaimed cloud resource the attacker can register.

§ Steps

  1. 01
    Account takeoverInitial Access
    T1078Valid Accounts
  2. 02
    Phish target users with a same-org linkInitial Access
    W-OPEN-REDIRECTOpen Redirect

    Cookies for .target.com are sent to the takeover host.

  3. 03
    Host attacker content under the trusted hostInitial Access
    W-SUBDOMAIN-TAKEOVERSubdomain Takeover
  4. 04
    Claim the unclaimed resourceInitial Access
    W-SUBDOMAIN-TAKEOVERSubdomain Takeover

    Register the Heroku app / GitHub Pages / Azure resource with the matching name.

  5. 05
    Find dangling CNAMEInitial Access
    W-SUBDOMAIN-TAKEOVERSubdomain Takeover
  6. 06
    Harvest authenticated session cookiesCredential Access
    T1539Steal Web Session Cookie
  7. 07
    Enumerate subdomainsReconnaissance
    W-RECON-SUBDOMAINSubdomain Enumeration

§ References

§ Frequently asked

What is the "Subdomain takeover → cookie theft → account takeover" attack path?
Dangling CNAME on a corporate subdomain (e.g. mail.target.com → unclaimed Heroku app). Claim it, serve a malicious page, harvest session cookies scoped to *.target.com. It chains 7 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Account takeover (T1078) — a initial access primitive. Assumed environment: session cookies set with Domain=.
What is the final impact of this kill-chain?
The final step lands on Enumerate subdomains (W-RECON-SUBDOMAIN), which falls under Reconnaissance. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers