ContextLure: Exploiting Benign Conversation History for Indirect Prompt Injection

arXiv cs.AI Papers

Summary

ContextLure is a red-teaming framework that lets attackers observe benign conversation history, extract verifiable evidence, and craft indirect prompt injections without poisoning prior turns, achieving 67.4% ASR on AgentDojo and 87.3% on InjecAgent.

arXiv:2611.31424v1 Announce Type: new Abstract: 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.
Original Article
View Cached Full Text

Cached at: 11/26/26, 09:26 AM

# ContextLure: Exploiting Benign Conversation History for Indirect Prompt Injection
Source: [https://arxiv.org/html/2611.31424](https://arxiv.org/html/2611.31424)
Zhen SunAffiliation:The Hong Kong University of Science and Technology \(Guangzhou\)Zhijie DengAffiliation:The Hong Kong University of Science and Technology \(Guangzhou\)Yini HuangAffiliation:The Hong Kong University of Science and Technology \(Guangzhou\)Yangyang ZhengAffiliation:The Hong Kong University of Science and Technology \(Guangzhou\)Dongyi ZhangAffiliation:The Hong Kong University of Science and Technology \(Guangzhou\)Xinlei HeAffiliation:Wuhan University

###### Abstract

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\.

## 1Introduction

As large language models \(LLMs\) become more capable, agents can perform more complex tasks with tools and maintain longer interactions with users, but they are also vulnerable to indirect prompt injection \(IPI\), where attackers place instructions in external content to make agents take actions the user has not authorized\([Greshake et al\., 2023](https://arxiv.org/html/2611.31424#bib.bib11);[Debenedetti et al\., 2024](https://arxiv.org/html/2611.31424#bib.bib10)\)\. This happens because models may give these external instructions the same priority as instructions from the user or system, allowing external text to control their actions\([Wallace et al\., 2024](https://arxiv.org/html/2611.31424#bib.bib25)\)\. They can execute transactions and use earlier conversations to understand user needs and continue ongoing tasks\([Zhan et al\., 2024a](https://arxiv.org/html/2611.31424#bib.bib18);[Salama et al\., 2025](https://arxiv.org/html/2611.31424#bib.bib19)\)\. These benign conversations contain evidence about user plans, temporary constraints, task outcomes, and failures, such as an unsuccessful transfer\. The records help agents assist users, but also provide more contextual information to attackers who can read the benign conversation\.

We consider an attacker who can read benign user\-agent interactions and later place one malicious message in an untrusted channel, such as a tool response, webpage, or email\. The attacker cannot change earlier turns\. Instead, the attacker can cite an evidence item from the benign conversation and present it as a reason for an unauthorized action\. For example, a record of a failed task can be used to present a malicious action as a step needed to complete that task\. Such an evidence item isverifiablein the sense that it can be traced to an earlier conversation turn\.

Existing indirect prompt injection attacks change how malicious messages are presented\. Some impersonate trusted roles or fabricate conversations\([Greshake et al\., 2023](https://arxiv.org/html/2611.31424#bib.bib11);[Chang et al\., 2026](https://arxiv.org/html/2611.31424#bib.bib15);[Chen et al\., 2025](https://arxiv.org/html/2611.31424#bib.bib20)\); others use victim feedback to refine payloads or learn attack strategies\([Chen et al\., 2026b](https://arxiv.org/html/2611.31424#bib.bib16);[Hou et al\., 2026](https://arxiv.org/html/2611.31424#bib.bib21);[Wang et al\., 2025](https://arxiv.org/html/2611.31424#bib.bib23);[Chen et al\., 2026a](https://arxiv.org/html/2611.31424#bib.bib22)\)\. However, we still lack a clear understanding of how attackers can select and use evidence from existing benign conversations they can observe but cannot edit\. We study this read\-only observation and evidence\-conditioned construction under a fixed attacker goal\.

![Refer to caption](https://arxiv.org/html/2611.31424v1/figures/contextlure_contextual_reuse.png)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\.This setting raises two challenges\. First, a benign conversation contains many evidence items, but not every item is useful for a fixed attack goal\. An evidence item can be easy to trace to its source without helping the attack\. Second, citing an evidence item does not explain why the agent should take the requested action\. The attacker must present that evidence item as a reason for an unauthorized action within a single message, even though the original interaction does not authorize the action\.

To address these challenges, we introduceContextLure, an automated red\-teaming framework in which an attacker with a fixed goal silently observes an existing benign conversation, extracts and selects source\-linked evidence, and constructs one later injection\. The goal remains available during observation, extraction, selection, and construction\. We study six semantic types of evidence and three ways of rewriting a complete attack message, Strategic, Time\-Sensitive, and Critical\. After execution,reflectionexamines what the victim said when it declined the malicious goal\.

We evaluate ContextLure on AgentDojo and InjecAgent\. The strongest displayed AgentDojo condition reaches 67\.4% ASR; on InjecAgent, Time\-Sensitive reaches 85\.8% ASR and Critical reaches 87\.3%\. These results show that attackers can use evidence from benign interactions to support later injectionswithout prior poisoning of the benign conversation\. Effectiveness varies across registered configurations and conditions, and the AgentDojo gains do not preserve utility under attack\.

Our main contributions are as follows:

1. 1\.We expose the downstream security risk of benign interaction evidence\.We introduce an observational threat model for pre\-attack benign interactions and characterize how evidence produced during normal use can later be repurposed by an attacker\. This reveals that the security impact of interaction information cannot be assessed solely from its original purpose or its immediate effect on the task in which it was created\.
2. 2\.We connect attack outcomes to the victim’s stated reasons\.We define a source\-linked reflection analysis of victim outputs that identifies reasons for declining the malicious goal and maps them to the evidence item, the relation introduced by rewriting, or the requested action\. This analysis organizes empirical comparisons across six evidence types and the Strategic, Time\-Sensitive, and Critical rewriting conditions\.
3. 3\.We demonstrate how locally benign events can contribute to broader execution\-level consequences\.Through executable agent evaluations, we show how interaction\-conditioned attacks can trigger dependent operations and extend the effect of an initially local event into subsequent actions, providing evidence for how information from benign conversations can participate in larger attack chains\.

## 2Related Work

Indirect prompt injection and contextual attacks\.Indirect prompt injection \(IPI\) arises when an agent treats attacker\-controlled external data as an operational instruction rather than as data\. Foundational work demonstrated remote attacks through retrieved content, including data theft and control of downstream API calls[Greshake et al\. \(2023\)](https://arxiv.org/html/2611.31424#bib.bib11)\. AgentDojo and InjecAgent turn this trust boundary failure into tool\-integrated evaluations with explicit attacker goals and action\-level success criteria[Debenedetti et al\. \(2024\)](https://arxiv.org/html/2611.31424#bib.bib10);[Zhan et al\. \(2024b\)](https://arxiv.org/html/2611.31424#bib.bib17)\. These settings vary in attacker access and chronology, and emphasize fabricated or transferred context, interactive adversarial dialogue, or a fixed injected message\. ContextLure studies the complementary case in which an attacker silently observes an existing benign conversation under a fixed goal, extracts and selects a provenance\-linked evidence item, and constructs exactly one later payload for an untrusted channel\. This per\-case contract tests whether earlier interaction evidence becomes attack leverage without altering prior turns or repeatedly injecting into the same episode\.

Automated red\-teaming frameworks\.The cited frameworks span black\-box search, feedback\-guided optimization, multi\-turn planning, and environment\-aware orchestration\. AGENTVIGIL uses black\-box red\-teaming with adaptive seed selection and Monte Carlo Tree Search to refine indirect injections, Learning to Inject treats prompt injection as black\-box reinforcement learning with a comparison\-based reward, and IterInject closes an injection, diagnosis, and refinement loop with structured victim feedback[Wang et al\. \(2025\)](https://arxiv.org/html/2611.31424#bib.bib23);[Chen et al\. \(2026a\)](https://arxiv.org/html/2611.31424#bib.bib22);[Chen et al\. \(2026b\)](https://arxiv.org/html/2611.31424#bib.bib16)\. SAVOR also produces one test\-time payload, but distills outcome\-conditioned strategies from prior attack trajectories into an offline memory[Hou et al\. \(2026\)](https://arxiv.org/html/2611.31424#bib.bib21)\. AutoDAN\-Turbo automatically discovers jailbreak strategies for red\-teaming[Liu et al\. \(2025b\)](https://arxiv.org/html/2611.31424#bib.bib24)\.

In the cited frameworks, evaluation commonly centers on a generated payload, strategy, trajectory, or scenario after the attacker objective and interaction surface have been specified\. ContextLure complements this line by giving the attacker a fixed goal before read\-only observation of an existing benign conversation, then making candidate extraction, evidence selection, and one later payload construction explicit\. With one injection and no feedback query in each case, the design examines contextual leverage without within\-case iterative refinement\.

Data selection and construction\.Data selection for instruction tuning identifies useful information at both sample and token levels\([Pang et al\., 2025b](https://arxiv.org/html/2611.31424#bib.bib1);[Pang et al\., 2025a](https://arxiv.org/html/2611.31424#bib.bib2)\)\. Agentic pipelines combine filtering, rewriting, and evaluation to construct instruction data\([Liu et al\., 2025a](https://arxiv.org/html/2611.31424#bib.bib3)\)\. Information reconstruction and recombination further improve imperfect instruction data\([Yang et al\., 2025](https://arxiv.org/html/2611.31424#bib.bib4);[Deng et al\., 2025](https://arxiv.org/html/2611.31424#bib.bib5)\), while preference\-aware response selection supports diverse user requirements\([Mao et al\., 2025](https://arxiv.org/html/2611.31424#bib.bib6)\)\.

![Refer to caption](https://arxiv.org/html/2611.31424v1/contextlure_method_overview.png)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\.
## 3Threat Model

Agent capabilities and interaction visibility\.Modern LLM agents maintain conversational context across multiple user interactions to support task continuity and personalized assistance\([Salama et al\., 2025](https://arxiv.org/html/2611.31424#bib.bib19)\)\. This design creates a natural information flow: as users interact with the agent over time, evidence accumulate in the benign conversation\. These evidence items are accessible to the agent through its context window or retrieval mechanisms and are intended to improve service quality\. However, the same accessibility creates an attack surface: any component that can read this benign conversation, whether through compromised retrieval systems, malicious plugins, or attacker\-controlled external content processed by the agent, can observe these benign interaction evidence items\. We model an attacker who gains read\-only access to a prefix of benign user\-agent interactions and later injects one malicious payload through an untrusted channel such as a tool response, webpage content, or email body\. The attacker cannot modify prior turns or plant instructions in the benign prefix; they can only observe what already exists and craft one injection that references it\.

Formalization\.Let the frozen pre\-attack interaction for caseiibe

τib=\(m1,…,mK\),\\tau\_\{i\}^\{b\}=\\bigl\(m\_\{1\},\\ldots,m\_\{K\}\\bigr\),\(1\)wheremjm\_\{j\}is a chronological user or agent message and the observation cutoffKKis fixed before attack construction\. Given the fixed goalgiag\_\{i\}^\{a\}, the attacker silently observes a read\-only viewℐi,KA⊆τib\\mathcal\{I\}\_\{i,K\}^\{A\}\\subseteq\\tau\_\{i\}^\{b\}, extracts and selects source\-verifiable evidence, and constructs one payload for an eligible untrusted channel\. The attacker controls one injection pointti⋆t\_\{i\}^\{\\star\}, subject toNpayload=1N\_\{\\mathrm\{payload\}\}=1, and cannot modify prior turns\. Experimental preparation of the benign interactions is specified in Section[5](https://arxiv.org/html/2611.31424#S5)\.

## 4Method: ContextLure Framework

ContextLure addresses two challenges: \(a\) selecting useful evidence from benign conversations and \(b\) presenting it as a reason for unauthorized action\. The framework separates observation, extraction, selection, and construction under a fixed attacker goal with one payload per case\. Stage 1 extracts and selects source\-linked evidence across User/System dimensions with three policies\. Stage 2 constructs attacks using an Urgency/Priority matrix with four rewriting strategies\. Stage 3 reflection connects outcomes to evidence types and rewriting choices\.

### 4\.1Data Preparation

Pre\-Attack Benign User–Agent Interaction Curation\.We draw benign task scenarios from ABCD customer\-service dialogues\([Chen et al\., 2021](https://arxiv.org/html/2611.31424#bib.bib9)\)and Taskmaster\-1 and Taskmaster\-3 task\-oriented dialogues\([Byrne et al\., 2019](https://arxiv.org/html/2611.31424#bib.bib7);[Byrne et al\., 2021](https://arxiv.org/html/2611.31424#bib.bib8)\)\. We preserve the complete source records, select interactions whose original endings leave a task unresolved, and retain source identifiers and utterance spans for provenance\. From these curated tasks, DeepSeek\-V4\-Pro constructs simulated five\-message interactions in Assistant, User, Assistant, User, Assistant order at temperature zero\. The construction input includes the legitimate user goal but excludes the attacker goal, downstream benchmark tasks, payloads, and attack outcomes\. Each interaction is frozen before attack observation\. The attacker knows its fixed goal from the start of observation and uses the read\-only interaction for goal\-aware evidence extraction and selection before constructing one payload; it cannot change earlier turns\. Conversation construction executes no tools and changes no benchmark state\.

Figure 3:Evidence\-category distribution in constructed benign interactions\.
### 4\.2Stage 1: Evidence Extraction

For caseii, the attacker knows the fixed goalgiag\_\{i\}^\{a\}and silently observes an allowed read\-only viewℐi,KA\\mathcal\{I\}\_\{i,K\}^\{A\}of an existing benign interactionτib\\tau\_\{i\}^\{b\}\. Using the observed turns and the attack goal, the extractor identifies candidate evidence items that can be traced to the conversation:

ℰi,K=𝒪A​\(ℐi,KA,gia\),ej=⟨zj,Lj,ρj,tj,πj⟩,\\mathcal\{E\}\_\{i,K\}=\\mathcal\{O\}\_\{A\}\(\\mathcal\{I\}\_\{i,K\}^\{A\},g\_\{i\}^\{a\}\),\\qquad e\_\{j\}=\\langle z\_\{j\},L\_\{j\},\\rho\_\{j\},t\_\{j\},\\pi\_\{j\}\\rangle,\(2\)
Herezjz\_\{j\}is the evidence span,LjL\_\{j\}its category labels,ρj\\rho\_\{j\}the source role,tjt\_\{j\}the turn, andπj\\pi\_\{j\}a pointer to the supporting source span\. Following Figure[2](https://arxiv.org/html/2611.31424#S2.F2), the six verifiable categories areEvents\(occurrences or deadlines\),Operational\(resources or environment conditions\),Preference\(stated priorities or constraints\),Relationship\(people and their roles\),Task Status\(progress, failures, or pending actions\), andGoal\(the benign user’s intended outcome\)\. An item can carry multiple labels, and its Goal label remains distinct from the attack goalgiag\_\{i\}^\{a\}\.

TheEvidence Extracting Policyselects one itemei⋆e\_\{i\}^\{\\star\}withgiag\_\{i\}^\{a\}available throughout\. Figure[2](https://arxiv.org/html/2611.31424#S2.F2)names the three policiesUser Oriented,Neutral, andTask Oriented; their registered condition labels areUser\-Events,Randomized, andTask\-Events, respectively\.

### 4\.3Stage 2: Attack Construction

The generator combines the fixed attack goal, injection contextχi\\chi\_\{i\}, the evidence available under conditionss, and the assigned construction condition into one complete untrusted message:

xi,s=Gattack​\(gia,χi,e~i,s,s\)\.x\_\{i,s\}=G\_\{\\mathrm\{attack\}\}\(g\_\{i\}^\{a\},\\chi\_\{i\},\\widetilde\{e\}\_\{i,s\};s\)\.\(3\)Heree~i,s\\widetilde\{e\}\_\{i,s\}is the selected evidence supplied to conditionss; it is empty in reference cells without benign\-conversation exposure\. Figure[2](https://arxiv.org/html/2611.31424#S2.F2)organizes four conditions by the urgency and priority claimed for the requested action\.Low\-Impactis the reference condition\.Strategicuses the selected evidence to frame the action as important through the message’s rhetorical register\.Time\-Sensitivequotes or faithfully paraphrases the source item to press for prompt action\.Criticalconnects the item to a claimed consequence, responsibility, or repair need, presenting the action as both urgent and important\. The source support of any added relation is recorded separately from the source support of the evidence item\.

### 4\.4Stage 3: Reflection

Reflection examines completed executions to connect attack outcomes with the evidence and construction choices that produced them\. Each record links the victim output and benchmark result to the selected evidence, its category labels, the extraction policy, and the construction condition\. For annotated failures, reflection retains an exact victim quotation when the response states a reason for declining the malicious goal\. The annotation identifies whether the objection addresses the cited evidence, a relation asserted around it, or the requested action, and points back to the corresponding payload and source spans\. Generic refusals, failures without an expressed reason, and the victim’s handling of the benign task are recorded separately\.

## 5Evaluation

Benchmark\.We evaluate on AgentDojo \(Banking, Slack, Travel, Workspace\) and InjecAgent \(Direct Harm, Data Stealing\)\([Debenedetti et al\., 2024](https://arxiv.org/html/2611.31424#bib.bib10);[Zhan et al\., 2024b](https://arxiv.org/html/2611.31424#bib.bib17)\)\. Each case starts from a benign interaction generated independently of the attack goal and frozen before attack construction \(Section[4](https://arxiv.org/html/2611.31424#S4)\)\. The attacker observes the read\-only conversation with its fixed goal, extracts and selects source\-verifiable evidence, and submits one payload at the designated untrusted channel\.

Models\.The evaluated victims are GLM\-5\.1, MiniMax\-M2\.7, DeepSeek\-V4\-Flash, Qwen3\.5\-27B, Qwen3\.6\-35B\-A3B, and Qwen3\-235B\-A22B\-Instruct\-2507\. The method comparison includes Benchmark, AgentVigil, IterInject, Muzzle, ChatInject, and ContextLure\. Conversation preparation is described in Section[4](https://arxiv.org/html/2611.31424#S4); full inference settings appear in the appendix\.

Evaluation Metrics\.Attack success rate \(ASR\) is the percentage of evaluated attacks that satisfy the benchmark’s malicious\-goal predicate\. For AgentDojo, utility under attack \(UA\) measures trusted\-task completion, and joint success rate \(JSR\) measures completion of both goals\. InjecAgent reports ASR\. Low\-Impact is the reference condition for rewriting policy comparisons, and ASR differences are reported in percentage points \(pp\)\.

### 5\.1Benign Evidence Enables Stronger Attacks Without Prior Poisoning

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\.Observing benign conversations strengthens IPI without poisoning earlier turns\.Table[1](https://arxiv.org/html/2611.31424#S5.T1)shows ContextLure achieves the highest ASR across all AgentDojo suites: 74\.7% on Banking \(vs\. Benchmark 52\.3%, \+22\.4 pp\), 40\.8% on Slack \(\+20\.2 pp\), 37\.5% on Travel \(\+17\.5 pp\), and 21\.1% on Workspace \(\+9\.0 pp\)\. Overall ASR rises from 20\.3% to 33\.8% \(\+13\.5 pp\)\. This validates Contribution 1: attackers gain attack leverage from read\-only observation of benign evidence without modifying prior turns\.

Evidence\-conditioned attacks enable data theft and harm\.On InjecAgent, ContextLure reaches 87\.3% Overall and 93\.3% on Data Stealing \(\+46\.5 and \+46\.3 pp vs\. Benchmark\)\. These results confirm benign interaction records support both task redirection \(AgentDojo\) and unauthorized disclosure \(InjecAgent Data Stealing\), demonstrating how locally benign evidence contributes to broader execution\-level consequences \(Contribution 3\)\.

![Refer to caption](https://arxiv.org/html/2611.31424v1/table3_overall_asr_heatmap.png)

\(a\)Methods and models

![Refer to caption](https://arxiv.org/html/2611.31424v1/qwen36_policy_rewriting_asr_heatmap.png)

\(b\)Qwen3\.6\-35B\-A3B

![Refer to caption](https://arxiv.org/html/2611.31424v1/qwen36_policy_rewriting_asr_heatmap_panel_b.png)

\(c\)Qwen3\.6\-35B\-A3B

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\.Attack success generalizes across victim models\.Figure[4](https://arxiv.org/html/2611.31424#S5.F4)\(a\) shows ContextLure achieves the highest ASR across all evaluated victims: GLM\-5\.1 \(11\.2%\), MiniMax\-M2\.7 \(20\.0%\), DeepSeek\-V4\-Flash \(41\.1%\), and Qwen3\.5\-27B \(33\.8%\)\. This generalization confirms the observational threat model applies beyond single\-model vulnerabilities\.

![Refer to caption](https://arxiv.org/html/2611.31424v1/figures/table3_overall_method_comparison.png)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\.Malicious goals succeed alongside trusted tasks\.Figure[5](https://arxiv.org/html/2611.31424#S5.F5)shows JSR rises from 5\.2% \(Benchmark\) to 16\.3% \(ContextLure\) on Qwen3\.5\-27B, while UA drops from 73\.7% to 67\.4%\. More executions complete both goals simultaneously\. On GLM\-5\.1 and MiniMax\-M2\.7, both ASR and UA increase together\. This demonstrates locally benign evidence extends into dependent operations \(Contribution 3\), enabling execution\-level consequences beyond the initial injection point\.

### 5\.2Rewriting Policies Link Evidence to Unauthorized Actions

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\.Time\-Sensitive rewriting bridges evidence to urgent action on AgentDojo\.Figure[6](https://arxiv.org/html/2611.31424#S5.F6)shows Time\-Sensitive yields \+41\.2 pp in Best and \+14\.9 pp in Overall, the largest AgentDojo gains among the three rewriting policies\. Strategic and Critical produce smaller or negative Overall changes \(−1\.4\-1\.4and\+1\.4\+1\.4pp\)\. This confirms rewriting policies shape how victims interpret evidence as reasons for action \(Stage 2, Figure[2](https://arxiv.org/html/2611.31424#S2.F2)\), with urgent framing most effective for task\-redirection attacks\.

All three rewriting policies strengthen InjecAgent attacks\.All rewriting policies produce large InjecAgent gains: Strategic \+38\.7 pp \(Best\) and \+39\.9 pp \(Overall\); Time\-Sensitive \+46\.8 pp \(Best\) and \+44\.4 pp \(Overall\); Critical \+46\.8 pp \(Best\) and \+46\.5 pp \(Overall\)\. These results show evidence\-to\-action bridging succeeds through both urgency \(Time\-Sensitive\) and consequence framing \(Critical\), validating the Urgency/Priority matrix design in Stage 2\.

### 5\.3Evidence Selection and Rewriting Interact to Shape Attack Success

\(a\)Extraction policy and rewriting

![Refer to caption](https://arxiv.org/html/2611.31424v1/encoded_evidence_type_asr.png)

\(b\)Evidence category and rewriting

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\.Evidence Extracting Policy and rewriting jointly determine ASR\.Figure[7](https://arxiv.org/html/2611.31424#S5.F7)\(a\) shows the strongest combination is Task Oriented with Time\-Sensitive on Qwen3\.6\-35B\-A3B \(84\.0% vs\. 16\.8% Low\-Impact, \+67\.2 pp\)\. The same rewriting reaches only 42\.4% with Neutral and 37\.5% with User Oriented\. Under Critical, User Oriented leads at 50\.4%\. On DeepSeek\-V4\-Flash, all nine combinations gain \+19\.0 to \+30\.6 pp, with Neutral \+ Strategic strongest \(\+30\.6 pp\)\. This interaction validates the two\-stage design \(Contribution 2\): selecting useful evidence \(Stage 1\) and presenting it as a reason \(Stage 2\) jointly shape outcomes, and optimal evidence choice depends on how that evidence is framed\.

Evidence categories respond differently to rewriting policies\.Figure[7](https://arxiv.org/html/2611.31424#S5.F7)\(b\) shows Strategic yields highest ASR for five of six evidence categories on DeepSeek\-V4\-Flash: Relationship 73\.3% \(vs\. 40\.0% Low\-Impact\), Preference 56\.2% \(vs\. 12\.5%\), Goal 45\.7% \(vs\. 14\.5%\)\. Task Status favors Critical \(56\.4% vs\. 43\.6% Strategic\)\. This connects the framework’s two challenges—selecting evidence and presenting it—showing Relationship and Preference work best with Strategic framing, while Task Status requires consequence\-based rationale \(Critical\)\. These patterns support source\-linked reflection \(Contribution 2\), mapping attack outcomes to evidence types and rewriting strategies\.

### 5\.4Defenses Reduce but Do Not Eliminate Evidence\-Conditioned Attacks

Figure 8:Evidence and rewriting under AgentDojo defenses\.Panels \(a\) and \(b\) report ASR and UA \(%\), respectively; colors distinguish the four attack conditions\.Combined evidence selection and rewriting produces the strongest undefended attacks\.Figure[8](https://arxiv.org/html/2611.31424#S5.F8)\(a\) shows Evidence \+ Rewriting reaches 44\.6% ASR, exceeding Without Evidence \(38\.0%\), Without Rewriting \(29\.5%\), and Default \(24\.6%\) by \+6\.6, \+15\.1, and \+20\.0 pp\. This confirms both stages contribute: selecting useful evidence and bridging it to action together maximize attack success, demonstrating the framework’s two\-challenge design is necessary\.

Evidence\-conditioned attacks remain effective under both detector and prompt defenses\.Under all five defenses, Evidence \+ Rewriting maintains higher ASR than Default\. PI detector reduces it to 6\.2% \(lowest\), Lakera Guard to 16\.5%, instructional prevention to 19\.4%, user\-instruction repetition to 21\.6%, and data delimiting to 27\.6%\. These residual successes show benign evidence reuse poses risk even when detectors or prompt\-based defenses are deployed, supporting the authorization boundary argument: provenance establishes origin but not permission \(Threat Model, Section 3\)\.

Defense effectiveness trades off with trusted\-task completion\.Figure[8](https://arxiv.org/html/2611.31424#S5.F8)\(b\) shows PI detector combines lowest ASR \(6\.2%\) with highest UA \(28\.2%\) under Evidence \+ Rewriting, reducing attack success by 38\.4 pp while raising task completion by 9\.7 pp\. Other defenses show smaller UA gains\. This validates that blocking evidence\-conditioned attacks without excessive trusted\-task disruption requires recognizing the authorization gap, not just detecting provenance or external content\.

## 6Discussion and Limitations

Responsible evaluation\.Each numerical claim maps to case identifiers, condition registries, valid denominators, and paired\-analysis outputs\. Literature rows remain source\-labeled and are never presented as local reproductions\. The supplement retains confidence intervals, disagreement counts, sampling designs, and full protocols\. Experiments use synthetic or benchmark\-provided interactions and sandboxed actions; we report schematic payloads and aggregate outcomes only\.

Interaction context is an authorization boundary\.Longer benign conversations improve continuity, but they also increase the information available to any component that can observe the session\. Restricting visibility and retention reduces exposure, yet it cannot determine whether a retrieved evidence item justifies a transfer, disclosure, message, or tool call\. We therefore recommend action and goal alignment, least\-privilege tool access, provenance\-aware retrieval, and confirmation checks at execution time; ToolSafe, TaskShield, and CausalArmor motivate complementary parts of this design space[Kim et al\. \(2026\)](https://arxiv.org/html/2611.31424#bib.bib13);[Mou et al\. \(2026\)](https://arxiv.org/html/2611.31424#bib.bib14);[Jia et al\. \(2025\)](https://arxiv.org/html/2611.31424#bib.bib12)\.

Limitations\.Our evaluation uses synthetic, text\-only interactions, which do not capture human conversations, persistent multimodal memory, or web, operating\-system, or stateful tool trajectories\. Completed campaigns use different cohorts, providers, checkpoints, and realization protocols, and unresolved errors are excluded from some denominators; cross\-campaign comparisons are therefore limited, and the factorial cannot fully separate envelope, discourse, and semantic framing\. Although target calls use temperature zero, provider stochasticity and response drift prevent assuming repeated\-run exchangeability\. Because the cutoff and first eligible sink are fixed and cross\-cutoff trials are absent, we cannot estimate optimal ambush time\. policy scores measure provenance, plausibility, and constraint risk, not causal attack effectiveness, so relative evidence utility cannot be inferred without matched downstream attacks and ASR feedback\. The results show behavioral sensitivity but do not identify a unique mechanism\.

## 7Conclusion

ContextLure reframes one\-shot IPI as a context\-observation problem: information available for benign continuity can be selected and repurposed to strengthen a later malicious action\. By separating observation, the Evidence Extracting Policy, and realization, the framework exposes when source\-grounded interaction evidence become adversarial leverage\. The resulting security principle is simple but consequential: provenance can establish where information came from, but only independent action\-level policy can establish permission to act\.

## ETHIC STATEMENT

### Mitigation and defense

We treat mitigation as an authorization problem rather than as a test of whether a recalled evidence item is factually correct\. The recommended defense therefore preserves provenance and trust labels, limits context access, enforces least\-privilege capabilities, validates every side\-effecting tool call against an independently maintained permission record, requires authenticated confirmation for high\-impact actions, and records the decision and executed arguments for audit\. The full mitigation and defense details appear in Appendix[D](https://arxiv.org/html/2611.31424#A4)\. These controls are design recommendations, and the aggregate point estimates in our defense evaluation do not constitute a production\-defense evaluation\. Our study uses synthetic or benchmark\-provided interactions and sandboxed actions, omits directly reusable harmful payloads, and reports aggregate outcomes and sanitized traces for responsible review\.

### AI USE STATEMENT

In this work, we used generative AI tools to assist with research ideation and the implementation of methods for the malicious\-attack component, and to provide critical ingredients for developing the victim\-response reflection analysis\. We used DeepSeek\-V4\-Pro to generate simulated benign user–agent conversations from curated task scenarios for evaluation\. We additionally used generative AI tools to draft and polish portions of the Introduction and summary paragraphs, with an emphasis on clarity and presentation\. The authors reviewed all AI\-assisted work and take responsibility for the final content of this work, including all text, claims, implementations, proofs, and other artifacts produced with the aid of generative AI\.

## REPRODUCIBILITY STATEMENT

The main paper specifies the threat model, ContextLure protocol, evaluation metrics, and claim boundaries\. The appendix gives the complete condition registry, case construction and provenance contracts, error accounting, and additional results\. The anonymous supplementary code/data package contains the implementation, prompts, manifests, analysis scripts, sanitized artifacts, aggregate results, and checksum records needed to audit the reported denominators and metrics\. Public benchmark datasets remain governed by their upstream releases, while generated and sanitized artifacts used in our analyses are included in the package; exact provider\-managed model weights and backend revisions are not redistributed, as documented in the supplement\. Incomplete, diagnostic, and external\-reproduction runs are explicitly marked in the supplementary ledger and are not silently combined with the completed target\-agent results\.

## References

- Byrneet al\.\(2021\)B\. Byrne, K\. Krishnamoorthi, S\. Ganesh, and M\. KaleTicketTalk: Toward Human\-Level Performance with End\-to\-End, Transaction\-Based Dialog Systems\.InProceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing \(Volume 1: Long Papers\),pp\. 671–680\.External Links:[Document](https://dx.doi.org/10.18653/v1/2021.acl-long.55),[Link](https://aclanthology.org/2021.acl-long.55/)Cited by:[§4\.1](https://arxiv.org/html/2611.31424#S4.SS1.p1.1)\.
- Byrneet al\.\(2019\)B\. Byrne, K\. Krishnamoorthi, C\. Sankar, A\. Neelakantan, B\. Goodrich, D\. Duckworth, S\. Yavuz, A\. Dubey, K\. Kim, and A\. CedilnikTaskmaster\-1: Toward a Realistic and Diverse Dialog Dataset\.InProceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing \(EMNLP\-IJCNLP\),pp\. 4516–4525\.External Links:[Document](https://dx.doi.org/10.18653/v1/D19-1459),[Link](https://aclanthology.org/D19-1459/)Cited by:[§4\.1](https://arxiv.org/html/2611.31424#S4.SS1.p1.1)\.
- Changet al\.\(2026\)H\. Chang, Y\. Jun, and H\. LeeChatInject: Abusing chat templates for prompt injection in LLM agents\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=WVhgFSKniL)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p3.1)\.
- Chenet al\.\(2021\)D\. Chen, H\. Chen, Y\. Yang, A\. Lin, and Z\. YuAction\-Based Conversations Dataset: A Corpus for Building More In\-Depth Task\-Oriented Dialogue Systems\.InProceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies,pp\. 3002–3017\.External Links:[Document](https://dx.doi.org/10.18653/v1/2021.naacl-main.239),[Link](https://aclanthology.org/2021.naacl-main.239/)Cited by:[§4\.1](https://arxiv.org/html/2611.31424#S4.SS1.p1.1)\.
- Chenet al\.\(2026a\)X\. Chen, J\. Zhang, and F\. TramèrLearning to Inject: Automated Prompt Injection via Reinforcement Learning\.External Links:2602\.05746,[Link](https://arxiv.org/abs/2602.05746)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p3.1),[§2](https://arxiv.org/html/2611.31424#S2.p2.1)\.
- Chenet al\.\(2025\)Y\. Chen, H\. Li, Y\. Li, Y\. Liu, Y\. Song, and B\. HooiTopicAttack: an indirect prompt injection attack via topic transition\.InProceedings of the 2025 Conference on Empirical Methods in Natural Language Processing,pp\. 7327–7345\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.emnlp-main.372),[Link](https://aclanthology.org/2025.emnlp-main.372/)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p3.1)\.
- Chenet al\.\(2026b\)Z\. Chen, J\. Chen, L\. Luo, K\. Xu, X\. Huang, T\. Sun, and X\. JiangIterInject: Indirect prompt injection against LLM agents via feedback\-guided iterative optimization\.Note:Submitted to EMNLP 2026External Links:2605\.24659,[Document](https://dx.doi.org/10.48550/arXiv.2605.24659),[Link](https://arxiv.org/abs/2605.24659)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p3.1),[§2](https://arxiv.org/html/2611.31424#S2.p2.1)\.
- Debenedettiet al\.\(2024\)E\. Debenedetti, J\. Zhang, M\. Balunovic, L\. Beurer\-Kellner, M\. Fischer, and F\. TramèrAgentDojo: A dynamic environment to evaluate prompt injection attacks and defenses for LLM agents\.InAdvances in Neural Information Processing Systems 37: Annual Conference on Neural Information Processing Systems, NeurIPS 2024, Datasets and Benchmarks Track,External Links:[Link](https://openreview.net/forum?id=m1YYAQjO3w)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p1.1),[§2](https://arxiv.org/html/2611.31424#S2.p1.1),[§5](https://arxiv.org/html/2611.31424#S5.p1.1)\.
- Denget al\.\(2025\)Z\. Deng, Z\. Shen, L\. Li, Y\. Zhou, Z\. Zhu, Y\. He, W\. Wang, and J\. WeiLM\-mixup: text data augmentation via language model based mixup\.Note:arXiv preprintarXiv:2510\.20449 \[cs\.CL\], version 1External Links:2510\.20449,[Link](https://arxiv.org/abs/2510.20449v1)Cited by:[§2](https://arxiv.org/html/2611.31424#S2.p4.1)\.
- Greshakeet al\.\(2023\)K\. Greshake, S\. Abdelnabi, S\. Mishra, C\. Endres, T\. Holz, and M\. FritzNot what you’ve signed up for: Compromising real\-world LLM\-integrated applications with indirect prompt injection\.InProceedings of the 16th ACM Workshop on Artificial Intelligence and Security,pp\. 79–90\.External Links:[Document](https://dx.doi.org/10.1145/3605764.3623985),[Link](https://arxiv.org/abs/2302.12173)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p1.1),[§1](https://arxiv.org/html/2611.31424#S1.p3.1),[§2](https://arxiv.org/html/2611.31424#S2.p1.1)\.
- Houet al\.\(2026\)S\. Hou, X\. Hou, Z\. Zhang, Z\. Wang, X\. Ren, S\. Qin, K\. Khysru, and Q\. GuoToward metacognitive one\-shot indirect prompt injection: strategy abstraction via outcome\-conditioned reflection\.arXiv preprint arXiv:2608\.08795\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2608.08795),[Link](https://arxiv.org/abs/2608.08795)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p3.1),[§2](https://arxiv.org/html/2611.31424#S2.p2.1)\.
- Jiaet al\.\(2025\)F\. Jia, T\. Wu, X\. Qin, and A\. SquicciariniThe Task Shield: Enforcing Task Alignment to Defend Against Indirect Prompt Injection in LLM Agents\.InProceedings of the 63rd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 29680–29697\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.acl-long.1435),[Link](https://aclanthology.org/2025.acl-long.1435/)Cited by:[§6](https://arxiv.org/html/2611.31424#S6.p2.1)\.
- Kimet al\.\(2026\)M\. Kim, M\. Parmar, P\. Wallis, L\. Miculicich, K\. Jung, K\. D\. Dvijotham, L\. T\. Le, and T\. PfisterCausalArmor: Efficient indirect prompt injection guardrails via causal attribution\.Note:arXiv preprintExternal Links:2602\.07918,[Link](https://openreview.net/forum?id=fE4urn9hyM)Cited by:[§6](https://arxiv.org/html/2611.31424#S6.p2.1)\.
- Liuet al\.\(2025a\)X\. Liu, Y\. Liu, S\. Wang, H\. Cheng, A\. Estornell, Y\. Zhao, and J\. WeiAgenticMath: enhancing LLM reasoning via agentic\-based math data generation\.Note:arXiv preprintarXiv:2510\.19361 \[cs\.CL\], version 1External Links:2510\.19361,[Link](https://arxiv.org/abs/2510.19361v1)Cited by:[§2](https://arxiv.org/html/2611.31424#S2.p4.1)\.
- Liuet al\.\(2025b\)X\. Liu, P\. Li, G\. E\. Suh, Y\. Vorobeychik, Z\. Mao, S\. Jha, P\. McDaniel, H\. Sun, B\. Li, and C\. XiaoAutoDAN\-Turbo: a lifelong agent for strategy self\-exploration to jailbreak LLMs\.InThe Thirteenth International Conference on Learning Representations,External Links:[Link](https://mlanthology.org/iclr/2025/liu2025iclr-autodanturbo/)Cited by:[§2](https://arxiv.org/html/2611.31424#S2.p2.1)\.
- Maoet al\.\(2025\)R\. Mao, Y\. Shi, X\. Gu, and J\. WeiRobust preference alignment via directional neighborhood consensus\.Note:arXiv preprintarXiv:2510\.20498 \[cs\.CL\], version 1External Links:2510\.20498,[Link](https://arxiv.org/abs/2510.20498v1)Cited by:[§2](https://arxiv.org/html/2611.31424#S2.p4.1)\.
- Mouet al\.\(2026\)Y\. Mou, Z\. Xue, L\. Li, P\. Liu, S\. Zhang, W\. Ye, and J\. ShaoToolSafe: Enhancing tool invocation safety of LLM\-based agents via proactive step\-level guardrail and feedback\.InFindings of the Association for Computational Linguistics: ACL 2026,pp\. 37125–37153\.External Links:[Document](https://dx.doi.org/10.18653/v1/2026.findings-acl.1850),[Link](https://aclanthology.org/2026.findings-acl.1850/)Cited by:[§6](https://arxiv.org/html/2611.31424#S6.p2.1)\.
- Panget al\.\(2025a\)J\. Pang, N\. Di, Z\. Zhu, J\. Wei, H\. Cheng, C\. Qian, and Y\. LiuToken cleaning: fine\-grained data selection for LLM supervised fine\-tuning\.InProceedings of the 42nd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.267,pp\. 47837–47858\.External Links:[Link](https://proceedings.mlr.press/v267/pang25a.html)Cited by:[§2](https://arxiv.org/html/2611.31424#S2.p4.1)\.
- Panget al\.\(2025b\)J\. Pang, J\. Wei, A\. P\. Shah, Z\. Zhu, Y\. Wang, C\. Qian, Y\. Liu, Y\. Bao, and W\. WeiImproving data efficiency via curating LLM\-driven rating systems\.InThe Thirteenth International Conference on Learning Representations,External Links:[Link](https://proceedings.iclr.cc/paper_files/paper/2025/hash/faa6144674bce872365874c576b4f56f-Abstract-Conference.html)Cited by:[§2](https://arxiv.org/html/2611.31424#S2.p4.1)\.
- Salamaet al\.\(2025\)R\. Salama, J\. Cai, M\. Yuan, A\. Currey, M\. Sunkara, Y\. Zhang, and Y\. BenajibaMemInsight: autonomous memory augmentation for LLM agents\.InProceedings of the 2025 Conference on Empirical Methods in Natural Language Processing,pp\. 33136–33152\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.emnlp-main.1683),[Link](https://aclanthology.org/2025.emnlp-main.1683/)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p1.1),[§3](https://arxiv.org/html/2611.31424#S3.p1.1)\.
- Wallaceet al\.\(2024\)E\. Wallace, K\. Xiao, R\. Leike, L\. Weng, J\. Heidecke, and A\. BeutelThe instruction hierarchy: training LLMs to prioritize privileged instructions\.External Links:2404\.13208,[Link](https://arxiv.org/abs/2404.13208)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p1.1)\.
- Wanget al\.\(2025\)Z\. Wang, V\. Siu, Z\. Ye, T\. Shi, Y\. Nie, X\. Zhao, C\. Wang, W\. Guo, and D\. SongAGENTVIGIL: Automatic Black\-Box Red\-teaming for Indirect Prompt Injection against LLM Agents\.InFindings of the Association for Computational Linguistics: EMNLP 2025,pp\. 23159–23172\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.findings-emnlp.1258),[Link](https://aclanthology.org/2025.findings-emnlp.1258/)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p3.1),[§2](https://arxiv.org/html/2611.31424#S2.p2.1)\.
- Yanget al\.\(2025\)Z\. Yang, L\. Li, N\. Di, J\. Pang, Y\. Zhou, H\. Cheng, B\. Han, and J\. WeiENTP: enhancing low\-quality SFT data via neural\-symbolic text purge\-mix\.Note:arXiv preprintarXiv:2510\.23160 \[cs\.CL\], version 1External Links:2510\.23160,[Link](https://arxiv.org/abs/2510.23160v1)Cited by:[§2](https://arxiv.org/html/2611.31424#S2.p4.1)\.
- Zhanet al\.\(2024a\)Q\. Zhan, Z\. Liang, Z\. Ying, and D\. KangInjecAgent: benchmarking indirect prompt injections in tool\-integrated large language model agents\.InFindings of the Association for Computational Linguistics: ACL 2024,pp\. 10471–10506\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.findings-acl.624),[Link](https://aclanthology.org/2024.findings-acl.624/)Cited by:[§1](https://arxiv.org/html/2611.31424#S1.p1.1)\.
- Zhanet al\.\(2024b\)Q\. Zhan, Z\. Liang, Z\. Ying, and D\. KangInjecAgent: Benchmarking indirect prompt injections in tool\-integrated large language model agents\.InFindings of the Association for Computational Linguistics: ACL 2024,pp\. 10471–10506\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.findings-acl.624),[Link](https://aclanthology.org/2024.findings-acl.624/)Cited by:[§2](https://arxiv.org/html/2611.31424#S2.p1.1),[§5](https://arxiv.org/html/2611.31424#S5.p1.1)\.

## Appendix AExperimental Setup Details

### A\.1Benign interaction preparation

The evaluation uses the Banking, Slack, Travel, and Workspace suites of AgentDojo and the Direct Harm and Data Stealing suites of InjecAgent\. Benign task scenarios are drawn from ABCD customer\-service dialogues and Taskmaster\-1 and Taskmaster\-3 task\-oriented dialogues, as described in the main Method section\. We preserve source identifiers and utterance spans, choose interactions whose original task is unresolved, and construct a five\-message Assistant, User, Assistant, User, Assistant exchange with DeepSeek\-V4\-Pro at temperature zero\. Conversation construction receives the legitimate task but not the attacker goal, benchmark attack, payload, or outcome\. The resulting interaction is frozen before the attacker sees it and does not execute tools or alter benchmark state\.

### A\.2Victims, injection, and outcome accounting

The evaluated victim set is GLM\-5\.1, MiniMax\-M2\.7, DeepSeek\-V4\-Flash, Qwen3\.5\-27B, Qwen3\.6\-35B\-A3B, and Qwen3\-235B\-A22B\-Instruct\-2507\. Target calls use temperature zero\. The main paper’s model comparison displays the first four victims; its policy interaction figure displays Qwen3\.6\-35B\-A3B and DeepSeek\-V4\-Flash\. These are different result slices and must not be read as a single pooled six\-model estimate\.

For each evaluated condition, the attacker receives its fixed malicious goal before read\-only observation of the frozen benign interaction\. It extracts source\-verifiable candidate evidence, selects an item, and constructs one complete payload for the designated untrusted benchmark channel\. Earlier turns, the legitimate task, and the benchmark success predicate remain outside attacker control\. The evaluation record associates the goal, selected source span, policy and rewriting labels, injected message, victim output, tool trace, and benchmark outcome\. An unavailable or invalid evaluation is recorded separately from a valid success or failure\.

Attack success rate \(ASR\) is the fraction of evaluated attacks satisfying the benchmark’s malicious\-goal predicate\. AgentDojo also reports utility under attack \(UA\), completion of the trusted task, and joint success rate \(JSR\), completion of both goals\. InjecAgent reports ASR for Direct Harm and Data Stealing\. In the main comparison table, each AgentDojo entry is ordered ASR, UA, JSR; InjecAgent entries contain ASR only\. An Overall value belongs to the benchmark and model scope indicated by its table or figure\. Percentage\-point changes compare ASR values within a stated matched result block\.

## Appendix BEvidence Extraction and Attack Construction

### B\.1Source\-linked evidence

For caseii, the attacker knowsgiag\_\{i\}^\{a\}while observing the permitted read\-only interactionℐi,KA\\mathcal\{I\}\_\{i,K\}^\{A\}\. The extractor returns candidates with a source span, one or more category labels, source role, source turn, and a pointer to the supporting words:

ℰi,K=𝒪A​\(ℐi,KA,gia\),ej=⟨zj,Lj,ρj,tj,πj⟩\.\\mathcal\{E\}\_\{i,K\}=\\mathcal\{O\}\_\{A\}\(\\mathcal\{I\}\_\{i,K\}^\{A\},g\_\{i\}^\{a\}\),\\qquad e\_\{j\}=\\langle z\_\{j\},L\_\{j\},\\rho\_\{j\},t\_\{j\},\\pi\_\{j\}\\rangle\.\(4\)An item is verifiable when its pointer resolves to an earlier benign turn\. This verifies provenance; authorization for the requested action remains a separate question\. The benign user’s Goal label is distinct from the attack goalgiag\_\{i\}^\{a\}\.

Table 2:The six Stage 1 evidence categories\. A source item may carry multiple labels\.
### B\.2Evidence Extracting Policy

The selector receives the candidate set and the fixed attack goal\. The main Method figure names the three policies User Oriented, Neutral, and Task Oriented\. The registered result labels are User\-Events, Randomized, and Task\-Events, respectively\. Selection keeps the source pointer attached to the chosen item\. The main paper’s ASR heatmap and joint effects figure use these registered labels\.

### B\.3Rewriting policy and reference condition

Stage 2 combines the goal, injection context, selected evidence when available, and assigned condition into one untrusted message:

xi,s=Gattack​\(gia,χi,e~i,s,s\)\.x\_\{i,s\}=G\_\{\\mathrm\{attack\}\}\(g\_\{i\}^\{a\},\\chi\_\{i\},\\widetilde\{e\}\_\{i,s\};s\)\.\(5\)The conditions are Low\-Impact, Strategic, Time\-Sensitive, and Critical\. Low\-Impact is the reference; Strategic frames the requested action as important through rhetorical register; Time\-Sensitive quotes or faithfully paraphrases the evidence to press for prompt action; Critical asserts a consequence, responsibility, or repair need to make the action appear urgent and important\. The evidence item’s source support and the added evidence\-to\-action relation are assessed separately\. The main paper’s matched ASR\-gain figure uses a Low\-Impact reference without benign\-conversation exposure, while the category comparison in the evidence\-group figure includes the selected item in Low\-Impact\. Each figure’s reference is therefore interpreted within its own matched comparison\.

### B\.4Reflection record

After the benchmark execution, reflection links the victim’s output and official outcome to the selected evidence, extraction policy, and rewriting condition\. When a failed attack elicits an explicit reason for declining the malicious goal, the record retains the victim’s words and whether the objection concerns the cited evidence, an asserted relation, or the requested action\. Generic refusals, failures with no stated reason, and handling of the trusted task are separate annotations\. The resulting labels characterize stated objections and observed outcomes; attack success remains determined by the benchmark predicate\.

## Appendix CDetailed Evaluation Results

The supplementary tables below transcribe the current model comparison and plotted result data\. The cross\-benchmark method table in the main paper reports AgentDojo and InjecAgent separately, and the matched rewriting, policy\-interaction, evidence\-group, and defense tables each have their own result populations\. In particular, the six single\-label source groups in the evidence\-category plot are a displayed result grouping; Stage 1 evidence records may have overlapping category labels\. A model\-specific value or a Best stratum is not an estimate over all six victims or all benchmark suites\.

The defense plots report point estimates for four attack conditions across five defenses\. Their supplied data do not include cell\-level denominators or uncertainty intervals, so the appendix does not assign a significance level to their differences\. The matched rewriting comparisons retain the intervals and case counts available in their plot data\. All figures and tables in this appendix use the current names Evidence Extracting Policy and rewriting policy\.

### C\.1Victim\-model outcomes

The main paper’s model comparison figure compares six methods across four displayed victims\. Table[3](https://arxiv.org/html/2611.31424#A3.T3)gives its ASR, UA, and JSR values in the same order as the main method table\. The remaining evaluated victims appear only in the result slices named in the main text\.

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\.
### C\.2Matched rewriting\-policy changes

Table[4](https://arxiv.org/html/2611.31424#A3.T4)retains the case counts, gain/loss counts, and 95% intervals behind the main paper’s matched ASR\-gain figure\. A gain is a case where the named condition succeeds and its Low\-Impact reference fails; a loss is the reverse\. The displayed change is the matched ASR difference in percentage points\.

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\.
### C\.3Evidence Extracting Policy and rewriting

Table[5](https://arxiv.org/html/2611.31424#A3.T5)gives the absolute ASR values underlying the main paper’s policy interaction figure\. Neutral, User Oriented, and Task Oriented are the names used in the Method figure; Randomized, User\-Events, and Task\-Events are their registered result labels\.

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\.The main paper’s evidence\-group figure uses the six displayed single\-label source groups in Table[6](https://arxiv.org/html/2611.31424#A3.T6)\. Its rows are shown under the closest Stage 1 category names for readability; these source groups should not be counted as the complete, potentially overlapping Stage 1 label distribution\.

Table 6:DeepSeek\-V4\-Flash ASR \(%\) for the displayed single\-label source groups in the main paper’s evidence\-group figure\.NNcounts records in each source group; Low\-Impact includes the selected evidence item in this comparison\.
### C\.4Defense outcomes

Table[7](https://arxiv.org/html/2611.31424#A3.T7)reports both panels of the main paper’s defense figure\. The combined Evidence \+ Rewriting condition has the largest ASR without a defense, 44\.6%; PI detector reduces that condition to 6\.2% ASR and reports 28\.2% UA\. These are point estimates from the displayed defense data\.

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\.

## Appendix DMitigation and Defense Details

### D\.1Evaluated defense conditions

The main defense figure compares PI detector and Lakera Guard with instructional prevention, data delimiting, and user\-instruction repetition on AgentDojo\. It crosses each defense with Default, Without Rewriting, Without Evidence, and Evidence \+ Rewriting attack conditions\. Table[7](https://arxiv.org/html/2611.31424#A3.T7)retains the ASR and UA values for every displayed cell\. These comparisons keep the attack condition visible so that a detector’s effect is not inferred from one attack form alone\.

All five defenses lower ASR relative to the corresponding undefended condition\. For Evidence \+ Rewriting, ASR is 44\.6% without a defense, 6\.2% with PI detector, 16\.5% with Lakera Guard, 19\.4% with instructional prevention, 27\.6% with data delimiting, and 21\.6% with user\-instruction repetition\. The same cells report UA of 18\.5%, 28\.2%, 19\.6%, 25\.0%, 23\.0%, and 26\.0%, respectively\. The available figure data report point estimates, with no cell\-level denominators or confidence intervals; the observed ordering is descriptive\.

### D\.2Authorization at the action boundary

The attack uses an earlier benign turn as a premise for a later unauthorized action\. Verifying that a cited event, preference, or failed task occurred does not grant permission for the requested transfer, disclosure, or write\. A practical control should retain the source and trust status of recalled evidence, compare proposed tool arguments with the trusted user’s task and an independently maintained permission record, and request authenticated confirmation for a high\-impact action when that grant is insufficient\. These are application controls proposed from the observed failure mode; they are distinct from the five evaluated defense conditions\.

For example, a source\-linked note that a transfer failed can inform the agent’s explanation of the failure\. It does not authorize changing the beneficiary\. The decision must be made against the trusted task and the proposed tool arguments at the time of execution\. Rechecking each externally visible or state\-changing call also limits propagation from an apparently helpful intermediate step to an unauthorized follow\-up action\. Applications can record the grant, relevant source span, decision, and executed arguments for audit while limiting retention of private conversation content\.

The defense comparisons show that the evaluated detectors and prompt\-based controls reduce but do not eliminate success under Evidence \+ Rewriting\. Testing the proposed authorization controls would require matched cases with those controls implemented and a separate measurement of benign task completion and false blocking\. We do not infer the effectiveness of an untested authorization rule from the existing defense bars\.

Similar Articles

Prompt Injection Attacks Are Thwarting AI Hacking Agents

Wired

Researchers from Tracebit have developed 'context bombing,' a technique that uses prompt injections placed alongside sensitive data to trigger refusal mechanisms in AI hacking agents, significantly reducing the success rate of attacks.

PIPETTE: Prompt Injection Purple-Teaming for Robust LLM Agents

Hugging Face Daily Papers

PIPETTE introduces a unified prompt injection purple-teaming framework using dictionary learning-based rewards and on-policy adversarial training to convert red-teaming discoveries into robust defenses against indirect prompt injection attacks for LLM agents.