Cybersecurity

How to Detect Business Email Compromise From Email Headers

Discover the telltale signs of business email compromise in email headers and learn how to identify compromised accounts before attackers extract money or sensitive data.

By Inventive HQ Team

Understanding Business Email Compromise

To detect business email compromise from email headers, compare the message against the sender's normal baseline across three axes: the Received chain (originating IP, ASN, and hostname), the timestamps (send time, origin timezone, and hop-to-hop delay), and the client fingerprint (X-Mailer / User-Agent). The critical trap is that a genuinely compromised account passes SPF, DKIM, and DMARC — the attacker is using real credentials on a legitimate mail path, so authentication proves nothing about who is at the keyboard. For account-takeover BEC, the signal lives in behavioral and routing anomalies, not the Authentication-Results line. For vendor-impersonation BEC, the signal flips: a look-alike domain authenticates cleanly for itself but fails DMARC alignment against the real correspondent you expected.

That is the summary an AI Overview can give you. What it can't show you is how those signals actually lay out inside a raw header block, which variant of BEC produces which fingerprint, or the exact symptom-to-response mapping an analyst walks when triage starts. The diagram below traces a legitimate internal path against a compromised path, and the tables that follow map each header anomaly to its likely cause and your next move. Paste a real header block into our Email Header Analyzer to see the Received chain and authentication results parsed for you.

Legitimate internal mail path versus a compromised BEC routing path Two Received-chain paths compared: a normal internal email travels origin to gateway to mailbox in two or three hops, while a compromised account routes through an external relay from an unfamiliar IP before reaching the corporate gateway. Reading the Received chain: normal vs. compromised Read bottom to top — each hop adds a Received header

Legitimate internal mail Corp mail server 203.0.113.10 (known)

M365 gateway SPF/DKIM/DMARC pass Recipient mailbox 2 hops, aligned

Compromised / relayed mail Unknown origin IP 198.51.100.7 (new ASN)

External relay off-hours, queued Corp gateway passes filter Recipient mailbox 4+ hops, odd path The trap: Account-takeover BEC can still pass SPF/DKIM/DMARC — authenticated mail path, unauthorized human. Trust the routing and timing, not just the auth line.

Business Email Compromise (BEC) represents one of the most financially devastating cyber threats facing organizations today. The FBI's Internet Crime Complaint Center (IC3) has tracked more than $50 billion in exposed losses from BEC and its email-account-compromise variant across reported incidents since 2013. Unlike ransomware that makes itself obvious through encrypted files and ransom notes, BEC attacks are often silent—a compromised email account sends fraudulent wire transfer requests that executives or accounts payable staff authorize without suspicion.

The challenge with BEC detection is that the attacker doesn't need to break complex security measures. They simply need to compromise a single email account, then use it to impersonate the legitimate account owner. However, even when attackers control an account, their emails often leave subtle fingerprints in the email headers that security professionals and IT administrators can detect. Learning to read these headers is a critical defensive skill.

What Email Headers Reveal

Email headers contain extensive metadata about how a message was routed through the internet, what systems processed it, and what authentication checks were performed. Headers are layered—each mail server adds its own information as the message passes through the network. This creates a forensic record of the message's journey.

Most email clients hide headers from typical users, showing only basic information like "From," "To," "Subject," and "Date." But the full headers contain dozens of fields that tell the complete story of the message's origin and path.

Red Flags in Email Headers Indicating Compromise

1. Unusual Sending Infrastructure

A compromised account typically sends emails from unusual IP addresses or mail servers that differ from normal activity patterns.

What to look for:

  • Received headers from unexpected locations: A CFO whose emails normally come from company mail servers suddenly appearing to send from a residential IP address or VPN
  • Unusual Received-SPF results: If the normally authenticating domain suddenly shows SPF failures, the attacker may be sending from a different server
  • Mismatched mail server information: The X-Originating-IP header showing a location inconsistent with the employee's usual location

Example: Your CEO typically sends emails from the corporate mail server in New York, but a fraudulent wire transfer request comes from a residential ISP in Nigeria with different mail server hop patterns.

2. Time and Timezone Inconsistencies

Email headers include precise timestamps from each hop in the routing path. Attackers often work during different times than legitimate employees.

What to look for:

  • Unusual sending times: A finance director who normally works 9-5 Eastern Time suddenly sending urgent payment requests at 2 AM EST
  • Timezone mismatches: An employee whose vacation notice mentioned they'd be in Tokyo now has headers showing the email originated from Pacific Time zone servers
  • Date header tampering: Multiple Received headers from different times suggesting the attacker modified the Date field to appear legitimate

