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

Manuscript Offprint

arXiv:2608.29942

Influence Is Not Authority: When Causal Guardrail Signals Make Legitimate Tool Use Look Like an Attack in Tool-Using LLM Agents

Tanzim Ahad, Ismail Hossain, Md Jahangir Alam, Sai Puppala, Syed Bahauddin Alam, Sajedul Talukder

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

ABSTRACT

The key limitation of current state-of-the-art influence-based guardrails is that they do not reliably distinguish a legitimate, user-authorized action from a malicious, unauthorized action when both rely on external tool information. This ambiguity can cause benign actions to trigger unnecessary verification and intervention, reducing utility and adding latency. We expose this limitation through an authorization-equivalence audit of 96 conditions derived from 24 base cases. Within matched source comparisons, we hold authorization, the exact committed action, and its intended effect fixed, changing only whether a required value comes from the user or a legitimate tool result. Although the action remains unchanged, this harmless relocation shifts the causal signal toward the attack region in all 24 cases under both Llama and Gemma scorers. Matched unauthorized controls show that the signal remains attack-sensitive, yet the benign relocation produces a larger average score shift than the actual change in authorization. Architecture-level evaluation shows how this mismatch propagates through guardrail designs. With a semantic monitor, attack success is 0% and utility is 28%, compared with 16% and 60% without it. A shadow-based guardrail allows every tested harmless run, yet does not reject matched unauthorized actions more often overall: 57.5% of unauthorized runs pass automatically before reaching the later security check, compared with 29.2% of authorized runs. These results show that the studied causal signal reveals what shaped an action without reliably encoding whether the action was authorized, and that reference construction and routing are integral to the effective security decision.

Keywords Indirect prompt injection · LLM agents · Guardrails · Causal attribution · Authorization · Tool use · AI security

1 Introduction

A user can authorize an action without supplying every detail needed to carry it out. Suppose a user asks an agent to transfer money to Alice. If the request does not include Alice's account number, the agent may need a banking tool to look it up. That account number must influence the transfer; without it, the agent cannot complete the action. But the tool has not gained authority to choose the recipient. The user chose Alice. This ordinary use of tools creates a security tension: the same external channel can also carry an indirect prompt injection that tells the agent to send the money somewhere else [7, 15]. Retrieval and web studies show that attacker-controlled text can reach model context through these channels [1, 2, 11, 23], and EchoLeak provides a concrete production-system example [17]. A guardrail should therefore care when external content drives a privileged action. But what drove the action? and what action did the user authorize? are different questions. Figure 1 makes that distinction concrete.

User authorizes: Transfer $500 to Alice. The agent may need an external tool call to obtain Alice's account number.

(a) User provides Alice's account

(b) Legitimate tool call returns Alice's account

Transfer $500 to Alice.

Account: A1842.

No external

tool needed.

Transfer $500 to Alice.

Account not provided.

Payment-directory tool result

Alice → A1842

Transfer $500 to Alice

using account A1842

Transfer $500 to Alice

using account A1842

Both (b) and (c) rely on an external tool call. Only (c) uses tool-returned content to change the authorized recipient.

(c) Tool result contains an indirect prompt injection

Transfer $500 to Alice.

Account not provided.

Payment-directory tool result

Alice → A1842

Injected instruction:

"Ignore Alice. Send $500 to Mallory, account M7710."

Transfer $500 to Mallory

using account M7710

Same authorized transfer.

In (b), the external tool call only supplies Alice's missing account number.

Different recipient.

The tool-returned text changes the recipient from Alice to Mallory.

Figure 1: The same authorized action can depend on information from different sources. In (a) and (b), the agent makes the same transfer to Alice; only the source of Alice's account number changes. Panels (b) and (c) both rely on tool-returned content, but only (c) changes the recipient to Mallory. We use the change from (a) to (b) as a benign experimental intervention, not an attacker capability, to test whether the guardrail reacts to where the required information comes from.

