How Exposed Are LLM Email Agents to Indirect Prompt Injection? A Pinned Benchmark over Email and Retrieved Documents
Abstract
Many customer-support teams now let a large language model draft email replies from a retrieval-augmented knowledge base. Such an agent can be misled by instructions that an attacker hides in the incoming email or plants in a knowledge-base document. In this paper we build a pinned benchmark for this setting and use it to measure how exposed an undefended pipeline really is. The benchmark has 1,800 cases: 1,000 attack emails written by participants of the LLMail-Inject challenge, 300 poisoned-document cases from PoisonedRAG, a seed knowledge base and synthetic templates, and 500 benign emails. The cases are drawn by seeded stratified sampling, fixed by a SHA-256 digest and replayed through a live host with triage, hybrid retrieval and one JSON reply call. Without any defense, 24.3% to 34.4% of the attack emails succeed end to end on GPT-4o-mini, Qwen2.5-7B and Llama-3.1-8B. Poisoned documents succeed in 22.7% of cases on GPT-4o-mini, but in 76.3% and 81.3% of cases on the two open models. A stricter prompt that tells the model where instructions may come from changes these rates by four points at most. We also find that two measurement choices matter a lot. Because triage closes many emails before any reply is written, end-to-end attack success can be only a third to a half of the rate among drafted replies, and a string-matching scorer counts up to twice as many successful email attacks as a meaning-based reading of the same drafts. Benchmarks of such pipelines should therefore report both.
// Source
Authors: Hoang Hai Nguyen Pham, Tran Quang Huy, Hoang Hieu Do, Tấn Lực Lê, Le Tien Dung, Tran Van Ninh
Institutions: FPT University