Analysing a Phishing Email

Video + 12 min read · includes a lab

Unknown sender
Mail server
Sara
SOC
New case
Your mailbox will be closed
Report phishing
Analysing a Phishing Email
0:00 / 4:50 · Analysing a Phishing Email
Chapters and transcript

Analysing a Phishing Email Sara gets an email. Your mailbox will be closed today, it says. Click here to keep it. Sara is not sure, so she presses the Report phishing button. Now the email lands in the SOC queue. Is it real, or is it phishing? In this lesson, you will check it the way an analyst does.

Step 1: the sender Step one: look at the sender. The display name is just free text. Anyone can set it to anything. Here, the name says ChaiCorp IT Support, but the real address is on chaicorp dash helpdesk dot example, a different domain. So always read the address inside the angle brackets.

Step 1: the sender Attackers also register domains that look like the real one at a quick glance. The real domain is chaicorp dot example. One fake uses a zero instead of the letter o. Another adds an extra word, like helpdesk. And another uses a letter l instead of the letter i. Read every domain slowly.

Step 1: the sender Now compare three headers. From is who the email claims to be from. Reply-To controls where your answer goes. If it points to a different, unknown address, the attacker wants your reply. And Return-Path is where bounce messages go. It is the domain that SPF checks. A Return-Path on an unrelated domain is another clue.

Step 2: the headers Step two: read the headers. Most mail programs can show them, often with Show original. Here are the headers of Sara's email. Two Received lines show the path. Authentication-Results shows the checks. And look at the bottom: the From address says chaicorp dot example, but Reply-To goes to the helpdesk look-alike.

Step 2: the headers Each mail server adds a Received line at the top. So read them from the bottom up. The message started at an unknown machine, and was sent through mail dot fastsend dot example. Then it reached ChaiCorp's own mail server. But it never passed through ChaiCorp's sending servers. That is suspicious. Remember, only the headers your own servers added can be fully trusted.

Step 3: SPF, DKIM, DMARC Step three: three checks help prove where an email came from. SPF: the domain publishes a list of servers allowed to send its mail, and the receiver checks the sending IP. DKIM: the sending server adds a digital signature, checked with the domain's public key. DMARC checks that SPF or DKIM passed and matches the domain in From. The owner also says what to do on failure: none, quarantine or reject.

Step 3: SPF, DKIM, DMARC Now read Sara's email. SPF fail: the sending IP is not allowed to send for chaicorp dot example. DKIM none: there is no signature at all. DMARC fail: the message could not prove it came from chaicorp dot example. Add the Reply-To on a look-alike domain, and this email is almost certainly phishing.

Step 3: SPF, DKIM, DMARC Be careful. A pass does not mean safe. An attacker can send from a look-alike domain they own, and set up SPF, DKIM and DMARC on it. The checks pass. But the email is still phishing. These checks prove who sent it, not whether it is honest.

Step 4: links and files Step four: check links and attachments safely. Never click them on your normal computer. I hover over the button instead. The real link goes to the look-alike domain. Analysts write it in a safe form, with hxxps and square brackets, so nobody clicks by accident. Attachments are not opened. Check the file hash, or run it in a sandbox.

Quick check Quick check. A reported email passes SPF, DKIM and DMARC. It comes from a domain that looks a lot like your company's. Is it safe? Take a moment, then choose.

Step 5: respond Step five: respond. The analyst blocks the sender, the domain and the bad links at the mail gateway. Then searches all mailboxes and removes every copy. Proxy and DNS logs show who clicked. Anyone who typed a password gets a password reset, and their sessions are ended. Finally, thank Sara for reporting it.

Putting it together Let us put it together. Check the sender: the real address, look-alike domains and Reply-To. Read the Received headers from the bottom up. Read SPF, DKIM and DMARC, and remember a pass is not proof of honesty. Check links and files safely, never by clicking. And respond: block, remove, find who clicked, and reset passwords. Now read the lesson below, and try the lab to find where a reply would really go.

Phishing is one of the most common ways attackers get in. Many organisations have a Report phishing button, and every report lands in the SOC queue. This lesson shows how an analyst decides if a reported email is malicious, and what to do next.

Step 1: look at the sender

Display name versus real address. The display name is free text. Anyone can set it to anything.

From: "ChaiCorp IT Support" <it-support@chaicorp-helpdesk.example>

The name says ChaiCorp, but the real address is on a different domain. Always look at the address inside the angle brackets.

Look-alike domains. Attackers register domains that look like the real one at a quick glance:

Real Look-alike Trick
chaicorp.example chaic0rp.example Zero instead of letter o
chaicorp.example chaicorp-helpdesk.example Extra word added
chaicorp.example chalcorp.example Letter l instead of i

Reply-To mismatch. The Reply-To header controls where replies go. If From is one address but Reply-To is a different, unknown address, the attacker wants your answer to reach them.

Return-Path. This is the address where bounce messages are sent. It is also called the envelope sender, and it is the domain that SPF checks. A Return-Path on an unrelated domain is another clue.

