Book a demo →
← All posts

SPF DKIM Passing Phishing Emails: Why Authentication Fails

SPF and DKIM pass, yet phishing still lands. See why authentication can't verify intent and what contextual email security checks instead.

SPF DKIM Passing Phishing Emails: Why Authentication Fails

SPF and DKIM confirm that a message's sending server and signing domain are authorized and that the content was not altered in transit. They say nothing about whether the request inside the message makes sense for the recipient. Attackers using real sending platforms, compromised vendor accounts, or hijacked mailboxes pass both checks while still delivering credential phishing.

Key takeaways

  • SPF confirms sending IP authorization; DKIM confirms a message wasn't altered and was signed by a domain's key. Neither evaluates intent.
  • Attackers increasingly send phishing through genuine platforms (DocuSign, SendGrid) and compromised vendor mailboxes, which pass SPF and DKIM by default.
  • Authentication results are forensic evidence about a message's path, not a verdict on whether it's safe.
  • Effective detection requires following links and attachments to their real destination and reasoning about whether the request fits the recipient's role.
  • DMARC enforcement helps against domain spoofing but does not stop phishing sent from an already-compromised, fully authenticated account.

What do SPF and DKIM actually verify?

Email authentication was built to answer one question: is this message coming from a server or domain that's allowed to send it? That's a narrower question than "is this message safe?" and the gap between the two is where a lot of current phishing lives.

What does SPF check?

SPF (Sender Policy Framework) checks whether the sending IP address is listed in the DNS record for the envelope sender domain, also known as the Return-Path. It's an infrastructure check. It doesn't look at the visible From address a recipient sees, and it doesn't look at what the email asks the recipient to do.

What does DKIM check?

DKIM (DomainKeys Identified Mail) adds a cryptographic signature to the message using a private key controlled by the sending domain. A passing signature means the message wasn't altered after it left that domain's servers. It confirms integrity and a verified signing domain, not that the request inside the message is legitimate.

What do neither protocol check?

Neither SPF nor DKIM evaluates:

  • Whether the request matches what's normal for the recipient's role
  • Where a link actually resolves after any redirects
  • What's inside an attachment, several layers down
  • Whether the sending account itself has been compromised
  • Whether the message fits the recipient's actual relationship with the sender
ProtocolConfirmsDoes not confirm
SPFSending IP is authorized for the envelope domainIdentity shown in the From header, or intent of the message
DKIMMessage signed by the domain's private key, content unalteredThat the signing domain or account is trustworthy
DMARCSPF/DKIM results align with the visible From domainWhether the aligned sender account has been taken over

How do attackers send phishing through legitimate platforms?

Attackers abuse sending platforms that recipients already trust and already receive mail from, rather than trying to spoof a domain outright.

In an AegisAI review of attacks reaching Writer, the pattern was explicit: "The attacks reaching Writer were built to give a rule nothing to fire on: real sending platforms, compromised vendor domains, valid SPF and DKIM, lookalike infrastructure registered the morning of the attack, and a malicious link hidden one layer down inside an attachment."

Three lures from that review illustrate the point:

  • A DocuSign-themed message was "sent from the genuine DocuSign platform (dse_NA3@docusign.net), SPF and DKIM passing on docusign.net."
  • A voicemail notification impersonating a compromised vendor account had "SPF and DKIM passing."
  • A SendGrid API alert used to harvest credentials also had "SPF and DKIM passing."

In all three cases, authentication worked exactly as designed. The sending infrastructure was genuine. That's precisely why the checks returned clean.

Why do compromised vendor domains defeat authentication?

Platform abuse is one path. Account takeover is another. An attacker compromises a real mailbox at a vendor or partner organization, then sends from it directly. Since the mail originates from the real tenant, every check passes: SPF passes, DKIM passes, DMARC passes, and the display name, reply-to address, and signing domain are all genuine.

One account takeover analysis put it directly: "SPF passes. DKIM passes. DMARC passes. The headers are clean. The display name is real. The reply-to address is real" (Infinet, March 2026). The same piece notes that authentication protocols "verify that the sender is who they say they are, not that the message is legitimate."

This is a structural limitation, not a configuration mistake. No amount of DMARC enforcement changes the outcome when the attacker is operating from inside an account that was never forged to begin with. AegisAI's own research into compromised infrastructure used in AI spearphishing documents the same shift away from forged domains toward living off infrastructure that's already trusted.

Is authentication evidence or a verdict?

Forensic analysis treats authentication results as one data point among several, not a standalone answer. SPF only validates the envelope sender, which can differ from the visible From header a recipient actually reads. A passing DKIM signature on the From-header signing domain is a stronger signal, but it still only tells an investigator where the message came from, not what it's asking the recipient to do (Sherlock Forensics, June 2026).

Authentication headers are useful for tracing a message's path during an investigation. They were never designed to evaluate whether a request is appropriate for the person receiving it.

What does contextual email security check instead?

If authentication confirms the pipe is clean but says nothing about what's flowing through it, detection has to move to a different layer: the content, the destination, and the fit between the request and the recipient.

That means investigating a message the way an analyst would, not just the way a filter would:

  • Following links to their actual landing page, including redirects, rather than scoring the first URL in the header
  • Opening attachments to their final destination, since AegisAI's review of the Writer attacks found a malicious link "hidden one layer down inside an attachment" where static scanners stop looking
  • Reasoning about role fit: does an invoice request, credential prompt, or document share make sense for this recipient, from this sender, at this point in their working relationship
  • Treating authentication as one input, not the deciding one, consistent with how AegisAI frames the broader problem of DMARC-passing phishing and trust hijacking

This is the gap AegisAI's agentic investigation is built to close: it follows links and attachments to their final destination and evaluates whether the resulting request is plausible for the recipient's role, rather than stopping once a sending domain checks out. For a deeper look at how the underlying protocols fit together and where each one stops short, see AegisAI's explainer on SPF, DKIM, and DMARC architecture.

FAQ

Can a phishing email pass SPF and DKIM?

Yes. If the message is sent through a genuine platform, a compromised vendor mailbox, or an account takeover, SPF and DKIM will pass because the underlying infrastructure and signing domain are authentic.

Why doesn't DMARC catch phishing from a compromised vendor account?

DMARC checks whether SPF or DKIM align with the visible From domain. A compromised account sends from the real domain, so alignment succeeds and DMARC passes along with it.

What's the difference between authentication and detecting phishing intent?

Authentication verifies who sent a message and whether it was altered in transit. Detecting intent requires evaluating what the message asks the recipient to do and whether that request is plausible given their role and relationships.

Does AegisAI rely on SPF and DKIM results to flag phishing?

AegisAI treats authentication as one input among several and prioritizes following links and attachments to their final destination while reasoning about whether the request fits the recipient and their role.

What should security teams do beyond SPF, DKIM, and DMARC?

Layer in detection that inspects link and attachment destinations and content context, since authentication alone cannot account for genuine infrastructure used for fraudulent purposes.

See where authentication-passing phishing gets through

If credential phishing is reaching inboxes despite clean SPF and DKIM results, the gap is likely in how those requests are evaluated after authentication passes. Book a demo to see how AegisAI investigates links and attachments to their final destination.

Newsletter

Don't miss the next big threat

New attack write-ups, product changes and practical defence notes, sent when there is something worth reading.