Open-source email prompt injection test set: real-world testing of Defender for Office 365's blocking of Base64 and zero-width character emails
Researchers released an open-source email prompt injection test set for checking whether email security gateways and AI email assistants can identify indirect prompt injection instructions hidden in emails. The test set is designed with Microsoft Defender for Office 365's prompt injection protection in mind, but the samples are standard .eml emails and can also be used with other secure email gateways, Copilot, Gemini, and custom RAG pipelines. The samples cross three intents—system prompt leakage, data exfiltration via URL, and tool and write permission probing—with three delivery methods—plaintext visible, hidden HTML, and Base64 or zero-width character encoding—plus one benign control email without a payload. Each email carries an X-Injection-Test header noting the intent and evasion method. The authors suggest recording separately whether the control detects it and whether the payload changes the assistant's output, and note that emails from trusted or internal senders may not trigger detection, so you can send them individually first and then try combined delivery.