Step 2: read the headers

Every email has hidden headers, which most mail programs let you view (often called Show original or View source). Here is an example of a reported email:

Return-Path: <it-support@chaicorp.example>
Received: from mail.fastsend.example (mail.fastsend.example [198.51.100.66])
        by mx.chaicorp.example with ESMTP id 4F2A9; Thu, 12 Mar 2026 09:41:05 +0000
Received: from [10.8.0.12] (unknown [203.0.113.90])
        by mail.fastsend.example with ESMTPSA; Thu, 12 Mar 2026 09:41:02 +0000
Authentication-Results: mx.chaicorp.example;
        spf=fail (sender IP 198.51.100.66 not permitted) smtp.mailfrom=chaicorp.example;
        dkim=none;
        dmarc=fail (p=quarantine) header.from=chaicorp.example
From: "ChaiCorp IT Support" <it-support@chaicorp.example>
Reply-To: <helpdesk@chaicorp-helpdesk.example>
To: <sara@chaicorp.example>
Subject: Action required: your mailbox will be closed today
Date: Thu, 12 Mar 2026 09:41:00 +0000

Reading Received headers bottom-up

Each mail server that handles a message adds a Received line at the top. So the bottom one is the oldest hop, and the top one is the last server, usually your own. Read them from the bottom up:

  1. The message started at a machine using 203.0.113.90 and was sent through mail.fastsend.example
  2. mail.fastsend.example (198.51.100.66) passed it to mx.chaicorp.example, the company's own mail server

The From address claims to be chaicorp.example, but the email never passed through ChaiCorp's own sending servers. That is suspicious.

Only the Received headers added by your own servers can be fully trusted. Lower headers could be faked by the sender.

Step 3: SPF, DKIM and DMARC

These three checks help a receiving server decide if an email really came from the domain it claims.

Check Simple explanation
SPF (Sender Policy Framework) The domain publishes a list of servers allowed to send its mail. The receiver checks if the sending IP is on the list
DKIM (DomainKeys Identified Mail) The sending server adds a digital signature. The receiver checks it with the domain's public key, which proves the message was not changed and was signed by that domain
DMARC (Domain-based Message Authentication, Reporting and Conformance) Checks that SPF or DKIM passed and matches the domain in the From address. The domain owner also says what to do on failure: none, quarantine or reject

The results appear in the Authentication-Results header:

Result Meaning
pass The check succeeded
fail The check failed. The sender is not authorised
softfail SPF only: probably not authorised, but the domain owner asked receivers not to reject outright
none No record or no signature, so nothing could be checked

In our example: SPF fail (the IP is not allowed to send for chaicorp.example), DKIM none (no signature), DMARC fail. Combined with the Reply-To on a look-alike domain, this email is almost certainly phishing.

Be careful: SPF pass does not mean safe. Attackers often send from a domain they own, so SPF passes for their domain. DMARC is what checks that the domain in From matches the domain that passed SPF or DKIM.

A pass does not mean an email is safe. Attackers can set up SPF, DKIM and DMARC on their own look-alike domains, and those emails will pass. These checks prove who sent it, not whether it is honest.

Never click links or open attachments on your normal computer. Instead:

  • Links: hover or view the source to see the real URL. Copy it as text and check it in a URL scanning service or reputation tool. Many analysts write URLs in a safe form, such as hxxps://chaicorp-helpdesk[.]example/login, so nobody clicks by accident.
  • Attachments: do not open them. Check the file hash against threat intelligence services, or run the file in a sandbox, an isolated system built to run suspicious files safely and record what they do.

Watch for login pages that copy your company's design, and for files such as macro-enabled Office documents, archives with scripts inside, or files with double extensions like invoice.pdf.exe.

Remember that uploading a file to a public scanning service can share it with others. Follow your organisation's rules about what can be uploaded.

Step 5: respond

If the email is malicious:

  1. Block the sender address, domain, and any malicious URLs or IPs at the mail gateway, proxy or firewall
  2. Search all mailboxes for the same email (same subject, sender or link) and remove copies
  3. Find who clicked. Check proxy or DNS logs for visits to the malicious URL
  4. Reset credentials for anyone who entered a password, and end their active sessions
  5. Check affected devices with EDR if anyone opened an attachment
  6. Reply to the reporter and thank them. Reporting should always feel worthwhile

In the lab, you will read the full headers of a reported email and find out where a reply would really go.

HANDS-ON LAB

Behind the Email

A staff member reported a "bank" email. Follow the headers.

Start the lab →

Check your understanding

Answer every question correctly to complete this lesson. If you miss one, try the quiz again.

1. In which order should you read Received headers to follow an email's path from sender to you?

2. An email shows dmarc=fail for header.from=chaicorp.example. What does this tell you?

3. A user clicked the link in a phishing email and typed their password. What should happen first?

Locked: answer every quiz question above correctly to complete this lesson.

Spotted a mistake or something unclear? Report a mistake