What is DomainKeys Identified Mail?
A digital signature added to outgoing email by the sending domain. The receiver fetches the public key from DNS and checks the signature, which proves the domain took responsibility for the message and that signed parts were not altered.
The sending server signs selected headers and the body with a private key and adds a DKIM-Signature header naming the signing domain (d=) and a selector (s=). The receiver looks up selector._domainkey.domain in DNS for the public key and verifies the signature. Unlike SPF, DKIM survives ordinary forwarding, because the signature travels with the message. A valid signature only says which domain signed the message, not that the message is safe: attackers sign mail from their own lookalike domains too. DMARC checks that the signing domain matches the From address, and DKIM keys need rotating and protecting like any other private key.
Source: IETF RFC (RFC 6376).
Practice it in a lab
Free, hands-on labs that teach DomainKeys Identified Mail.
- Set up SPF, DKIM, and DMARC for your domain (intermediate, ~70 min (plus waiting for DNS and the first DMARC report))
- Verify email authenticity with DKIM from scratch (advanced, ~90 min)
- Read email headers to triage a suspicious message (beginner, ~30 min)
- Triage a suspicious email by reading its header (beginner, ~30 min)
- Investigate a phishing email end-to-end (the SOC/DFIR workflow) (intermediate, ~45 min)
- Pull the indicators out of a phishing email with CyberChef (headers, links, attachments) (intermediate, ~60 min)
Related terms
Related
- Set up SPF, DKIM, and DMARC for your domain
- Verify email authenticity with DKIM from scratch
- Read email headers to triage a suspicious message
- Triage a suspicious email by reading its header
- Investigate a phishing email end-to-end (the SOC/DFIR workflow)
- Pull the indicators out of a phishing email with CyberChef (headers, links, attachments)
- DMARC
- Hash function
- Phishing
- Indicator of compromise
- Cybersecurity glossary
- Free cyber labs