[ Spoofing & identity abuse ]

Subdomain takeover and inherited email trust

Assess stale subdomain dependencies by mapping exact DNS control, provider allocation protections and the email or application trust actually affected.

By the EmailAuth research team · 8 min read

[ Key points ]

  • A stale reference is not proof that another party can claim it.
  • Web endpoint control and email-signing authority have different scopes.
  • Plan exact-record changes with dependency evidence, restore material and authorized verification.
On this page

Map the dependency before naming the risk

A stale DNS reference can leave a subdomain pointing at a service the organization no longer controls. Whether another party can claim that service depends on the provider's allocation and domain-verification rules. Even when a takeover exposure exists, the resulting authority is not automatically control of all email for the parent organization. A useful investigation maps the exact record, the external dependency and the trust relationships that consume it before deciding what the exposure could enable.

Microsoft's Azure subdomain-takeover guidance describes dangling DNS references, provider-specific protections and cleanup. It supports investigating stale dependencies, not assuming that every unresolved CNAME is exploitable. This article proposes defensive review and change planning only. No third-party resource was registered, no name was claimed, no DNS record changed and no test message sent.

Distinguish references, delegation and actual control

RFC 1035 defines CNAME and NS record formats. A CNAME points a particular DNS name toward another name; it is not by itself delegation of an entire zone. A child-zone delegation has a different scope because the delegated servers can answer for names within that zone. A stale web-hosting reference, a delegated marketing subdomain and a DKIM selector pointing to a supplier therefore require different dependency maps. Treating them all as “the domain was taken over” discards the information needed for remediation.

List the exact owner name, type, value, zone and authoritative operator. Record the service account or supplier expected to control the target and the evidence for that relationship. An unavailable target is an observation about resolution or service state, not proof that it is available for another customer to claim. Provider reservations, verification tokens and lifecycle restrictions can change that conclusion. Check current documentation and authorized ownership records without attempting a resource claim to demonstrate risk.

Separate web control from email authority

Control of a web endpoint can affect content served at that name and any application that trusts it. It does not necessarily allow changing the parent domain's SPF, publishing arbitrary DKIM keys or operating its mailboxes. Conversely, control of an email-relevant delegated zone or selector target can have a different security impact. The investigation must identify which DNS names the email mechanism actually consults and who can alter their responses.

RFC 6376 describes DKIM key retrieval using the selector and signing domain. A stale selector dependency is therefore not equivalent to a stale unrelated website CNAME. Potential signing implications depend on the key material, the lookup path and the ability to produce a valid signature; they should not be asserted merely from a broken web page. No private key or signing test is needed for the documentary dependency review proposed here.

Evaluate alignment and inherited assumptions carefully

RFC 9989 defines alignment and policy discovery for DMARC. Related domains may interact differently under relaxed or strict alignment, so the visible From domain and authenticated domain must be recorded exactly. Do not assume every subdomain is isolated from every parent identity, or that one subdomain's control automatically authenticates arbitrary parent-domain mail. The actual mechanism and policy determine the relationship.

There may also be application trust outside the authentication protocols. An internal allowlist, brand association, callback URL or user expectation could treat a subdomain as trusted. Document each such relationship as an application or business dependency rather than a DNS standard rule. Microsoft warns that secrets or sensitive information sent to dangling subdomains can be exposed. This is a reason to review dependent applications, not a claim that any such exposure happened in the organization under review.

Apply provider protections within their documented scope

Azure's guidance describes App Service custom-domain verification using an asuid TXT record and a domain verification ID. It also explains that preventing another subscription from validating the custom domain is distinct from preventing creation of an App Service instance with a matching service name. These are provider-specific protections. They do not establish that every Azure service, every DNS record or another cloud provider uses the same lifecycle rules.

The same guidance describes Azure DNS alias records coupling certain supported resource lifecycles to DNS references, with limits on supported targets. Do not generalize that behavior to ordinary CNAME records or all providers. For each dependency, record the applicable protection, where its current evidence is retained and what remains unverified. A documented protection can reduce a particular exposure without proving that all application or email trust relationships are safe.

An exact-record change worksheet

Prepare an approved change plan with the current complete record set, intended diff, target dependency, business owner, active consumers and restore material. Include the reason for retirement or correction, current provider constraints, verification plan and rollback decision criteria. A deletion is not automatically safe merely because a service appears unused; queued mail, active selectors, customer workflows or a replacement service may still depend on the name.

Keep the dependency map separate from the authorization record. A researcher can identify a possible stale reference without being authorized to remove it. After an approved change, the operational team would retain authoritative and recursive lookup evidence with times, names and record types. Cached answers and provider state can outlast a change, so deletion alone is not proof of immediate universal revocation. No such diff, lookup or rollback was executed for this manuscript.

Fictional diagnosis: a retired campaign service

A fictional organization retires a campaign platform but leaves two DNS references: a website CNAME and a DKIM selector CNAME. An inventory tool reports that the website target is unavailable. The team initially assumes both records create identical takeover risk. The proposed review instead maps the targets, provider account ownership, custom-domain verification rules and email-signing dependencies separately. The unavailable website result does not establish the selector's state or another party's ability to claim either resource.

