Explicit authorization scope cuts coding-agent permission misses
Original title: Explicit authorization scope improves LLM-based permission checking in coding agents
Claude Code, Codex and Qwen Code wrongly approved 54%–93% of out-of-scope actions until missing rules were written into requests.
Researchers recorded approval decisions from Claude Code, Codex and Qwen Code on DevOps and prompt-injection benchmarks, then re-scored the same actions. Under the original user requests, the three permission checkers incorrectly approved 54%–93% of out-of-scope actions. Stronger models and extra context did not consistently lower those misses. Adding 132 missing authorization rules cut miss rates on those actions from 67%–92% to 8%–26% and also lowered false blocks; reruns with explicit rules produced no out-of-scope proposals.
Unconfirmed: Miss rates are the authors' benchmark measurements, not reports of production agent compromises.
- 132 of 143 out-of-scope actions broke rules absent from both requests and tool outputs.
- Once scope was explicit, tool outputs and target attributes further reduced misses.
- Rerunning complete tasks with explicit rules, none of the three agents proposed out-of-scope actions.
- The paper says reliable auto-approval needs defined permissions and consistent rule following.
- AI models
- Claude CodeCodexQwen Code
From the original article
1 min read at arxiv.orgCoding agents use auto mode to delegate some approval decisions to permission checkers, reducing the need for repeated user confirmation. Permission checkers determine whether actions are authorized based on user requests and context. However, natural language requests often do not fully specify the scope of authorization.
By Shimeng Yang · arxiv.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.