Phishing emails pass SPF, DKIM and DMARC using hidden characters and spoofed names
The author says an acquaintance turned on catch-all[1] for a domain and, within an hour, received dozens of spam emails, all of them phishing. Catch-all accepts mail sent to any address in the domain, including addresses that do not exist. The emails pretended to be from Amazon or the National Tax Agency and linked to unfamiliar domains.
All the emails passed the SPF, DKIM and DMARC checks with a pass result. The sender used its own domain with those records set up and a DMARC policy of quarantine[2]. DMARC checks only the domain of the address, not the display name, so the name "Amazon" was not verified. The HTML body contained invisible characters inserted inside words, which broke keyword search, and one sender name was written in reverse with an RLO[3] control character that flips how it is displayed.
To catch these emails, the author rewrote the filter. A message is treated as suspicious if the sender name or subject contains invisible characters, if HTML character references are nested, or if a brand named in the text does not match the domains of the links. The sender authentication check was moved to the last step. The author says all the phishing emails received were caught before that check. Emails that are entirely images or use QR codes are not yet blocked.
Sources
-
JPZenn JA
迷惑メール対策をしているのに、なぜ詐欺メールは届くのか




