Home icon

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.



Go to article

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

Nov 3
2026
Email security deep dive: Manual DKIM signing through Amazon SES
Oct 13
2026
Stopping business email compromise with AI-driven email security: How VIPRE protects modern enterprises on AWS
Nov 18
2026
Amazon S3 Replication adds exclusions and Multi-Region key resolution
Nov 18
2026
Step-up authentication: how to right-size authentication to risk

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.