Beyond DKIM key rotation: understanding email replay attacks
Security Blog
This article explains DKIM replay attacks, where attackers resend legitimately signed emails to unintended recipients, and why DMARC enforcement and key rotation alone cannot stop them.
- DKIM replay exploits message durability by resending unchanged signed emails to new recipients, passing DMARC because DKIM validation succeeds
- Distinguish replay attacks from legitimate relays and spoofing using message-level evidence, not aggregate DMARC data alone
- Enforcing DMARC policies (p=reject) stop spoofing but not replay, since replayed messages have valid DKIM signatures
- Remove old DKIM public keys from DNS after rotation to invalidate previously signed messages; BYODKIM allows on-demand removal, Easy DKIM relies on AWS-managed rotation
- Use Amazon SES event publishing and DMARC rua reports to detect anomalous DKIM-passing volume from unknown IP addresses
- Implement sending authorization, short DNS TTLs, and DNS query logging to monitor and respond to replay attempts
- Contact recipient domains directly for message headers to build abuse reports when you lack the original messages
Effective replay defense requires confirming the attack with message-level evidence, reaching DMARC enforcement, and removing old keys as post-rotation hygiene, with long-term fixes coming through receiver-side duplicate detection and DKIM2 protocol improvements.
The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.
Related articles
2026
2026
2026
2026
The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.