Coding agents often miss needed permissions or grant unnecessary ones
Current coding agents fail to infer correct least-privilege file policies for terminal tasks
AI/ML arXiv 14 May 2026 Benchmark Prototype evidence
Published as “Do Coding Agents Understand Least-Privilege Authorization?”
Why it matters
The results suggest that deploying coding agents with automatically generated least-privilege policies will still require careful auditing, as current models cannot reliably infer safe permission boundaries on their own.
Summary
The paper shows that a two-stage Sufficiency-Tightness Decomposition can raise sensitive-task success by up to 15.8% and lower attack success for all tested models, but even the best models still suffer from simultaneous under-granting and over-granting, and increasing inference-time reasoning merely pushes each model toward its own “authorization attractor” rather than the ideal least-privilege point. AuthBench, a benchmark of 120 realistic terminal tasks, reveals that frontier models miss required permissions while also granting unnecessary or sensitive accesses. More reasoning does not close this gap, and the decomposition improves metrics without any model retraining. The evidence is based on empirical evaluation across nine large language models.
What they found 3
- Frontier models often both omit needed permissions and grant unnecessary or sensitive accesses.
“AuthBench shows that authorization is not a simple conservative-versus-permissive calibration problem: frontier models often omit permissions required by the execution chain while also granting unused or sensitive accesses.”
- Increasing inference-time reasoning pushes each model toward a model-specific authorization attractor rather than the ideal least-privilege point.
“Increasing inference-time reasoning does not resolve this mismatch. Instead, each model moves toward a model-specific authorization attractor: more reasoning makes it more consistent in its own failure mode, whether broad-but-exposed or tight-but-brittle.”
- Gemini 3.1 Pro achieves the highest task success rate but retains substantial sensitive-task exposure.
“Gemini 3.1 Pro achieves the best TSR on both standard and sensitive tasks with high-recall policies, but it also retains substantial sensitive-task exposure.”
Caveats 2
- Even the best model (Gemini 3.1 Pro) still has a Sensitive-File Exposure Rate of 90.3% and an Attack Success Rate of 28.3% on sensitive tasks, indicating significant residual risk despite the decomposition.
- Increasing reasoning effort does not move policies toward the ideal point; instead, each model converges to its own attractor, preserving under-granting or over-granting behaviors.
What’s new here 4
- Introduces permission-boundary inference as a standalone capability for coding agents.
- Provides AuthBench, a 120-task benchmark with human-reviewed permission labels and executable validators for both utility and attack outcomes.
- Proposes Sufficiency-Tightness Decomposition, a two-stage policy generation method that separates coverage discovery from sensitivity auditing.
- Demonstrates that increased reasoning effort leads to model-specific “authorization attractors” rather than better least-privilege policies.