Example: Your VP of Operations normally sends emails during business hours. An "urgent" wire transfer approval arrives at 3 AM with Received headers showing the message was processed during that time.

3. Authentication Failures and Misalignments

DMARC, SPF, and DKIM provide authentication information in email headers. When an account is compromised and the attacker logs in normally, authentication might pass, but subtle misalignments can appear.

What to look for:

  • Unexpected DKIM failures: The legitimate domain's DKIM signature absent or invalid
  • SPF domain misalignments: The envelope sender domain (Return-Path) differs from the visible sender domain
  • DMARC fail but pass: Messages that fail DMARC alignment but somehow pass corporate filtering (suggesting the email went through an unusual path)
  • Authentication-Results anomalies: The authentication-results header showing unexpected pass/fail combinations

Example: Your domain has strict DMARC enforcement with p=reject, but an email from your CEO still arrives with "dmarc=fail" in the Authentication-Results header.

Advertisement

4. Unusual Routing Patterns

The Received headers trace the email's path through the internet. Legitimate internal emails follow predictable paths. Compromised accounts often show unexpected routing.

What to look for:

  • Excessive hops: A message bouncing through 10+ servers when internal emails typically use 2-3 hops
  • Unexpected intermediaries: Messages routing through external mail servers before reaching your organization
  • Reverse routing: The email leaving your organization then re-entering from a different entry point
  • Spoofed relay headers: Received headers claiming to be from your mail servers but with suspicious IP addresses

Example: A normal internal email travels directly: Your Office365 server → Your Exchange server. A suspicious email shows: External VPN → Third-party mail relay → Another relay → Your Office365 server → Your Exchange server.

5. Header Inconsistencies and Contradictions

Attackers often make mistakes when crafting fraudulent headers. Different header fields might contradict each other.

What to look for:

  • Mismatched sender information: The "From" header claims one email address while X-Originating-Email claims another
  • Conflicting recipient information: BCC headers showing unexpected recipients
  • Date conflicts: The message Date header is far older or newer than the Received header timestamps
  • User-Agent anomalies: Software information that doesn't match what the account holder typically uses

Example: The From header shows CEO@company.com, but the X-Originating-Email header shows an AOL address associated with the attacker.

Advanced Header Analysis Techniques

Understanding the Complete Received Chain

Email headers contain a chain of Received headers, one from each mail server the message passed through. Read them from bottom (originating point) to top (final destination).

Each Received header typically contains:

  • from: The sending mail server
  • by: The receiving mail server
  • with: The protocol used (SMTP, SMTPS, etc.)
  • id: Message ID assigned by that server
  • Timestamp information

A normal internal email might show: Originating mail server → Company mail gateway → Final destination.

A compromised account's email might show: Attacker's IP → Third-party relay → Company mail gateway → Final destination.

Analyzing Header Field Combinations

Some red flags only appear when analyzing multiple header fields together:

The SPF-DKIM-DMARC Triangle: If an email from your domain shows:

  • SPF: Fail
  • DKIM: Fail
  • DMARC: Fail

...but still reached users' inboxes, it either came through an unusual path or was delivered despite policy. This is suspicious.

The Authentication Gap: If the message passed your domain's authentication but shows suspicious Received headers, the attacker may have compromised the account and is using legitimate credentials.

The Timestamp Gradient: If Received header timestamps show increasing delays between hops (each server takes longer to process), it suggests the message was queued at intermediaries, consistent with an attacker using external relays.

Using Email Analysis Tools

Email header analysis tools can help parse complex headers, but understanding the fundamentals is crucial. Tools like Email Header Analyzer can:

  • Extract and parse all header fields
  • Identify SPF/DKIM/DMARC results
  • Map the message's routing path
  • Highlight anomalies and suspicious patterns

However, the best tool is an educated security professional who understands what legitimate and compromised emails should look like.

BEC Attack Patterns in Headers

The three common BEC variants leave very different header signatures. Knowing which one you are looking at tells you whether to trust the Authentication-Results line at all:

