US Gov SPF Typos Let 32,000+ IPs Slip Past Email Defenses
Researchers discovered that typo errors in SPF records of multiple US government domains have inadvertently whitelisted over 32,000 Amazon SES IP addresses, enabling attackers to snowshoe malicious senders past DMARC quarantine policies and exploit the trust placed in .gov email infrastructure.
How did the SPF typos originate and which domains are affected?
The misconfigurations stem from misspelled AmazonSES include mechanisms—such as amazones.com or amasonses.com—that were entered into the SPF strings of public‑facing .gov zones. At least three government sites—milivcounty.gov, pikevilleky.gov, and townofkirkwood.gov—showed these exact typos, and a broader survey revealed roughly forty additional US‑government domains with dangling NS, MX, or DMARC records that could be abused (GetKhojo research).
What technique are attackers using to exploit the whitelisted IPs?
Adversaries employ “snowshoe” spamming, rotating the source IP address for each batch of malicious mail to evade rate‑based detection. Because the typo‑based SPF entries automatically approve any IP owned by Amazon SES, the attackers can swap in fresh Amazon‑hosted IPs every three to eight days, staying under the radar of reputation services until the IPs are eventually listed by Abusix or Spamhaus.
Why does snowshoeing make detection harder for defenders?
Snowshoeing spreads the load across thousands of IPs, diluting the volume per address and preventing typical thresholds from triggering alerts. When the IP pool is dynamically refreshed via the SPF include chain, defenders lose a stable indicator of compromise, and the legitimate “whitelisted” status of the IPs masks the malicious traffic as trusted government mail (according to the disclosure discussed by researchers).
What remediation steps should government and private email operators take?
First, audit every SPF record for typographical errors and replace malformed include mechanisms with the official Amazon SES domain (include:amazonses.com). Second, enforce strict DMARC policies (e.g., p=reject) on all .gov domains and monitor for unexpected changes via automated DNS monitoring tools. Third, employ DNS‑based authentication monitoring (such as GetKhojo’s Attack‑Surface Scan) to flag dangling NS or MX records that could be hijacked.
What this means for you?
If your organization relies on .gov email addresses for critical communications, verify the SPF, DKIM, and DMARC settings of any partner domain before trusting inbound mail. Regularly scan your own DNS footprint for typo‑induced include chains and use a reputable DNS‑watch service to receive alerts on sudden record changes. By tightening authentication and maintaining continuous visibility, you can prevent attackers from slipping through the same loophole that compromised dozens of government mail systems.
Frequently asked questions
How can I check if my SPF record contains a typo that whitelists Amazon SES IPs?
Use a DNS lookup tool to retrieve the SPF TXT record and look for misspelled include mechanisms such as “amazones.com” or “amasonses.com”. Compare the entry against the official Amazon SES include (<code>include:amazonses.com</code>) and correct any deviations.
What is “snowshoe” spamming and why is it effective against DMARC policies?
Snowshoe spamming spreads malicious email across many IP addresses, keeping each sender’s volume low enough to avoid rate‑based blocks. When the IPs are inadvertently whitelisted by a faulty SPF record, each message appears to comply with DMARC, allowing it to bypass quarantine or reject actions.
Are there tools that can automatically detect dangling NS or MX records in government domains?
Yes, several DNS monitoring platforms—including GetKhojo’s Attack‑Surface Scanner—can enumerate and alert on orphaned name‑server, MX, or DMARC records that no longer resolve to active infrastructure, helping you remediate takeover risks before they are exploited.
Should I switch my DMARC policy from quarantine to reject after fixing SPF errors?
Moving to <code>p=reject</code> provides the strongest protection, but it should be done after confirming that all legitimate senders pass SPF and DKIM checks. A staged approach—testing with <code>p=quarantine</code> then reviewing reports—helps avoid accidental delivery loss.
How often should I audit my organization’s DNS records for security gaps?
Perform a comprehensive DNS audit at least quarterly, and immediately after any major infrastructure change. Automated continuous monitoring adds real‑time visibility, ensuring that typographical errors or unauthorized record modifications are caught early.
