Subdomain takeover

Subdomain takeover is a loss of control over content or a service reached through an organization’s hostname, often because DNS still points to a provider resource that has been abandoned and can be reclaimed. A dangling record is a warning condition; reclaimability determines whether the suspected path is usable.

What it is

A hostname can remain under an organization’s DNS control while the service behind it falls outside its control. For example, a team retires a hosted application but leaves an alias pointing to the provider. If the provider lets someone else register the abandoned resource and associate it with that hostname, the trusted name may deliver content controlled by another party.

The necessary conditions are specific: a live dependency, a resource no longer controlled by the intended owner, and a way for another party to obtain the relevant control. Many provider error pages do not satisfy all three. Some platforms require domain verification or retain reservations that prevent reassignment.

How it works

DNS directs clients through a chain of names or addresses to a service. The provider then uses its tenant configuration to decide what content to serve for the requested hostname. When DNS and provider lifecycle become disconnected, the public name can outlive the tenant or resource that was supposed to answer for it.

The lifecycle gap

Deletion order matters. Releasing a provider resource before removing or migrating its DNS dependency can create a window of uncertainty. Removing a record while caches still retain an earlier answer can also leave a temporary path. Retirement needs coordinated control over both sides, with provider-specific behavior considered explicitly.

Related trust relationships

An affected subdomain may be referenced by links, redirects, integrations or application allowlists. Some applications trust particular origins or share broadly scoped cookies. Those relationships influence impact, but they do not automatically make every sibling application compromised. Assess the precise trust boundary and relevant application controls.

Technical references: OWASP · Subdomain Takeover Prevention · OWASP · Attack Surface Analysis

How attackers use it

An attacker who obtains control of the abandoned resource may be able to publish misleading content under a credible hostname. Depending on the surrounding application relationships, that can support impersonation, deceptive authentication prompts or abuse of trusted integrations. The domain’s reputation can make the content more convincing than an unrelated address.

This is different from compromising the registrar or changing the organization’s DNS records. The attacker may rely on the existing record exactly as it stands. Defensive investigation should therefore review the provider resource and the hostname relationship, not only whether the DNS change log contains unauthorized edits.

Warning signs

Look for stale aliases, provider responses indicating a missing resource, retired projects with live DNS and delegated nameservers whose ownership is uncertain. Compare the observation with service records and the provider’s documented validation process. A branded error message or a known response signature is evidence to investigate, not proof that control can be obtained.

What to preserve

Record the hostname, complete relevant DNS chain, observation time, returned service response and the ownership question. Avoid treating historical source records as current answers. If multiple aliases lead to the same resource, identify the full set before fixing one visible name and leaving related dependencies behind.

Business impact

A trusted subdomain can make fraudulent content appear connected to the organization. Consequences may include customer deception, reputational harm and misuse of application trust relationships. The severity depends on the hostname’s role, its audience and the access that other systems grant it.

Even without confirmed misuse, uncertain control complicates incident response. Teams need to establish when the resource was released, whether content changed and what logs remain available. The operational impact often grows when a retired project has no remaining owner or supplier contact.

Prevention and remediation

Track DNS and provider resources together. Require an owner for each external dependency and make domain cleanup part of service retirement. Prefer provider configurations that verify continued control of custom domains, while recognizing that the exact protection varies by platform.

Closure criteria

- The owner confirms whether the service should exist, migrate or be retired. - The dangling dependency is removed or points to a resource under verified control. - Related aliases and delegated infrastructure are reviewed where relevant. - A repeat observation accounts for caching and confirms the intended response. - Any suspected historical misuse is investigated separately from the configuration fix.

If content appears actively malicious, preserve evidence and use the incident process while coordinating domain and provider controls. Fixing the present DNS state does not establish whether visitors were previously affected. Keep that uncertainty visible until evidence resolves it.

How Ariema detects or handles it

Ariema’s DNS relationships, hosting context and public web observations can reveal a dependency that no longer matches the intended service. Timestamped evidence helps reviewers compare an earlier working state with a later provider error or destination change.

Those observations support a suspected-takeover review; they do not by themselves establish reclaimability. The authorized owner must confirm provider control conditions and select the appropriate fix. Follow-up and retest evidence can then document whether the public dependency has been corrected.

Common questions

Does an unrecognized provider page confirm takeover?

No. It can indicate a missing tenant, routing error or intentionally inactive resource. Provider-specific reclaimability and control requirements must be checked through an authorized process.

Must there be a CNAME record?

No. Aliases are a common case, but other stale dependencies can matter, including delegated DNS infrastructure. Assess the actual control relationship rather than only one record type.

Can removing DNS be enough?

It can remove the hostname-to-resource path, but review caches, related names, provider resources and any evidence of prior misuse. A retired record and an incident investigation answer different questions.

Sources & further reading

Primary technical references for this guide. Scenarios are illustrative; they are not customer observations.

OWASP · Subdomain Takeover PreventionOWASP · Attack Surface AnalysisNIST · Technical security testing and assessment