Cyberstudy
2.5 4.5 In progress

Email Security

13 flashcards

Summary

Email was designed without authentication, so it is easy to spoof. SPF, DKIM and DMARC let receiving servers check whether a message really comes from the domain it claims. Email gateways filter malicious content, and S/MIME adds end-to-end signing and encryption.

In plain words

SPF, DKIM and DMARC together make domain spoofing hard. SPF publishes in DNS which IP addresses may send for a domain. DKIM signs messages so receivers can check the signature with a public key in DNS. DMARC tells receivers what to do when SPF or DKIM fail (none, quarantine or reject) and sends reports. Email gateways filter spam and malware and apply these checks. S/MIME uses certificates to encrypt and sign individual messages.

Detailed explanation

  • Sender Policy Framework (SPF): A DNS record listing the servers allowed to send mail for a domain; receivers check the sending server's address against it.
  • DomainKeys Identified Mail (DKIM): The sending server signs messages with a private key; receivers verify the signature with a public key published in DNS. DKIM signs but does not encrypt.
  • Domain-based Message Authentication, Reporting and Conformance (DMARC): A DNS policy that tells receivers what to do when SPF or DKIM checks fail and aligns them with the visible From domain, with reports sent back to the domain owner.
    • Policies: none (monitor only), quarantine and reject.
  • Email gateway: Filters inbound and outbound mail for spam, phishing, malware and data loss, often with sandboxing and URL rewriting.
  • Secure/Multipurpose Internet Mail Extensions (S/MIME): Uses certificates to digitally sign and encrypt individual messages end to end.

Important terms

taken from the text above
Sender Policy Framework (SPF)
A DNS record listing the servers allowed to send mail for a domain; receivers check the sending server's address against it.
DomainKeys Identified Mail (DKIM)
The sending server signs messages with a private key; receivers verify the signature with a public key published in DNS. DKIM signs but does not encrypt.
Domain-based Message Authentication, Reporting and Conformance (DMARC)
A DNS policy that tells receivers what to do when SPF or DKIM checks fail and aligns them with the visible From domain, with reports sent back to the domain owner.
Email gateway
Filters inbound and outbound mail for spam, phishing, malware and data loss, often with sandboxing and URL rewriting.
Secure/Multipurpose Internet Mail Extensions (S/MIME)
Uses certificates to digitally sign and encrypt individual messages end to end.

Examples & real-world scenarios

  • An SPF TXT record listing a company's mail servers.
  • A DMARC policy set to quarantine failures.
  • Signing a sensitive email with S/MIME.

Scenario

Attackers send invoices that appear to come from a company's domain. Publishing SPF and DKIM and a DMARC reject policy makes receiving servers discard the forged mail.

Common mistakes

  • Mixing up SPF (authorized sending IPs), DKIM (signature) and DMARC (policy and reporting).
  • Setting up DMARC with policy 'none' and never tightening it.

Practical skills

  • Explain what each of SPF, DKIM and DMARC checks.
  • Look up your own domain's SPF and DMARC records.

What I should remember

  • SPF: Lists authorized sending servers in DNS.
  • DKIM: Digital signature on messages, verified via DNS.
  • DMARC: Policy and reporting that ties SPF and DKIM to the From domain.
  • S/MIME: End-to-end signing and encryption with certificates.