The mail owner would check whether the selector still supports active or queued signing workflows before proposing retirement. The web owner would review the campaign endpoint and any application trust attached to it. Both proposed changes would require exact restore material and approved verification. This is a fictional lifecycle exercise, not a discovered dangling record, resource claim, successful takeover or completed offboarding. No real service identifier or credential was collected.

Close the control boundary with evidence

A defensible report names the stale dependency, its verified control state, the mechanism through which trust could be affected and the approved corrective action. It distinguishes potential exposure from confirmed exploitation. It also records residual uncertainties, such as incomplete supplier ownership evidence or unobserved cache behavior. Avoid describing a provider-specific protection as a universal guarantee or a deleted record as proof that historical misuse never occurred.

The catalogue requires an approved exact-record diff, dependency map, restore material and post-change lookup evidence. Those original artifacts remain open. The proposed worksheet does not satisfy them, and all other release gates remain open. Human specialist review, source applicability, production routes, accessibility and owner approval must be completed before publication. The purpose is to make cleanup safer and more precise without performing a takeover demonstration or overstating inherited email authority.

[ Takeaway ]

Resolve the exact dependency and control boundary before describing inherited email trust or approving cleanup.

[ By role ]

What this means for you

Choose your role for practical next steps.

DNS administrator

Preserve exact-record context

A CNAME and a delegated zone convey different control.

Next steps

  1. Record complete affected record sets.
  2. Require approved diff and restore material.

Mail security owner

Map email-specific dependencies

A selector target differs from an unrelated web endpoint.

Next steps

  1. Identify signing and alignment relationships.
  2. Preserve active workflow dependencies before retirement.

Service owner

Verify provider lifecycle rules

Allocation and verification protections are service-specific.

Next steps

  1. Confirm ownership and retirement state.
  2. Do not claim resources as a proof technique.

[ FAQs ]

Frequently asked questions

Does an unresolved CNAME prove takeover is possible?

No. Provider allocation, reservation and domain-verification rules affect whether a resource can be claimed.

Microsoft Azure: Prevent subdomain takeovers with dangling DNS entries

Does a website takeover automatically control parent-domain email?

No. The exact DNS and application authority must be mapped; web content control is not automatically signing or mailbox control.

Why review a DKIM selector separately?

DKIM key lookup depends on the selector and signing domain, so its dependency can differ materially from a web-hosting reference.

RFC 6376: DKIM

Does every subdomain align with the parent automatically?

Do not assume that. The actual identifiers and DMARC alignment mode determine the relevant relationship.

RFC 9989: DMARC

What does Azure App Service verification protect?

The cited guidance describes a domain verification TXT record preventing another subscription from validating that custom domain, distinct from resource-name creation.

Microsoft Azure: Prevent subdomain takeovers with dangling DNS entries

Do Azure aliases protect every DNS reference?

No. The documented lifecycle coupling applies to supported alias targets and should not be generalized to ordinary CNAMEs or other providers.

Microsoft Azure: Prevent subdomain takeovers with dangling DNS entries

Does deleting a record prove immediate universal revocation?

No. Cached answers, active workflows and provider state need separate consideration and actual post-change evidence.

Was a stale dependency changed or claimed here?

No. The example is fictional; the required approved diff, dependency map, restore material and lookup evidence remain open.

[ Sources ]

Sources

  1. RFC 1035: Domain Names Implementation and Specification

    Sections §3.3.1 CNAME RDATA format · §3.3.11 NS RDATA format · §3.3.14 TXT RDATA format

  2. RFC 9989: DMARC

    Sections §2.2 Anti-Phishing · §2.4 Out of Scope · §4.4 Identifier Alignment Explained · §11.4 Display Name Attacks

  3. RFC 6376: DKIM

    Sections §1. Introduction · §3.5 DKIM-Signature Header Field · §8. Security Considerations

  4. Microsoft Azure: Prevent subdomain takeovers with dangling DNS entries

    Sections Remediate dangling DNS entries · Prevent dangling DNS entries · Use Azure App Service's custom domain verification

[ Glossary ]

Glossary

Dangling reference
A DNS reference to a resource no longer provisioned or controlled as intended, requiring provider-specific investigation.

Microsoft Azure: Prevent subdomain takeovers with dangling DNS entries

Selector dependency
The DNS lookup relationship used to retrieve a DKIM public key for a selector and signing domain.

RFC 6376: DKIM

Control boundary
The exact names, services or actions an actor can affect, kept distinct from inferred brand trust.
Restore material
The retained previous configuration and dependency information needed to plan an authorized recovery.

Enterprise provenance

Why top financial institutions and governments retired their email security dashboards.

Traditional email authentication platforms sell you a dashboard and ask your engineers to do the labour. In high-stakes environments, manual oversight means delayed enforcement, configuration drift and unmonitored shadow domains.

EmailAuth is the agentic email provenance platform. Our agents enforce p=reject, keep third-party senders aligned and move your domains to full RFC 9989 compliance, the new DMARC standard,, with human-in-the-loop auditability.

Governments Large enterprises Tier-1 financial institutions

SaaS · Dedicated tenancy · Air-gapped on-prem · BYOK encryption

Knowledge Base