VariantHow it worksSPF / DKIM / DMARCDomain in FromStrongest header tellWhere to look
Account takeover (CEO fraud)Attacker phishes real credentials, logs into the genuine mailboxUsually pass — real mail pathYour real domainOff-hours timestamps, new origin IP/ASN, unfamiliar X-MailerReceived chain + sign-in logs
Vendor / look-alike impersonationAttacker registers a domain resembling a trusted vendorPass for the fake domainLook-alike (e.g. acme-inv.com)Sender domain differs from the real vendor; DMARC aligns to the wrong domainFrom vs. known-good domain
Exact-domain spoofingAttacker forges your domain without accessFail (if DMARC enforced)Your real domain (forged)dmarc=fail / spf=fail yet deliveredAuthentication-Results header
Which matters most for youIf auth passes, treat it as takeover until proven otherwiseAuth passing ≠ safeCompare against a known baselineCorrelate 2+ anomalies before actingFull raw headers, not a forward

CEO Fraud Variant

The attacker compromises a legitimate executive email account:

  • Headers show normal authentication (uses the real account)
  • Unusual timestamps (attacker works different hours)
  • Modified Subject lines (common spoofing technique)
  • Urgent language in message body (social engineering)
  • Requests go to finance staff (not the executive's normal contacts)

Header indicator: Normal authentication but suspicious patterns in timestamps and routing combined with the unusual request type.

Vendor Impersonation Variant

The attacker creates a new domain similar to a trusted vendor and sends invoices:

  • Headers show the spoofed vendor domain
  • SPF/DKIM may pass (for the spoofed domain)
  • But alignment may fail for your organization's domain
  • Domain similarity to real vendor (misspellings, domain extensions)

Header indicator: SPF/DKIM pass for a look-alike domain, not your organization's domain.

Account Compromise Variant

The attacker gains credentials through phishing and logs into the real account:

  • Headers show normal authentication (legitimate credentials used)
  • But timestamps differ from normal activity
  • Message content differs from usual communication style
  • Recipients differ from normal email patterns

Header indicator: Normal headers but behavioral anomalies in sending patterns.

Building a Baseline for Your Organization

Effective BEC detection requires understanding "normal" for your organization:

Create Employee Profiles

  • What time zones do your employees work in?
  • What mail servers send their emails (Office365, Google Workspace, on-premises Exchange)?
  • What's their typical send/receive pattern?
  • Do they use mobile devices (different User-Agent headers)?
  • Do they forward emails to personal accounts?

Document Unusual But Legitimate Patterns

  • Does your CEO travel internationally and send from different regions?
  • Do certain departments use third-party marketing or shipping platforms?
  • Are there authorized forwarding rules to external accounts?

Establish Alert Thresholds

With this baseline, you can flag:

  • Emails from new and unusual IP addresses
  • Timestamps far outside normal working hours
  • Authentication changes from usual patterns
  • Routing paths that deviate from normal

Header Anomaly Triage: Symptom → Likely Cause → Action

When a header block looks off, don't stop at "something's wrong." Map the specific symptom to its probable cause and the next concrete step:

Header symptomLikely causeFirst action
Auth passes, origin IP is a new ASN / residential rangeAccount takeover from attacker's deviceCheck sign-in logs for that IP; force password reset + revoke sessions
dmarc=fail yet message delivered to inboxExact-domain spoof slipping a policy gap, or a misconfigured relayConfirm DMARC is p=reject; inspect the relay in the Received chain
From domain resembles a vendor but isn't their real domainLook-alike domain impersonationVerify vendor's real domain; block the look-alike; warn AP staff
Date header disagrees with Received timestampsForged Date or a message queued/replayedTrust the Received-chain times; treat Date as unreliable
Growing delay between consecutive Received hopsQueuing at external/attacker relaysTrace each hop's hostname and IP; flag unexpected intermediaries
X-Mailer / User-Agent differs from the account owner's usual clientAttacker using a different mail clientCorrelate with send-time and IP anomalies before escalating
Reply-To or Return-Path points to a different domain than FromReply redirection to capture responsesDo not reply; verify request out-of-band

Responding to Suspected BEC Incidents

If you detect BEC indicators in headers:

  1. Don't rely on headers alone: Investigate through multiple methods (account access logs, mailbox rules, device activity)

  2. Preserve evidence: Download the complete email with full headers for forensic analysis

  3. Check mailbox activity: Review the account's recent activity, login locations, and sent items folder

  4. Verify the request: Contact the alleged sender through a different communication channel to confirm legitimacy

  5. Secure the account: Reset passwords, review forwarding rules, enable MFA if not already enabled

  6. Investigate access: Determine how the account was compromised—phishing, credentials reuse, password spray, etc.

  7. Block similar emails: Create rules to quarantine emails with similar patterns pending verification

Best Practices for BEC Prevention

While header analysis is crucial for detection, prevention is better than detection:

  • Implement DMARC, SPF, and DKIM strictly to prevent domain spoofing
  • Enable MFA on all email accounts, especially executives and finance staff
  • Monitor for unusual email rules that automatically forward emails to external accounts
  • Educate users on BEC tactics and the importance of verifying unusual requests
  • Implement email security solutions that analyze headers and detect anomalies
  • Use display name verification in email clients to show the actual email address
  • Create verification procedures for large financial transactions independent of email
  • Log email header information for forensic investigation capability

Conclusion

Email headers provide a wealth of forensic information for detecting business email compromise. By understanding SPF/DKIM/DMARC results, analyzing Received header chains, identifying timing anomalies, and comparing patterns against your organization's baseline, security professionals can detect compromised accounts before attackers extract significant value.

The key is moving beyond basic email security and developing deep expertise in header analysis. Organizations that invest in this capability dramatically reduce the financial impact of BEC attacks, often stopping threats before money changes hands or sensitive data is exfiltrated. When combined with technical controls like DMARC enforcement and MFA, header-based detection becomes part of a comprehensive defense-in-depth strategy against one of today's most costly cyber threats.

Frequently Asked Questions

What email header is the biggest tell for business email compromise?

There is no single header. BEC from a genuinely compromised account often passes SPF, DKIM, and DMARC because the attacker is using real credentials on a legitimate mail path. The strongest tells come from combinations: the Received chain showing a new originating IP or ASN, timestamps outside the user's normal hours, and an X-Mailer or User-Agent that differs from the account owner's usual client. Vendor-impersonation BEC is different — there the look-alike domain authenticates for itself but fails DMARC alignment against your real correspondent.

Can BEC emails pass SPF, DKIM, and DMARC?

Yes, and this trips up most people. When an attacker phishes credentials and logs into the real mailbox, they send through the provider's authenticated infrastructure, so SPF, DKIM, and DMARC all pass. Authentication proves the message left the claimed domain legitimately — it says nothing about whether the human at the keyboard is authorized. That is why behavioral and Received-chain analysis matters more than the Authentication-Results line for account-takeover BEC.

How do I read the Received header chain to trace an email?

Read Received headers bottom to top. The lowest Received header is the origin (the first server to handle the message); each header above it is the next hop. Compare the originating IP, hostname, and timestamp against what that sender normally uses. Increasing gaps between hop timestamps suggest the message was queued at external relays, which is common when an attacker routes through a third-party server rather than the corporate mail path.

What is the difference between CEO fraud and vendor impersonation in the headers?

CEO fraud (account takeover) uses the real executive mailbox, so authentication passes and only timing, routing, and client fingerprints look off. Vendor impersonation uses a look-alike domain (for example acme-invoices.com instead of acme.com) that authenticates cleanly for itself but is a different domain than the trusted vendor — SPF and DKIM pass for the fake domain while the sender address does not match the real vendor's verified domain.

Does DMARC stop business email compromise?

DMARC at p=reject stops exact-domain spoofing, so an attacker cannot forge messages that appear to come directly from your domain. It does not stop account-takeover BEC (the attacker uses your real domain legitimately) or look-alike domain BEC (a different domain you do not control). DMARC is necessary but not sufficient — pair it with MFA, mailbox-rule monitoring, and out-of-band payment verification.

What should I do first when I suspect a BEC email?

Do not reply to the email and do not act on any payment or credential request in it. Verify the request through a separate channel — a known phone number, not one in the email. Preserve the full original headers (use "Show original" or "View source", not a forward). Then check the mailbox's recent sign-in locations, sent-items folder, and any auto-forwarding or inbox rules the attacker may have created to hide replies.

How do I view full email headers?

In Gmail open the message, click the three-dot menu, and choose "Show original". In Outlook desktop open the message and go to File then Properties to see Internet headers, or use "View Source" in Outlook on the web. In Apple Mail choose View then Message then All Headers. Always capture the raw original rather than forwarding, because forwarding rewrites the Received chain and authentication results.

What timestamp anomalies indicate a compromised account?

Watch for send times far outside the user's normal working hours, an origin timezone that conflicts with the sender's known location, and a Date header that disagrees with the Received-chain timestamps. A large or growing delay between consecutive Received hops suggests queuing at intermediary relays, which legitimate internal mail rarely shows.

email securityBECaccount compromisethreat detectionfraud prevention