Skip to content
SOC Analyst Prep
  • Loading index…

↑↓ navigate · ↵ open · Esc close

en

Cheat sheet

Email header analysis for phishing triage

What each header proves (and doesn't), what to check, and the red flags, plus a step-by-step method you can say out loud in an interview.

Sample: a lookalike-domain phish

raw headers — synthetic
Return-Path: <billing@northwlnd-logistics.com>
Received: from mx1.northwind-logistics.com (mx1.northwind-logistics.com [192.0.2.25])
        by mbx01.northwind-logistics.com with ESMTPS id 4f9c2a17
        for <ap-team@northwind-logistics.com>; Mon, 16 Nov 2026 09:14:07 +0000
Received: from mail.northwlnd-logistics.com (unknown [203.0.113.47])
        by mx1.northwind-logistics.com with ESMTPS id 8b31d0e6
        for <ap-team@northwind-logistics.com>; Mon, 16 Nov 2026 09:14:05 +0000
Received: from [198.51.100.83] (helo=localhost)
        by mail.northwlnd-logistics.com with ESMTPSA id 77ac2e90;
        Mon, 16 Nov 2026 09:14:02 +0000
Authentication-Results: mx1.northwind-logistics.com;
        spf=pass (sender IP is 203.0.113.47) smtp.mailfrom=northwlnd-logistics.com;
        dkim=pass header.d=northwlnd-logistics.com header.s=s1;
        dmarc=pass action=none header.from=northwlnd-logistics.com
Received-SPF: pass (mx1.northwind-logistics.com: domain of billing@northwlnd-logistics.com designates 203.0.113.47 as permitted sender) client-ip=203.0.113.47; envelope-from=billing@northwlnd-logistics.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=northwlnd-logistics.com; s=s1; h=from:to:subject:date:message-id:reply-to; bh=Zm9vYmFyYm9keWhhc2g=; b=dGhpc2lzbm90YXJlYWxzaWduYXR1cmU=
From: "Daniel Reyes (CFO)" <daniel.reyes@northwlnd-logistics.com>
Reply-To: <d.reyes.finance@mailbox.example>
To: <ap-team@northwind-logistics.com>
Subject: URGENT: updated bank details for vendor payment today
Date: Mon, 16 Nov 2026 14:43:58 +0530
Message-ID: <20261116091402.5521@localhost.localdomain>
X-Mailer: PHPMailer 6.8.1 (https://github.com/PHPMailer/PHPMailer)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="b1_9f2c4e"

SPF, DKIM and DMARC can all pass for a lookalike domain. Authentication proves who sent it, not that the sender is who they claim to be.

Seven-step method

  1. 1Get the full original headers from the gateway or the "View source" option, never from a forwarded copy, which replaces the original headers.
  2. 2Read the Received chain bottom-up, mark where the message entered your own mail servers, and record the first external sending IP and hostname.
  3. 3Compare the identities: From address and domain, Return-Path (envelope sender), Reply-To and the DKIM d= domain, and check each for lookalike spellings.
  4. 4Read Authentication-Results for SPF, DKIM and DMARC, and confirm DMARC alignment with the From domain rather than just a "pass" on some other domain.
  5. 5Enrich the indicators: look up the sending IP, the sender and Reply-To domains (age, registrar, reputation) and any URLs or attachment hashes in the body.
  6. 6Search the mail trace by Message-ID, sender and subject to scope how many users received it and whether anyone clicked, replied or opened attachments.
  7. 7Decide and act: classify the email, purge or quarantine copies, block the sender domain and IOCs, and document the evidence and verdict in the ticket.

Header by header

HeaderWhat it isWhat to checkRed flag
ReceivedEach mail server that handles the message prepends a Received line, so the bottom one is the earliest hop and the top one is your own server.Read the chain bottom-up to find the first external hop you trust, note its sending IP and hostname, and compare timestamps between hops.The originating IP belongs to a residential ISP, VPS host or country that does not match the claimed sender, or the chain has gaps and impossible timestamps.
Return-PathThe envelope sender (MAIL FROM) recorded by the receiving server, which is where bounces go and the domain SPF is checked against.Compare the Return-Path domain with the From domain and confirm SPF was evaluated against it in Authentication-Results.A Return-Path on an unrelated or freshly registered domain while From shows a trusted brand, meaning SPF may pass for the wrong domain.
FromThe display name and address the recipient sees, which the sender can set to anything and is the domain DMARC protects.Look past the display name to the actual address and check the domain character by character for lookalikes.A trusted display name over an external address, or a lookalike domain such as rn for m or l for i.
Reply-ToThe address replies will go to, which overrides From when the user hits Reply.Compare the Reply-To address with From and ask whether a legitimate sender would route replies there.A Reply-To pointing at a free-mail or unrelated domain, the classic setup for BEC and invoice-fraud conversations.
ToThe recipients the sender put in the visible To field, which may differ from the actual envelope recipients.See whether the user is actually listed, and whether the message went to one targeted person or a distribution list.An empty or undisclosed To, the recipient missing (BCC blast), or a narrow target list such as only finance staff.
SubjectThe free-text subject line written by the sender.Look for urgency, payment, credential or account-lock themes and search the mail logs for the same subject across other mailboxes.Urgent payment or password-expiry language, a fake RE: or FW: with no prior thread, or the same subject hitting many users.
DateThe time the sending client says the message was composed, set by the sender and not by any server.Compare Date with the timestamps on the top and bottom Received lines.A Date far from the Received times, or a timezone offset that does not match the supposed sender location.
Message-IDA unique identifier generated by the sending system, usually in the form <unique@sending-host>.Use it to find every copy of the message in the mail trace and note the domain on the right of the @.A domain unrelated to the sender is a weak signal on its own, since many legitimate services generate their own IDs, but it adds weight alongside other mismatches.
Authentication-ResultsThe receiving server's summary of SPF, DKIM and DMARC results, including which domains each check was evaluated against.Read spf=, dkim= (with header.d) and dmarc= (with header.from), remembering DMARC passes only when SPF or DKIM passes and aligns with the From domain.dmarc=fail, or every check passing for a lookalike domain, which proves only that the attacker controls that domain.
Received-SPFThe SPF verdict for the connecting IP against the envelope sender domain's published SPF record.Confirm which domain was checked (envelope-from) and which IP was evaluated, and whether the result is pass, softfail, fail or none.fail or softfail for a domain you trust, or a pass on a domain different from the one in From.
DKIM-SignatureA cryptographic signature over the body and selected headers, where d= is the signing domain and s= is the selector used to find the public key in DNS.Note the d= domain and check that it matches or aligns with the From domain and that the result in Authentication-Results is pass.No signature from a sender that always signs, a failed signature (content altered), or a valid signature from an unrelated d= domain.
ARC-Authentication-ResultsPart of the ARC chain (with ARC-Seal and ARC-Message-Signature) that records authentication results at each intermediary such as a mailing list or forwarder.Use the i=1 ARC results to see what authentication looked like before forwarding broke SPF or DKIM, and confirm the sealer is trusted.ARC results from an unknown sealer being used to justify a failed DMARC, or cv=fail in ARC-Seal.
X-Originating-IPA non-standard header some webmail and Exchange services add to show the client IP that submitted the message.Look up the IP for geolocation, ASN and reputation, and compare it with the sign-in logs of the sending account if it is internal.A VPN, Tor or hosting-provider IP for a supposedly internal sender, which suggests a compromised mailbox.
Content-TypeDescribes the body structure, such as multipart/mixed for messages with attachments or multipart/alternative for text plus HTML.Walk the MIME parts to list attachment names, declared types and any HTML part that may contain hidden links or forms.Attachments like .html, .iso, .zip, .one or double extensions, or a declared type that does not match the file name.
X-Mailer / User-AgentAn optional header naming the client or library that composed the message.Compare it with what the claimed sender normally uses and with other messages from the same campaign.Bulk-mailing libraries such as PHPMailer or scripting tools on a message pretending to come from a corporate Outlook user.
List-UnsubscribeA header used by bulk and marketing senders to give recipients a one-click unsubscribe link or address.Use it to distinguish legitimate marketing (consistent sender platform, matching domains) from targeted phishing.A targeted payment or credential request that lacks it is normal, but an unsubscribe link pointing to an unrelated or newly registered domain is suspicious.

Go deeper

The Phishing analysis module explains SPF, DKIM and DMARC alignment with interview answers.

Practise on a real-looking phish

Trace the Received chain and the Reply-To swap in the spoofed invoice mission.

Frequently asked questions

In which order should I read Received headers?

Bottom-up. Each server adds its Received line at the top, so the lowest one is closest to the true origin and the top one is your own mail server. Only trust hops from the point where the message entered infrastructure you control, because anything below that can be forged by the sender.

If SPF, DKIM and DMARC all pass, is the email safe?

No. A pass only proves the message really came from the domain that was checked. Attackers register lookalike domains like northwlnd-logistics.com and set up SPF, DKIM and DMARC properly, so all three pass while the email is still phishing.

What is the difference between Return-Path and From?

Return-Path is the envelope sender used during the SMTP conversation, where bounces go and what SPF checks. From is the header the user sees and the domain DMARC protects. They can legitimately differ (for example with email service providers), which is why DMARC requires alignment between them.

Why does a Reply-To mismatch matter?

Because the victim's reply goes to Reply-To, not From. In business email compromise the attacker often uses a convincing From and a free-mail Reply-To so the whole conversation, including payment details, moves to an address they control.