From Denial to Detour: How Recovery Hints Enable Authorization Bypass in LLM Agents
Zhuotao Lian, Ming-Feng Tsai, Tomohiro Morikawa, Chun-I Fan, Chunhua Su
Abstract
To make LLM agents more reliable, tool developers often tell the agent what to do next in their error messages, for example by suggesting another tool. We show that this practice creates a security problem. In the three agent hosts we examined, a host-issued denial reaches the model as tool-result text, in the same form as a tool error and without a separate denial marker. When a recovery hint appears next to the denial, the agent can follow it, complete the denied action with another tool and tell the user that the task succeeded. This hint-induced authorization bypass needs no attacker, and every executed call is allowed on its own. In controlled experiments on 43 scenarios and nine models (23,056 runs), agents largely tell a denial from a fault without a hint, but one hint sentence raises the bypass rate of seven models from 3-30% to 46-100%, including on high-risk actions such as disabling multi-factor authentication. We reproduce the bypass in a real agent stack built on the OpenAI Agents SDK and the official MCP filesystem server. For denials that the host issues, the host can tell a denial from a fault, which the agent cannot always do, so we focus on host-side defenses. On four models, removing the hint only from denials lowers the high-risk bypass rate from 63% to 18% with recovery almost unchanged, and adding a memory of denied effects reduces it to zero in the tested scenarios while recovery stays at 82%, compared with 83% without a defense. A typed denial channel, prompt rules and a guard agent are less effective.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
Related papers
The Detour Is the Danger: Preserving Security During LLM Agent Recovery
Shared title terminologycs.CRBoyang Ma, Jinku Li, Hao Wu et al.
Visual Authority Drift: How GUI Choice Architecture Induces Authorization Failures in Agents
Shared title terminologycs.CRHanrui Wang, Yu Luo, Xuejian Li et al.
Slow Cleanup, Fast Extraction: Persistent Permissions and Fund Activity during Recovery from Ethereum Authorization Incidents
Shared title terminologycs.CRZhang Sheng, Yiran Huang, Shen Wang et al.
LLM Agent Authorization Across Context Compaction
Shared title terminologycs.CRZeming Fei, Hongming Fei, Yi Xu et al.
Red-Teaming the Reward: A Verifier and Benchmark for Triton Kernel Optimization Agents
Shared title terminologycs.CRPouya Shiri, Seyed Abbas Hosseini
Taming AI Agents with seL4
Shared title terminologycs.CRMaysara Alhindi