☼
⌃
☰

Phishing

Table of Contents

Social engineering via deceptive communication — email, SMS, voice, or fake websites — designed to trick a recipient into revealing credentials, financial details, or executing malicious content. Relies on human trust and urgency rather than technical exploitation, though it is frequently the entry point for a technical compromise that follows.

Related: Cybercrime Social Engineering Multi-Factor Authentication Phishtool File Upload Vulnerabilities

1. Types

Type Vector Notes
Email phishing Email Most common; broad or targeted
Spear phishing Email Targeted at a specific individual using personal/organisational context
Whaling Email Spear phishing aimed at executives or high-value targets
Smishing SMS Often impersonates delivery services, banks
Vishing Voice call Impersonates IT support, banks; often paired with urgency
Quishing QR code Embeds a malicious URL in a QR code to bypass URL-based filtering
Clone phishing Email Duplicates a legitimate previously-delivered email, swaps the link/attachment

2. Common Pretext Tactics

  • Urgency — "your account will be suspended in 24 hours"
  • Authority — impersonating IT, finance, or executive leadership
  • Fear — fake security alerts, threatened legal or financial consequence
  • Curiosity — vague subject lines, unexpected "shared document" notices
  • Reciprocity / reward — fake refunds, prize notifications

3. Email Authentication Standards

The technical controls that detect spoofed sender domains — core to assessing whether a reported email's claimed sender is genuine.

SPF (Sender Policy Framework)

A DNS TXT record listing which mail servers are authorised to send email for a domain. The receiving server checks whether the sending IP is in that list.

TEXT
# Example SPF record for example.com
v=spf1 include:_spf.google.com include:mailgun.org ~all

SPF only validates the envelope sender (MAIL FROM), not the visible From header — an email can pass SPF while still displaying a spoofed From address to the recipient. This is why SPF alone is insufficient and DMARC is needed to tie it to the visible header.

DKIM (DomainKeys Identified Mail)

Adds a cryptographic signature to outgoing mail, generated with the sending domain's private key. The receiving server retrieves the public key from DNS and verifies the signature, confirming the message was sent by the claimed domain and was not altered in transit.

#+beginsrc text

DKIM-Signature: v=1; a=rsa-sha256; d=example.com; s=selector1; h=from:to:subject; bh=…; b=… #+endsource

A failed DKIM check means either the signature doesn't match the content (tampering) or the domain never signed the message at all.

DMARC (Domain-based Message Authentication, Reporting, and Conformance)

Builds on SPF and DKIM. A DNS record specifying what the receiving server should do if a message fails both checks, and crucially — ties SPF/DKIM validation to the visible From header, closing the gap SPF alone leaves open.

TEXT
# Example DMARC record
v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com; pct=100
Policy Action on failure
p=none Take no action, report only
p=quarantine Send to spam/junk
p=reject Block delivery entirely

A domain with no DMARC record, or p=none, offers no real protection regardless of SPF/DKIM configuration — this is common on legitimate domains too, so absence of DMARC is not itself evidence of spoofing.

4. Header Analysis Methodology

When triaging a reported email, the headers reveal what the visible content cannot — actual sending infrastructure, whether authentication passed, and the true path the message took.

Locating Full Headers

TEXT
Outlook: Open message → File → Properties → Internet headers
Outlook (new): ... menu → View → View message source
Gmail: Open message → ⋮ → Show original
Phishtool: Upload .eml/.msg — parses headers automatically

Key Headers to Check

TEXT
From:              — visible sender (easily spoofed, do not trust alone)
Reply-To:          — where replies actually go; mismatch with From is a red flag
Return-Path:       — actual envelope sender, used for SPF check
Received:          — chain of mail servers the message passed through, bottom to top
Authentication-Results: — SPF, DKIM, DMARC pass/fail summary in one place
Message-ID:        — unique identifier; check domain matches claimed sender
X-Originating-IP:  — sometimes present, reveals the originating client IP

Authentication-Results Header

The fastest way to assess legitimacy — most mail gateways add this header summarising all three checks:

TEXT
Authentication-Results: mx.example.com;
  spf=pass smtp.mailfrom=sender.com;
  dkim=pass header.d=sender.com;
  dmarc=pass header.from=sender.com

Look for: any fail or softfail, and whether the header.from domain in the DMARC result actually matches the visible From address the user saw.

Reading the Received Chain

Read Received headers bottom-to-top — the bottom entry is closest to the original sender, the top is the last hop before your mail server.

TEXT
Received: from mail.example.com (mail.example.com [203.0.113.5])
  by mx.target.com; Mon, 15 Dec 2025 10:30:00 +0000
Received: from [192.168.1.50] (unknown [198.51.100.20])
  by mail.example.com; Mon, 15 Dec 2025 10:29:55 +0000

Check whether the originating IP and hostname in the earliest Received entry are consistent with the claimed sending organisation. A claimed corporate sender originating from a residential or VPS IP range is a strong indicator.

From / Reply-To Mismatch

A common and easy-to-spot pattern: the visible From claims a trusted domain, but Reply-To points elsewhere — replies (and any sensitive information in them) go to the attacker, not the claimed sender.

5. Link and Attachment Triage

  • Hover, don't click — check the actual destination URL before interacting; displayed text and href target frequently differ
  • Check the domain carefully — lookalike domains (micros0ft.com, paypa1.com) and subdomain tricks (paypal.com.attacker-domain.com, where the real domain is the part immediately before the final /) are both common
  • URL shorteners — expand before trusting; many free tools resolve the final destination without visiting it
  • Attachments — never execute directly; submit to a sandbox or forward to the appropriate analysis tooling per your organisation's process before any local interaction
  • See File Upload Vulnerabilities for the offensive-side counterpart — useful for understanding what a malicious attachment may attempt once opened

6. Escalation Considerations

When an internal team (rather than a SOC) handles phishing triage directly, the questions to answer for each report are:

  • Did the user interact with the email — click a link, open an attachment, enter credentials?
  • Does header analysis confirm or contradict the claimed sender?
  • Is this an isolated report or part of a wider campaign — check whether other users received the same or similar message
  • If credentials were entered: this becomes an account compromise response, not just a phishing report — password reset, session invalidation, and MFA review are immediate next steps
  • If an attachment was opened: treat as a potential malware incident — see windows client DFIR for endpoint investigation

7. Prevention and Organisational Controls

  • MFA — limits the impact of credential theft even if phishing succeeds; see Multi-Factor Authentication
  • DMARC enforcement (p=reject) on owned domains — prevents attackers from spoofing your own organisation's domain in outbound-looking attacks against your users or partners
  • User reporting culture — a low-friction "report phishing" button generates the data needed to spot campaigns early
  • Security awareness training — reduces click-through rate; most effective when tied to real, anonymised examples from the organisation's own reported emails

Tips

  • SPF/DKIM/DMARC passing does not guarantee a benign email — it only confirms the claimed domain actually sent it; a compromised legitimate account passes all three checks perfectly while being entirely malicious
  • The Authentication-Results header is the fastest single source of truth — check it first before manually walking the Received chain
  • Reply-To mismatches and subdomain lookalikes are the two highest-yield checks for a quick manual triage when tooling like Phishtool is unavailable
  • Treat "did the user interact with it" as the question that determines triage path — a reported-but-unclicked email is a much lower priority than one where credentials were entered