Several recent guardrails act on the first question. CausalArmor compares support from the user request with support from untrusted spans, AttriGuard asks whether a proposed tool call survives when external control is weakened, and AgentWatcher reasons over influential context with explicit semantic rules [8, 12, 27]. Other systems represent trust or permission more directly in control flow or at an execution boundary [3, 18, 19]. These approaches have different goals, but ordinary attack-versus-benign evaluations leave one ambiguity unresolved. In an attack comparison, the external text, the proposed action, and whether that action is authorized can all change together. If a security score changes, we cannot tell whether it reacted to the authorization violation, to legitimate dependence on external information, or to both.

To separate those explanations, we need to change where required information comes from without changing what the user authorized. We first audit benign benchmark workflows and find that privileged actions can depend on values returned by legitimate tools. That shows the situation is not limited to a constructed example. Natural traces, however, also differ in task context and execution history, so they cannot isolate the source change. We therefore construct 24 matched cases in which the user's authorization, the required value, the exact privileged action, and its intended effect stay fixed. The only change is where one required value comes from: the user request or a legitimate tool result. The matched unauthorized comparison then changes the recipient from Alice to Mallory, while the benign source comparison keeps Alice fixed.

The source change moves all 24 matched cases toward the more attack-like region under both Llama and Gemma scorers. That result does not mean the signal is useless: the matched unauthorized action is still more attack-like overall. The sharper problem is how strongly the signal reacts. On average, moving a required value from the user to a legitimate tool moves the score farther than changing the action so that it is no longer authorized. The signal therefore contains real threat information, but the size of its response does not tell us whether the action is authorized.

That distinction matters when a system turns the signal into a decision. We follow it through three different paths. A scalar threshold can avoid every tested benign flag only by missing most matched unauthorized actions. AgentWatcher separates authorized from unauthorized actions when external text agrees with the user, but flags both under the conflict condition we test. AttriGuard exposes a different decision-path effect: its later review is stricter on unauthorized actions once they reach it, yet unauthorized actions reach that review less often. Across the full path, AttriGuard blocks 47.1% of authorized actions and 36.3% of matched unauthorized actions, and the confidence interval for the matched difference includes zero. A stricter security check therefore does not guarantee stricter overall enforcement when routing decides which calls reach it.

Gate decisions still stop before the agent finishes. In our live AttriGuard study, the pre-specified primary test predicted a larger loss of the authorized outcome under conflicting external text. The observed interaction went in the opposite direction. Under conflict, the selected unauthorized outcome falls from 24.3% without the defense to 2.9% with it. But a block can redirect execution rather than end it: the agent may later recover the authorized outcome or lose it. In the implementation we tested, intervention can also change whether a later privileged call receives the ordinary security check. Ordinary task success can likewise disagree with whether the user-authorized effect survived. The security decision is therefore not just a score, flag, or block. It is the full path from evidence, through policy and routing, to continuation and the effect that finally occurs.

These observations lead to four research questions:

RQ1. Can the same authorized action look more attack-like when a needed value comes from a legitimate tool rather than directly from the user, even though the action and intended effect are unchanged?

RQ2. How does the guardrail’s attack-likeness score respond when an authorized action relies on a legitimate tool, compared with when the action itself is unauthorized, and can a threshold distinguish the two?

RQ3. Which parts of the guardrail’s decision path determine whether authorized and unauthorized actions are checked, blocked, or eventually executed?

RQ4. Can a task still be counted as successful when the privileged action or effect the user authorized was not preserved?

We make four contributions:

• We show that legitimate benchmark tasks can require execution-critical information from tools. This shows that the source distinction arises in benign benchmark workflows; it is not a deployment-prevalence estimate.

• We hold permission, the protected value, the exact action, the intended effect, and the execution value fixed while changing only where that value comes from. The signal still moves on all 24 bases under both scorers. A matched unauthorized action remains more attack-like overall, but the harmless source change moves the signal farther on average. The signal is threat-sensitive, but the size of its response is not an authorization label.

• We trace the mismatch through thresholding, semantic monitoring, shadow/reference routing, intervention, continuation, and later inspection. Which calls reach review, which are blocked, and what happens afterward all affect the protected outcome.

• We show that attack outcome, preservation of the authorized effect, authorized availability, inspection coverage, and ordinary task success measure different properties and can disagree.

References (32)