Subscribe to the Non-Human & AI Identity Journal

Why do SPF, DKIM, and DMARC sometimes fail to protect Exchange Online tenants?

They fail when the environment treats authentication as a signal rather than a blocking condition. If Exchange Online accepts mail directly or bypasses the intended gateway path, a message can fail authentication and still be delivered. That is why mail-flow enforcement and route validation matter as much as authentication policy.

Why This Matters for Security Teams

SPF, DKIM, and DMARC are often treated as proof that mail is safe, but they only validate parts of the message path. If Exchange Online is allowed to receive mail outside the intended enforcement path, authentication failures can become delivery events instead of blocks. That creates a policy gap where spoofed or misrouted mail still reaches users, especially in hybrid or multi-gateway setups.

This is why mail-flow design matters as much as authentication policy. NIST’s NIST Cybersecurity Framework 2.0 emphasizes governance and protective controls, but the practical problem here is route integrity: if the tenant accepts mail from more than one path, the strongest DMARC policy in the world will not compensate for a loose ingress design. NHIMG has also documented how attackers move quickly once they find exposed trust boundaries, as seen in the DeepSeek breach, where secret exposure created immediate abuse potential.

In practice, many security teams discover mail-flow bypass only after a spoofed message has already landed in a mailbox that was assumed to be protected.

How It Works in Practice

SPF checks whether the sending server is authorised for the domain, DKIM checks whether the message was signed and altered in transit, and DMARC ties those signals to the visible From domain. The failure point is not usually the authentication mechanism itself. It is the enforcement model around it. If Exchange Online is configured to accept direct inbound mail, or if connectors, relay paths, or hybrid rules allow alternate ingress, then a message can fail SPF, DKIM, or DMARC and still be delivered.

That means the security question is not only “did authentication pass?” but “was the message forced through the intended inspection and policy layer?” In well-run environments, mail flow is constrained so that:

  • External mail enters through a single, validated gateway path.
  • Connector scope is restricted to known source IPs and certificates.
  • Authentication results are enforced by policy, not just logged.
  • Bypass routes are monitored and removed unless explicitly required.

For identity-bound mail controls, the relevant principle is similar to workload identity: the receiving platform should trust a bounded, cryptographically verifiable path, not just a header verdict. That is why a secure design often pairs DMARC with strict transport rules and gateway enforcement, as recommended in current guidance from the Schneider Electric credentials breach research context and in broader governance models such as NIST Cybersecurity Framework 2.0. These controls tend to break down when organizations run hybrid Exchange, multiple third-party relays, or permissive receive connectors because the message can enter by a route that is outside the authentication enforcement chain.

Common Variations and Edge Cases

Tighter mail-flow enforcement often increases operational friction, requiring organisations to balance anti-spoofing strength against relay exceptions, partner integrations, and legacy application mailers. Current guidance suggests that the most common failure mode is not a weak DMARC policy, but an exception that quietly reopens delivery from an untrusted path.

Edge cases usually appear in these environments:

  • Hybrid Exchange deployments where on-premises and cloud rules do not match.
  • Applications that relay directly to Exchange Online using approved but overbroad connectors.
  • Third-party security gateways that inspect mail, but do not enforce final disposition.
  • Inbound B2B or vendor mail flows that depend on exceptions for business continuity.

DMARC also does not solve every abuse pattern. It is less effective against lookalike domains, compromised legitimate senders, and internal mailbox abuse. Best practice is evolving toward layered enforcement, where authentication is one signal among several and route validation is a separate control objective. The practical lesson is simple: if Exchange Online can still accept a message after authentication failure, the tenant is relying on inspection rather than enforcement, which is a weaker security stance for spoofing defense.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 PR.DS Mail-flow integrity supports protected data transfer and trusted comms paths.
NIST AI RMF Governance and control validation map to risk management and oversight of automated trust decisions.
OWASP Non-Human Identity Top 10 NHI-05 Bypassed trust paths mirror NHI control failures where credentials or assertions are accepted too broadly.

Restrict Exchange Online ingress to approved paths and enforce disposition on failed-auth mail.