As LLMs become more capable, agents can perform more complex tasks with tools and maintain longer interactions with users. These benign conversations contain evidence on task results, user concerns, and operational constraints. The risk is that attackers who can observe benign conversations (evidence) may construct stronger indirect prompt injections without increasing the attackers' control over prior turns or the later injection. However, we still lack a clear study of how effectively attackers can select and use this evidence. To address this gap, we introduce ContextLure, a red-teaming framework in which an attacker silently observes an existing benign conversation, extracts evidence, and constructs an injection. The challenges are twofold: (a) selecting useful evidence and (b) presenting it as reasons for an unauthorized action, without changing the prior benign conversation. To efficiently exploit (a) the effect of evidence on attack success, our framework selects evidence across 2 dimensions: User/System Preferences with 3 selection policies. And to enhance (b) the process of turning the selected information into the malicious request, we introduce an Urgency/Priority matrix with 4 rewriting strategies. Across the evaluated conditions, we reach 67.4% ASR on AgentDojo and 87.3% on InjecAgent. These results show that attackers can use benign interaction evidence in later attacks without first poisoning the benign conversation.
Figures & tables
Figure 1: Illustration of contextual reuse: an attacker cites details from a benign conversation to frame an unrelated malicious transfer as a continuation of the user’s legitimate activity.
Figure 2: Overview of ContextLure. The attacker observes a benign interaction, extracts and selects source-verifiable evidence with the attack goal available, constructs a one-shot payload under a rewriting policy, and then reflects on the victim’s response. The lower panels summarize the extraction policies, rewriting policies, and evidence categories.
Figure 3: Evidence-category distribution in constructed benign interactions.
AgentDojo
InjecAgent
Method
Workspace
Banking
Travel
Slack
Overall
Direct Harm
Data Stealing
Overall
Benchmark
12.1 / 82.1 / 0.7
52.3 / 46.9 / 16.2
20.0 / 60.0 / 2.7
20.6 / 84.2 / 17.0
20.3 / 73.7 / 5.2
34.1
47.0
40.8
AgentVigil
12.1 / 87.9 / 0.7
63.1 / 49.2 / 19.2
20.0 / 70.7 / 2.7
20.6 / 90.3 / 17.0
21.9 / 79.8 / 5.6
45.00
58.60
52.02
IterInject
13.6 / 85.7 / 0.7
63.8 / 46.9 / 16.2
21.3 / 68.0 / 2.7
28.5 / 88.5 / 23.0
24.0 / 77.5 / 5.8
62.29
54.30
58.17
Muzzle
19.66 / 73.9 / 1.59
68.3 / 81.1 / 40.9
28.9 / 43.9 / 19.27
36.07 / 49.9 / 44.9
30.2 / 67.9 / 15.0
73.8
86.6
80.4
ChatInject
20.5 / 77.1 / 2.6
70.9 / 81.2 / 46.3
36.0 / 39.7 / 17.3
37.8 / 52.6 / 43.1
32.3 / 69.5 / 15.9
81.7
89.6
85.8
Table 1: Cross-benchmark results by suite. All values are percentages. AgentDojo cells report (ASR, UA, JSR) ; InjecAgent cells report ASR. Blue tint increases with ASR, and boldface marks the highest ASR in each column.
Figure 4: Attack success across methods, victim models, and policies. Cells report ASR (%). Panel (a) compares methods and victims; panels (b,c) show the same Qwen3.6-35B-A3B matrix of Evidence Extracting Policy and rewriting policy.
Figure 5: Attack success and trusted-task outcomes across victim models. Panels (a), (b), and (c) report ASR, UA, and JSR (%), respectively; colors identify victim models.
Figure 6: ASR gains with evidence and rewriting policy. Points show changes from the Low-Impact reference without benign-conversation exposure, in percentage points, with 95% confidence intervals. Best and Overall appear in the upper and lower blocks; AgentDojo is on the mirrored left axis and InjecAgent on the right.
Figure 7: Joint effects of evidence and rewriting policy on ASR. Panel (a) shows changes from the same-model, same-extraction-policy Low-Impact reference in percentage points. Panel (b) reports ASR (%) for six single-label source groups shown under the closest Stage 1 evidence category names on DeepSeek-V4-Flash; its Low-Impact condition includes the selected evidence item.
Figure 8: Evidence and rewriting under AgentDojo defenses. Panels (a) and (b) report ASR and UA (%), respectively; colors distinguish the four attack conditions.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Stage 1 evidence category
Source-linked content
Events
An occurrence, date, deadline, or other time-linked event.
Operational
A resource, environment condition, or operating constraint.
Preference
A stated priority, choice, or constraint on an outcome.
Relationship
A person or organization and its role in the task.
Task Status
Progress, a failed attempt, or a pending action.
Goal
The benign user’s intended outcome.
Appendix
Table 2: The six Stage 1 evidence categories. A source item may carry multiple labels.
Method
GLM-5.1
MiniMax-M2.7
DeepSeek-V4-Flash
Qwen3.5-27B
Benchmark
6.7 / 68.0 / 3.3
10.5 / 69.2 / 3.3
23.9 / 74.7 / 11.3
20.3 / 73.7 / 5.2
AgentVigil
10.3 / 83.2 / 4.2
16.0 / 76.0 / 3.5
28.8 / 65.8 / 6.9
21.9 / 79.8 / 5.6
IterInject
9.9 / 75.5 / 4.5
16.9 / 73.6 / 5.7
34.1 / 77.8 / 15.3
24.0 / 77.5 / 5.8
Muzzle
9.3 / 79.5 / 5.0
16.9 / 76.5 / 7.4
36.4 / 72.6 / 11.4
30.2 / 67.9 / 15.0
ChatInject
10.3 / 76.2 / 4.7
18.0 / 74.0 / 6.9
37.4 / 70.9 / 10.7
32.3 / 69.5 / 15.9
ContextLure
11.2 / 79.1 / 4.9
20.0 / 75.2 / 6.8
41.1 / 69.2 / 10.0
33.8 / 67.4 / 16.3
Appendix
Table 3: Model-level method results corresponding to the main paper’s model comparison figure. Each cell is ASR / UA / JSR (%); values are model-specific.
Benchmark and stratum
Rewriting policy
N
Gain
Loss
Δ ASR (pp)
95% CI (pp)
AgentDojo Best (Travel)
Strategic
34
9
2
+20.6
[2.9, 38.2]
Time-Sensitive
34
16
2
+41.2
[20.6, 61.8]
Critical
34
9
5
+11.8
[-8.8, 32.4]
AgentDojo Overall
Strategic
74
14
15
-1.4
[-14.9, 13.5]
Time-Sensitive
74
20
9
+14.9
[1.4, 28.4]
Critical
74
15
14
+1.4
[-12.2, 16.2]
Appendix
Table 4: Matched ASR changes plotted in the main paper’s matched ASR-gain figure. Best identifies Travel for AgentDojo and the Representative cohort for InjecAgent; Overall identifies the Extension cohort in each benchmark. Each comparison uses the Low-Impact reference in the same result block.
Victim
Evidence Extracting Policy
Low-Impact
Strategic
Time-Sensitive
Critical
Qwen3.6-35B-A3B
Randomized
16.8
27.6
42.4
42.4
User-Events
24.4
38.1
37.5
50.4
Task-Events
16.8
42.4
84.0
42.4
DeepSeek-V4-Flash
Randomized
18.9
49.5
37.9
43.2
User-Events
21.1
46.3
42.1
44.2
Task-Events
15.8
45.3
44.2
46.3
Appendix
Table 5: ASR (%) by victim, Evidence Extracting Policy, and rewriting policy for the two victims in the main paper’s policy interaction figure. Low-Impact is the within-policy reference for its plotted percentage-point changes.
Displayed source group
N
Low-Impact
Strategic
Time-Sensitive
Critical
Events
43
11.6
46.5
41.9
39.5
Goal
138
14.5
45.7
40.6
42.8
Relationship
15
40.0
73.3
53.3
60.0
Operational
21
38.1
52.4
47.6
47.6
Preference
16
12.5
56.2
43.8
50.0
Task Status
39
28.2
43.6
46.2
56.4
Appendix
Table 6: DeepSeek-V4-Flash ASR (%) for the displayed single-label source groups in the main paper’s evidence-group figure. N counts records in each source group; Low-Impact includes the selected evidence item in this comparison.
Defense
Default
Without Rewriting
Without Evidence
Evidence + Rewriting
No defense
24.6 / 24.7
29.5 / 26.0
38.0 / 14.0
44.6 / 18.5
PI detector
1.9 / 36.0
2.1 / 23.0
4.6 / 16.3
6.2 / 28.2
Lakera Guard
3.1 / 35.0
8.0 / 24.6
18.9 / 24.9
16.5 / 19.6
Instructional prevention
5.8 / 18.0
13.9 / 32.0
12.8 / 21.0
19.4 / 25.0
Data delimiting
5.2 / 19.0
11.6 / 22.0
22.1 / 20.0
27.6 / 23.0
User-instruction repetition
2.3 / 17.0
13.3 / 14.0
23.6 / 15.0
21.6 / 26.0
Appendix
Table 7: AgentDojo defense outcomes corresponding to the main paper’s defense figure. Each cell is ASR / UA (%). The available plotted data do not provide cell-level denominators or confidence intervals.
Large Language Models (LLMs) are rapidly evolving into agentic systems that interact with external tools and environments, introducing new security risks such as indirect prompt injection attacks through untrusted external sources. Existing defenses mainly focus on blocking malicious content at inference time, and current red-teaming methods primarily optimize attack success. As a result, developers have limited visibility into how latent prompt injections emerge and propagate through agents. We propose PI-Hunter, an automated agentic auditing framework for proactive vulnerability exposure in LLM agents. PI-Hunter constructs realistic source-aware test cases and iteratively evolves them through feedback-driven exploration to induce agents to retrieve and reveal latent malicious instructions embedded within external environments. Extensive experiments across multiple benchmarks, agent architectures, attacks, and defenses demonstrate that PI-Hunter substantially improves vulnerability exposure and attack-surface coverage over strong automated red-teaming baselines, while remaining effective under existing prompt injection defenses.
Pengfei He, Lesly Miculicich, Vishesh Sharma +5
Google Cloud AI Research · Google · Michigan State University
LLM based agents are increasingly deployed in high stakes settings where they process external data sources such as emails, documents, and code repositories. This creates exposure to indirect prompt injection attacks, where adversarial instructions embedded in external content manipulate agent behavior without user awareness. A critical but underexplored dimension of this threat is concealment: since users tend to observe only an agent's final response, an attack can conceal its existence by presenting no clue of compromise in the final user facing response while successfully executing harmful actions. This leaves users unaware of the manipulation and likely to accept harmful outcomes as legitimate. We present findings from a large scale public red teaming competition evaluating this dual objective across three agent settings: tool calling, coding, and computer use. The competition attracted 464 participants who submitted 272000 attack attempts against 13 frontier models, yielding 8648 successful attacks across 41 scenarios. All models proved vulnerable, with attack success rates ranging from 0.5% (Claude Opus 4.5) to 8.5% (Gemini 2.5 Pro). We identify universal attack strategies that transfer across 21 of 41 behaviors and multiple model families, suggesting fundamental weaknesses in instruction following architectures. Capability and robustness showed weak correlation, with Gemini 2.5 Pro exhibiting both high capability and high vulnerability. To address benchmark saturation and obsoleteness, we will endeavor to deliver quarterly updates through continued red teaming competitions. We open source the competition environment for use in evaluations, along with 95 successful attacks against Qwen that did not transfer to any closed source model. We share model-specific attack data with respective frontier labs and the full dataset with the UK AISI and US CAISI to support robustness research.
Mateusz Dziemian, Maxwell Lin, Xiaohan Fu +28
Gray Swan AI · Carnegie Mellon University · Center for AI Safety +5
Agentic systems are now being widely used to orchestrate tools and reason over long contexts. However, the improving capabilities of the large language models powering these agents also create new attack surfaces for indirect prompt injection. In particular, an attacker may not need to place a complete malicious instruction in retrieved content if the agent can reconstruct the objective from incomplete fragments distributed across a long context. In this work, we introduce adaptive long-context prompt injection (AdaLCPI), which combines long-context fragmentation with adaptive search. AdaLCPI splits an attack objective into incomplete fragments, embeds them in external content retrieved through the agent's tools, and uses a reconstruction cue to prompt the agent to combine them. It then iteratively refines the fragments and cue with OpenEvolve using graded scoring and natural-language execution feedback from the target agent. Empirically, AdaLCPI achieves higher attack success than strong adaptive baselines, reaching 61.4% macro-average ASR compared with 32.8% for Trojan Hippo-style and 30.0% for AgentVigil. Safety evaluations should therefore test whether agents remain robust when harmful objectives must be reconstructed from incomplete fragments.
Michael Lee, Zhipeng Wei, Yue Dong +1
International Computer Science Institute · DSO National Laboratories · UC Riverside +1