# Email Security and Phishing Defense

> Protect the inbox with SPF, DKIM and DMARC, filtering, safe reporting and a clear process for handling reported phishing. Free notes, key concepts, resources...

Canonical: https://www.internhack.in/roadmaps/tracks/cybersecurity/email-phishing-defense
Last updated: 2026-11-28

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](https://www.internhack.in/roadmaps/tracks/cybersecurity/dns), [Incident Response Playbooks](https://www.internhack.in/roadmaps/tracks/cybersecurity/ir-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`, `quarantine` or `reject`) and sends you reports. Move gradually from `none` to `reject` once 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=none` forever.
- 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](https://dmarc.org/overview/) (DMARC.org)
- [Phishing guidance: stopping the attack cycle at phase one](https://www.cisa.gov/resources-tools/resources/phishing-guidance-stopping-attack-cycle-phase-one) (CISA)
- [Email authentication in Microsoft 365](https://learn.microsoft.com/en-us/defender-office-365/email-authentication-about) (Microsoft Learn)

Previous: [Hardening with CIS Benchmarks](https://www.internhack.in/roadmaps/tracks/cybersecurity/hardening-baselines) · Next: [Security Awareness Programmes](https://www.internhack.in/roadmaps/tracks/cybersecurity/security-awareness)

## More in Endpoint and Email Security

- [Endpoint Detection and Response](https://www.internhack.in/roadmaps/tracks/cybersecurity/edr)
- [Hardening with CIS Benchmarks](https://www.internhack.in/roadmaps/tracks/cybersecurity/hardening-baselines)
- [Email Security and Phishing Defense](https://www.internhack.in/roadmaps/tracks/cybersecurity/email-phishing-defense)
- [Security Awareness Programmes](https://www.internhack.in/roadmaps/tracks/cybersecurity/security-awareness)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [Cybersecurity Roadmap](https://www.internhack.in/roadmaps/tracks/cybersecurity)
