Day 4: Can this domain be spoofed? (email security)
SPF, DKIM and DMARC in plain words, then grade a real domain with a free checker.
Business email compromise, where a criminal pretends to be the boss or a supplier and asks for a payment, is one of the costliest attacks around. Much of it relies on email that looks like it came from a trusted domain. Today you learn the three records that stop that, and you grade a real domain.
The lesson
- SPF (a TXT record starting
v=spf1) lists the servers allowed to send mail for a domain. - DKIM adds a cryptographic signature to each message, so the receiver can tell it was not changed and really came from the domain.
- DMARC (a TXT record at
_dmarc.<domain>) tells receivers what to do when SPF and DKIM do not line up with the visible From address:p=none(just report),p=quarantine(send to junk) orp=reject(refuse). Without DMARC at quarantine or reject, anyone can send mail that shows your domain in the From line. - Reading headers. When a suspicious email arrives, the
Authentication-Resultsheader shows whether SPF, DKIM and DMARC passed. SOC analysts read these every day.
Today's task (15 to 20 minutes)
- Check three domains with the free email domain checker: your college's or employer's, a bank you use, and a small local business.
- For each one, record in your log: is there a DMARC record, and what is its
p=value? Does SPF end in-all(strict) or~all(soft)? - Grade one of them with the email security score tool and note the top fix it suggests.
- Open any email in your own inbox, view the original message or headers, and find the
Authentication-Resultsline. Write down what it says for SPF, DKIM and DMARC.
Read next on EpiFive
- Someone is sending email from your domain: stop it with DMARC.
- State of email security for small businesses: what we found when we checked thousands of domains.
- Find malicious inbox forwarding rules after a BEC.
Tomorrow
Day 5: think like a defender. You will read real sign-in events on your own computer. Read day 5 on the site.