Cyber Security · Advanced

Email Header Analysis: How to Spot Spoofed and Phishing Emails

The display name is easy to fake; an email’s real origin is written in its headers. We walk through reading a header line by line using an example.

SistemON Technical Team · · 5 min read

In short

  • The display name and “From” address are easy to fake; the real origin is in the Received lines and the Authentication-Results field.
  • Red flags: dmarc=fail, a Reply-To pointing to a different domain, lookalike domains and unexpected sending servers.
  • Received lines are read from the bottom up; the lowest line is closest to where the email started.

An email from “your supplier” says their bank account has changed; the display name, signature and logo are all correct. Did it really come from the supplier? The answer isn’t in the body of the email but in its headers. This article explains, with an example, how IT teams and careful users can read them.

An example of a suspicious email header

The header below is a fictional example prepared for illustration; the domains and IP addresses are values reserved for documentation:

Received: from mail.yourcompany.com (10.0.0.5) by mbx01.yourcompany.com ...
Received: from mx.example-supplier-tr.com (198.51.100.23) by mail.yourcompany.com ...
Authentication-Results: mail.yourcompany.com;
  spf=pass smtp.mailfrom=example-supplier-tr.com;
  dkim=pass header.d=example-supplier-tr.com;
  dmarc=pass header.from=example-supplier-tr.com
Return-Path: <invoice@example-supplier-tr.com>
From: "Example Supplier Accounts" <accounts@example-supplier-tr.com>
Reply-To: <payments.dept@another-service.example>
Subject: Our updated IBAN details - Urgent
Message-ID: <a1b2c3@example-supplier-tr.com>

At first glance SPF, DKIM and DMARC have passed, so it looks technically “clean”. But if the real supplier’s domain is example-supplier.com, this email came from example-supplier-tr.com, a domain the attacker registered, and replies will go to a completely different address (Reply-To). Passing authentication shows that the sender came from the domain it claims, not that it is the right person.

Important header fields

FieldWhat it tells youWhat to look for
FromThe sender the user seesDoes the display name match the address’s domain? Is it a lookalike domain?
Return-PathThe envelope sender; SPF is checked against this domainA different domain from From isn’t bad on its own, but needs attention
Reply-ToThe address replies go toA different, unrelated domain is a strong red flag
ReceivedThe servers the email passed throughRead from the bottom up; do the name and IP of the first external server match the expected source?
Authentication-ResultsThe receiving server’s SPF, DKIM and DMARC verdictsfail, softfail and none results; the header.from domain
Message-IDThe email’s unique IDDoes the domain match the sending system?

Fields specific to Microsoft 365 / Exchange

  • X-MS-Exchange-Organization-SCL: the spam confidence level. -1 means trusted/bypassed; 5 and above is usually marked as junk.
  • X-Forefront-Antispam-Report: CIP shows the connecting IP, SFV the filter verdict (e.g. SPM spam, NSPM not spam) and CTRY the country of origin.
  • compauth: Microsoft’s composite authentication result; fail means spoofing is suspected.
  • X-MS-Exchange-Organization-AuthAs: Internal, Anonymous or Partner; emails that came from outside but appear as “Internal” should be investigated.

The same fields tell you why emails you send are going to spam. Details: why business emails go to spam.

Step-by-step review

  1. Check the From domain: is there a swapped letter (rn ↔ m, l ↔ I), an extra word (-tr, -support, -invoice) or a different extension (.co, .net)?
  2. Look at Reply-To: do replies go to a different domain?
  3. Read Authentication-Results: what is the DMARC result and the header.from domain?
  4. Follow the Received chain from the bottom up: who is the first external server, and which organisation owns its IP address?
  5. Check links in the body: does the visible text match the link’s real address?
  6. Consider the context: are urgency, secrecy and a change of payment details all requested together?

A process rule: however clean the header looks, always verify requests to change an IBAN or payment details verbally, by calling a phone number you already know. An email from a genuine account that has been compromised passes every technical check.

When you find a suspicious email

  • Before deleting it, forward the header and the attachment (without opening it) to the IT team
  • In Microsoft 365, use Threat Explorer or message trace to find who else received email from the same sender
  • If a link was clicked or a password entered, reset that account’s password and revoke its sessions
  • Add the sending domain or IP to the block list
  • If your own domain is being spoofed, review your DMARC policy: SPF, DKIM and DMARC guide

Conclusion

The email header is the most reliable source of an email’s real identity. Learning to read a few fields such as the Received chain, the authentication results and Reply-To makes it much easier to spot fake invoice and phishing attacks. For measures on the Microsoft 365 side, see our article on Microsoft 365 security hardening. At SistemON, we investigate suspicious emails and configure your email security settings as part of our cyber security service.

Frequently Asked Questions

How can I see an email’s headers?

In desktop Outlook, open the email and go to File › Properties › Internet headers; in Outlook on the web, use the three dots › View › View message details; in Gmail, use the three dots › Show original.

If SPF and DKIM pass, is the email definitely safe?

No. These results only confirm that the email came from the domain it claims. If an attacker sends from a lookalike domain they registered themselves (e.g. with a letter swapped), SPF and DKIM will pass. Always check whether the sender domain really is the domain you expect.

Are there tools that make header analysis easier?

Microsoft’s Message Header Analyzer and the Messageheader tool in the Google Admin Toolbox parse headers into a readable format. Remember that a header may contain personal data when you paste it in.

Need help with this?

Let us review your infrastructure free for the first month and share a clear list of risks and priorities.

Talk to an expert

First month free

Keep your systems ON.
Leave the rest to us.

Let us review your infrastructure free of charge for a month and walk you through the state of your backups, security and performance.

Chat with us