Email Security and Phishing Defense
Protect the inbox with SPF, DKIM and DMARC, filtering, safe reporting and a clear process for handling reported phishing.
Intermediate · about 6 hours · difficulty 2/5
Learn first: DNS and How It Gets Abused, Incident Response Playbooks
Phishing remains one of the most common ways organisations are breached. Defending against it takes technical controls, a good reporting process and fast response.
Email authentication
- SPF: a DNS record listing which servers may send mail for your domain.
- DKIM: a cryptographic signature on each message, verified with a public key in DNS.
- DMARC: tells receivers what to do when SPF or DKIM fail alignment (
p=none,quarantineorreject) and sends you reports. Move gradually fromnonetorejectonce legitimate senders are covered. - These protect your domain from being spoofed; they do not stop look-alike domains.
Filtering and protection
- Secure email gateways or built-in protections (Microsoft Defender for Office 365, Google Workspace) with attachment sandboxing and URL rewriting.
- External sender banners and warnings for look-alike domains.
- Block risky attachment types such as macros from the internet.
Reporting and response
- A one-click report phishing button that feeds the SOC.
- Analysts check headers (
Received,Authentication-Results), links and attachments in a safe sandbox. - If confirmed: purge the message from all mailboxes, block the sender and URLs, and check whether anyone clicked or entered credentials, then reset and revoke sessions.
- Thank reporters; that keeps them reporting.
Phishing-resistant MFA
Passkeys and FIDO2 keys resist credential phishing far better than SMS or push codes.
Pitfalls
- Leaving DMARC at
p=noneforever. - Punishing people who click, which makes them hide mistakes.
Good enough to move on: you can read SPF, DKIM and DMARC records for a domain, analyse a suspicious email header and describe the response steps for a clicked link.
Key concepts
- SPF, DKIM and DMARC
- DMARC rollout and reports
- Email filtering and sandboxing
- Header analysis
- Report phishing workflow
- Purge and post-click response
- Phishing-resistant MFA
Mini project
Look up the SPF, DKIM and DMARC records for three well-known domains and your own if you have one, explain each setting, then analyse the headers of a spam message from your inbox in a safe way and write up your verdict.
Check yourself
Which attack does DMARC with p=reject prevent, and which common phishing trick does it not stop?
Free resources
- DMARC overview (DMARC.org)
- Phishing guidance: stopping the attack cycle at phase one (CISA)
- Email authentication in Microsoft 365 (Microsoft Learn)