How to trace a phishing email from its headers
Find the earliest hop your gateway can confirm, read the sender authentication results, and capture the evidence your security team needs.
Get the original headers
Use the message as received in the original mailbox. A normal forward can give you a new outer set of headers and a quoted copy of the original message. Preserve the original through your approved reporting channel. For analysis, copy the header block through the line before the first blank separator.
- Gmail on the web. Open the message, select the More menu beside Reply, and choose Show original. Use the copy control on the resulting page and keep the header block. Gmail instructions
- New Outlook or Outlook on the web. Open the message, then select More actions, View, and View message details.
- Classic Outlook for Windows. Open the message in its own window, select File and Properties, and copy the Internet headers field. Outlook instructions
Paste the headers into the Email Header Analyzer. It runs in the browser and extracts the identity fields, the received path and the reported authentication verdicts. Keep the raw copy alongside the summary. Multiple authentication fields can record different results, and the raw copy preserves which system reported each one.
Follow the Received hops to the trust boundary
SMTP relays prepend Received lines. Read them from the bottom up to reconstruct
the claimed delivery order. To decide which lines are evidence, start at the top and move back
through the receiving infrastructure you recognize. The oldest header added by a trusted
receiver records the peer seen at ingress. Treat lower lines as claims from outside that
boundary. Confirm the ingress hop with gateway logs when you can. A hostname that resembles
your provider is insufficient evidence of who inserted a line.
Read from and by together. The receiver named after
by can record the connecting IP as well as the peer's asserted hostname.
The time after the semicolon belongs to that hop. Use its time zone to compare it with
the next entry. A long gap can help narrow the log search. A small reversal can come from
unsynchronized clocks. Record the original timestamps so an investigator can reconcile them.
SMTP trace fields
Read the trusted Authentication-Results entry
Find the Authentication-Results line from your receiving service. The
identifier before the first semicolon tells you which service claims to have performed the
checks. Use the service and header position your administrators recognize. If you see
conflicting results, keep them in the evidence and document which entry you used.
Authentication-Results
trust boundary
- SPF. Read the verdict and
smtp.mailfrom. SPF checks whether the connecting server is authorized for an SMTP identity. Compare the authenticated envelope sender domain to the From domain for DMARC. - DKIM. Look for a passing signature and its signing domain, usually
reported as
header.dor found asd=in the correspondingDKIM-Signature. Use the signature'ss=selector if you need to inspect the DNS key. - DMARC. Check the result for the actual From address. One passing and aligned identity is enough. Under relaxed alignment the organizational domain can be shared. Strict alignment requires the exact domain.
Forwarding can change the IP seen by the receiver, and a list that edits signed content can break DKIM. Investigate where authentication changed and whether the routing was expected. Indirect mail flows
Compare From, Reply-To and Return-Path
From identifies the message's stated author. Reply-To, when
supplied, directs replies. Return-Path records the envelope return address for
delivery notices. A mailing provider may use a separate bounce domain. Look for a
combination of unfamiliar domains, failed alignment and a request you did not expect.
Check the real address behind the display name.
Originator fields
Suppose a message displays Payments <[email protected]>. Its
Reply-To is at example.org and the receiving gateway reports
SPF and DKIM passes only for example.org, with dmarc=fail
for example.com. The authentication results establish no aligned
identity for the claimed billing domain. Ask the billing team through a known
channel whether it uses that service before acting on the request.
If you administer the sending domain, use the SPF & DMARC Checker to inspect its published policy and optional DKIM selector, or DNS Lookup for the exact name and record type. Current DNS can help explain a configuration. Receiver logs and the original headers tell you which outcome was recorded when the message arrived.
Separate domain authentication from sender identity
When dmarc=pass applies to a different domain than the organization
you expected, check the actual address. A message sent from example.org
can authenticate as example.org even if the display name says it came
from example.com. A pass for the expected domain can also occur on a
message sent through a compromised account or an abused sending service. Verify an
unexpected payment or account change independently in either case.
DMARC limitations,
FBI guidance on payment changes
Record missing evidence explicitly. If the paste lacks a trusted authentication field,
write that you could not establish the receiver's verdict. If a trusted service reports
temperror, record the temporary check error as reported and ask the mail
administrator whether their logs identify the cause. When the only observed IP belongs
to a relay, report it as a relay address. This gives responders a reliable starting
point when they correlate other copies of the message.
Report what you observed
Headers can show the connecting relay seen by the receiving gateway and which domain identities its checks validated. They have limited value for identifying a person or deciding whether a link or attachment is safe. An authenticated message can still contain a deceptive request. Verify the request through an address, phone number or service portal you already trust. Phishing recognition and reporting
Use your organization's reporting button or security channel. Include the original
message when requested, recipient, time with time zone, subject and Message-ID.
Note the trusted gateway's peer IP, the authentication service and its verdicts, the
reply address, and what the sender asked you to do. Tell the response team promptly if
anyone opened an attachment, entered credentials or approved a request. Share the full
headers with authorized responders because they can contain addresses and internal hostnames.
From the channel
One Open Folder Exposed 3 Microsoft 365 Phishing Ops
Watch safe, hands-on security demonstrations for complete beginners on The Exploit HQ ▸
How 7 Famous Computer Viruses Got In (and What Stops Them)
Watch safe, hands-on security demonstrations for complete beginners on The Exploit HQ ▸
kev brief
Patch what's actually being exploited.
Subscribe and get the KEV Patch Priority Playbook, free, in your inbox now.
Free. No spam. Unsubscribe anytime. Delivered by Beehiiv.