From Denial to Detour: How Recovery Hints Enable Authorization Bypass in LLM Agents

Lian, Zhuotao, Tsai, Ming-Feng, Morikawa, Tomohiro, Fan, Chun-I, Su, Chunhua

–arXiv.org Artificial Intelligence 

Abstractchecks each call against a policy before the call is executed and refuses it when necessary. Coding agents let administra-To make LLM agents more reliable, tool developers often tell the agent what to do next in their error messages, for exampletors block commands by pattern [3,10], and agent frameworks by suggesting another tool. We show that this practice createsprovide guardrails that inspect each call [14]. In the three agent hosts we examined, aself is simple. The host does not execute the call. Instead, it host-issued denial reaches the model as tool-result text, in thewrites a denial text and returns it to the model as the result same form as a tool error and without a separate denial marker. of the call. To the model, this result is the same kind of message as a tool output or a tool error, and only the text tellsWhen a recovery hint appears next to the denial, the agent can follow it, complete the denied action with another toolthem apart (Figure 2). The text itself usually says that the and tell the user that the task succeeded. In our main study, it even states that the call authorization bypass needs no attacker, and every executedwas denied by the host policy (Section 4.1). The agent is told call is allowed on its own. In controlled experiments on 43 explicitly that the call was denied. What matters is what it scenarios and nine models (23,056 runs), agents largely telldoes next. Current guidance asks them to tell the agent 100%, including on high-risk actions such as disabling multi-what to do next [2], and naming another tool does improve factor authentication. We reproduce the bypass in a real agentrecovery [1, 22]. Such a hint is written for a broken tool. It stack built on the OpenAI Agents SDK and the official MCPaims at completing the task and does not consider whether filesystem server. For denials that the host issues, the host canthe failure came from authorization.