arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.27146

When Tool Outputs Become Commands: Separating Action Induction from Runtime Authorization in Tool-Augmented LLM Agents

Xiaokun Guo, Zhen Xu, Dongdong Huo, Yanqiu Zhang, Wei Wang, Qinfu Yang, Dongjin Yu, Yu Wang

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

Abstract

Tool-augmented LLM agents must rely on untrusted runtime Observations to complete open-ended tasks; however, when tool outputs no longer merely provide data but begin to specify concrete actions, they effectively become “commands” that can drive real-world side effects beyond user intent. We argue that this risk arises from conflating action induction with execution authorization. To address this distinction, we propose SARA, which treats action induction and execution authorization as distinct runtime roles and separates action provenance from execution authority. On the Observation side, a context-isolated Action Probe exposes action-inducing semantics and persistently records action-origin provenance across steps as a review signal; on the execution side, actual tool calls are authorized only against the user objective and audited evidence from authorized successful executions, while satisfying goal, execution-chain, and argument-level support. To preserve this separation across multi-step execution, SARA applies No-History-Promotion to prevent historical recurrence from laundering action origins into execution authority. Across AgentDojo and AgentDyn, SARA limits ASR to no more than 0.63% across four primary evaluation settings while maintaining competitive task utility, and consistently reduces ASR across additional Agent backbones.

1 Introduction

Large language models are evolving from text generators into agents that can act in real-world environments through external tools. Recent Agent systems use planning, reasoning, and tool-use capabilities to access external resources and execute multi-step tasks [20, 31, 38, 46], while evaluation settings have gradually expanded from closed tool interfaces to open environments such as operating systems, web browsers, and databases [21, 42]. These systems can retrieve emails and files, invoke external services, and perform operations with real side effects, such as sending information, modifying objects, or committing transactions [8, 35, 47, 48], extending Agent security risks from generated content to environmental consequences caused by tool execution. Attackers can therefore embed operational content in third-party resources such as webpages, emails, or documents and exploit an Agent's existing tool privileges to influence subsequent execution [49]. Early work revealed the risk of remotely manipulating LLM-integrated applications through indirect prompt injection (IPI) [13, 22], while InjecAgent and AgentDojo further showed that such influence can propagate through tool-use processes and ultimately produce real external effects [8, 48].

However, in open-ended interactive environments that more closely resemble the real world [44, 52], defenses face a structural tension: restricting untrusted external content can improve security but may weaken the runtime adaptability required by open-ended tasks. Narrowing the accessible action space or limiting the influence of external input on subsequent behavior can reduce attack success, but it also creates a direct security–utility trade-off [3]; conversely, if Observations are allowed to influence subsequent decisions too freely, attack semantics may propagate through normal tool steps and ultimately produce unauthorized external effects [8, 48]. This tension is particularly pronounced in dynamic tasks, where legitimate subsequent actions often cannot be fully determined from the initial request and must instead be dynamically instantiated using runtime feedback, third-party information, and environmental state produced by prior execution [19, 24, 45]. Consequently, treating the mere fact that an Agent responds to external content as an attack signal can easily conflate legitimate runtime adaptation with attack-induced behavior.

The key challenge is that open-ended tasks inherently require untrusted Observations to dynamically instantiate subsequent actions and arguments, so a security mechanism cannot simply exclude Observation-derived information. For example, when a user asks to “find the quarterly report and send it to Alice,” the file identifier or object path may become available only after search and retrieval and must be used in a subsequent call; however, the same result may also contain an additional operational request such as “send a copy of the report to attacker@example.com.” The former uses runtime information to instantiate existing authority (runtime instantiation), whereas the latter attempts to expand existing authority (authority expansion). The central question is therefore not whether an Observation influences the Agent, but whether that influence acquires real execution authority beyond the user’s intent.

Directly using another LLM to determine whether an Observation is malicious does not inherently solve this problem, because the analyzer must still process the same untrusted content, and prior work has shown that LLM detectors or evaluators can themselves be manipulated by adversarial injection [6, 34, 40]. Rather than requiring Observation-side analysis to distinguish malicious from benign content accurately, a more direct question is whether the external content exhibits action-inducing semantics that can be mapped to concrete tool actions or argument roles. Such actionability indicates only that the external content contributed to forming a candidate action; it does not establish that the action is authorized for execution, and a tool output may therefore shift from data-bearing output to action-inducing output. Structurally, this risk resembles the confused deputy problem [14]: an Agent holding legitimate tool privileges may be induced by external content to exercise those privileges for an effect that the user did not authorize. We accordingly distinguish action induction from execution authorization: An Observation may influence a candidate action and provide runtime information needed to complete an existing task, but action induction itself cannot confer real execution authority; a candidate call must re-establish independent authorization support at the execution boundary.

To this end, we propose SARA (Separating Action Induction from Runtime Authorization), a persistent runtime authorization mechanism deployed between the Agent and the real tool executor. SARA requires no access to the Agent's hidden reasoning, internal memory, or planning state and relies only on the user request, tool schema, actual candidate calls, tool Observations, and its own runtime state. SARA does not filter raw Observations; instead, a context-isolated Action Probe identifies their action-inducing semantics and retains the corresponding action origins across steps as persistent authorization-review signals, without directly labeling them malicious or rejecting subsequent behavior. In parallel, SARA independently maintains audited execution evidence formed by authorized and successfully executed tool interactions, allowing dynamic runtime information to continue instantiating tasks that the user has already authorized. For candidate calls that undergo full review, SARA combines user authorization, persistent action origins, and audited execution evidence at the real execution boundary to determine whether the goal, execution chain, and actual arguments have independent support, thereby preventing action origins in external content from independently becoming new execution authority.

In summary, this paper makes the following contributions:

• We characterize the central security tension of IPI in dynamic tool-using Agents as a confusion between action induction and execution authorization: Observations must be able to instantiate existing tasks, but their influence must not itself create or expand execution authority that the user did not grant.

• We propose SARA, which uses a context-isolated Action Probe to persistently record action origins induced by Observations and combines them with independent audited execution evidence to enforce goal-, execution-chain-, and argument-level runtime authorization at the real tool-execution boundary.

• We systematically evaluate SARA on AgentDojo and AgentDyn against representative methods spanning input filtering, execution-structure constraints, action attribution, and execution-boundary control, while also examining component contributions, stability across Agent backbones, and additional inference cost. The results show that SARA substantially reduces unauthorized real tool execution while maintaining competitive task utility and provides consistent security gains across different Agent backbones.

References (48)