arXiv:2611.07640cs.CRNov 2026

Manuscript Offprint

arXiv:2611.07640

Beyond Instruction Override: Benchmarking Indirect Prompt Injection with Task-Tampering Attacks

Rongting Zhang, Martin Bertran, Sandeep Avula, Chia-Jung Lee, Vanessa Murdock

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Indirect prompt-injection (IPI) benchmarks predominantly test planted instructions that redirect a tool-using agent toward an attacker-chosen task. Yet attacker-controlled content can instead tamper with the outcome of the task already in progress. For example, a buyer's dispute evidence can cite a false refund policy to inflate the refund without redirecting the agent away from resolving the dispute. We define IPI by authority rather than instruction-like wording: planted content constitutes an attack when it attempts to influence a decision that its source is not authorized to determine. We introduce a benchmark that makes this boundary explicit: in each of 90 validated cases across three tool-use environments, the user request specifies the source that resolves the targeted decision. Every attack tampers with a decision required by the benign task rather than replacing that task. Each case has attacks with the same harmful outcome that target up to six parts of the agent's decision making: its objective, decision rules, available actions, expected consequences, reading of observations, or beliefs about the current state. Without a defense, attacks on three of the five other targets (decision rules, available actions, and state) have higher mean success than objective attacks across five LLMs. A detection-and-removal defense reduces objective-targeting attacks to 2.4% success but leaves observation- and state-targeting attacks at 9.5% and 12.1%; this gap persists under detection-optimized rewrites. A tool-policy defense still allows 15.4% attack success, close to 17.0% without a defense, because these attacks generally retain expected tools and manipulate values obtained during execution. Evaluations whose attacks redirect the task or target only the agent's objective can therefore overestimate the coverage of these defenses. Code and data are available at https://github.com/amazon-science/task-tampering-prompt-injection.

1 INTRODUCTION

LLM-based agents are increasingly deployed in enterprise workflows where they read third-party content (emails, repository files, dispute evidence, invoices) and call tools with real-world side effects (Yao et al., 2023). Indirect prompt injection (IPI), ranked the top vulnerability for LLM applications by OWASP (OWASP Foundation, 2025), occurs when adversarial content in data the agent retrieves causes it to act contrary to the user's intent (Greshake et al., 2023).

Existing IPI benchmarks have expanded from single-generation applications to stateful and dynamic tool-using agents (Yi et al., 2025; Zhan et al., 2024; Debenedetti et al., 2024; Li et al., 2026b). Across these settings, however, evaluated attacks remain predominantly attacker-authored instructions that redirect the agent to an attacker-chosen task. Defenses evaluated on these benchmarks therefore face primarily instruction-bearing, redirecting attacks.

Instruction-like wording cannot itself define the security boundary. Useful external content may contain instructions that an agent must follow, especially when execution depends on information

*Correspondence to: rongtz@amazon.com. †Work done while at Amazon; now at Microsoft. ‡Work done while at Amazon.

discovered at runtime (Li et al., 2026b). Siu et al. (2026) frame instruction injection as following a command from a source unauthorized to issue it. We argue that this authority boundary should extend beyond commands: an unauthorized source can steer a decision by asserting a false state, rule, consequence, capability, or interpretation. External content constitutes IPI when it attempts to influence a decision that its source is not authorized to determine. A false claim about a subject that the source is authorized to determine is instead misinformation and ordinarily requires independent evidence to detect. Neither linguistic form nor relevance to the task establishes authority by itself. Because the boundary is set by the decision, an attack also need not bring a task of its own: an environment participant, such as a vendor or buyer, can tamper with the task in progress by setting a wrong amount, recipient, or message in a call the task already requires.

This distinction matters for defenses. Methods that mark external text or train the model to separate instructions from data may still accept a task-relevant claim as evidence (Hines et al., 2024; Wallace et al., 2024; Chen et al., 2025a;b), and injection detectors may lose the instruction-like or off-task signals they rely on (Li et al., 2025b; Shi et al., 2025b). Plan and policy defenses constrain calls whose tools and arguments follow from the request, but a tampered call uses a tool the task needs, and its consequential values are resolved at runtime from retrieved content (Li et al., 2025a; Shi et al., 2025a), so it can pass these checks. Evaluating only instruction-bearing, redirecting attacks can therefore overstate robustness.

To measure this gap, we use environment-aware case construction. Each case places attacker-controlled content that is relevant to the benign task in a source the agent must process, identifies a decision that source is not authorized to determine, and provides an agent-visible basis for resolving the conflict. Holding the benign task, attacker role, targeted decision, and harmful outcome fixed within each case, single-primitive attacks vary the belief in the agent's decision process that the planted content directly targets. This influence-primitive decomposition provides a systematic construction method for attacks beyond direct objective manipulation (§4.2). We apply it to 90 validated cases across productivity, DevOps, and marketplace environments, each with a compound attack and single-primitive attacks for up to six primitives. Every case targets task tampering: the attack generally corrupts an action the task requires by changing a structured field such as an amount or access level, or free-form content such as an email body or resolution note.