e2a: A Secure Agent-Native Email Gateway with Phishing and Prompt-Injection Defense

Josh Zhang, Hongyuan Jia, Xueyan Zhang, Hanzhi Tan, Jingzhuo Hu


Abstract
Email is becoming the universal interface for AI agents, but an ingested message contains un- trusted, malicious data the agent may execute as instructions. The indirect prompt-injection failure underlies real-world incidents such as EchoLeak (M365 Copilot, CVE-2025-32711) and the Gemini-in-Gmail hidden-HTML hijack. We present e2a, a deployable, open-source authenticated-email gateway that gives an agent a verified email identity and exposes two agent- agnostic defense hook points. The (G)ateway authenticates senders via SPF/DKIM/DMARC and parses MIME structure; the (L)LM-layer screens the normalized prompt for injection. On top of the gateway, we construct a bench- mark that isolates email structure as the first- class injection surface: one payload rendered across eight transport surfaces. We measure the per-surface evasion delta for open-source classifiers, three commercial security APIs, and frontier LLM judges. We find that structural hiding defeats detection. A naive text/plain- first parse costs every detector substantial AUC, dropping most classifiers below chance, and even on the gateway’s structure-aware view no non-LLM detector survives. A frontier LLM judge on the same view recovers most of the loss, and conditioning the threshold on crypto- graphic sender authentication (DMARC) lifts held-out recall further. No single layer suf- fices. e2a is live and open-source (Apache-2.0) at https://e2a.dev, released with the bench- mark and harness.
Anthology ID:
2026.emnlp-demos.19
Volume:
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: System Demonstrations
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Sweta Agrawal, Alberto Abad
Venue:
EMNLP
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
199–207
Language:
URL:
https://aclanthology.org/2026.emnlp-demos.19/
DOI:
Bibkey:
Cite (ACL):
Josh Zhang, Hongyuan Jia, Xueyan Zhang, Hanzhi Tan, and Jingzhuo Hu. 2026. e2a: A Secure Agent-Native Email Gateway with Phishing and Prompt-Injection Defense. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pages 199–207, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
e2a: A Secure Agent-Native Email Gateway with Phishing and Prompt-Injection Defense (Zhang et al., EMNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.emnlp-demos.19.pdf