How Exposed Are LLM Email Agents to Indirect Prompt Injection? A Pinned Benchmark over Email and Retrieved Documents

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.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-27
DOI
https://doi.org/10.5281/zenodo.24567398
Primary Topic
Adversarial Robustness in Machine Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

How Exposed Are LLM Email Agents to Indirect Prompt Injection? A Pinned Benchmark over Email and Retrieved Documents

Tran Quang Huy, Le Tien Dung, Tấn Lực Lê, Tran Van Ninh et al.
Zenodo (CERN European Organization for Nuclear Research)
Adversarial Robustness in Machine Learning
preprint

How Exposed Are LLM Email Agents to Indirect Prompt Injection? A Pinned Benchmark over Email and Retrieved Documents

Tran Quang Huy, Le Tien Dung, Tấn Lực Lê, Tran Van Ninh, Hoang Hieu Do, Hoang Hai Nguyen Pham
preprint en

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.

Zenodo (CERN European Organization for Nuclear Research)
FPT University (VN)
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon