Do Coding Agents Understand Least-Privilege Authorization?

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yan, Zheng, Weng, Jingxiang, Chen, Charles, Peng, Dengyun, Qin, Ethan, Guan, Jiannan, Liu, Jinhao, Yu, Qiming, Yuan, Yixin, Meng, Fanqing, Che, Carl, Hu, Mengkang
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913131797676032
author Yan, Zheng
Weng, Jingxiang
Chen, Charles
Peng, Dengyun
Qin, Ethan
Guan, Jiannan
Liu, Jinhao
Yu, Qiming
Yuan, Yixin
Meng, Fanqing
Che, Carl
Hu, Mengkang
author_facet Yan, Zheng
Weng, Jingxiang
Chen, Charles
Peng, Dengyun
Qin, Ethan
Guan, Jiannan
Liu, Jinhao
Yu, Qiming
Yuan, Yixin
Meng, Fanqing
Che, Carl
Hu, Mengkang
contents As coding agents gain access to shells, repositories, and user files, least-privilege authorization becomes a prerequisite for safe deployment: an agent should receive enough authority to complete the task, without unnecessary authority that exposes sensitive surfaces. To study whether current models can infer this boundary themselves, we first introduce permission-boundary inference, where a model maps a task instruction and terminal environment to a file-level read/write/execute policy, and AuthBench, a benchmark of 120 realistic terminal tasks with human-reviewed permission labels and executable validators for utility and attack outcomes. 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 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. This suggests that direct policy generation is the bottleneck, because a single generation must both discover all necessary accesses and reject all unnecessary ones. We therefore propose Sufficiency-Tightness Decomposition, which first generates a coverage-oriented policy by forward-simulating the task and then audits each granted entry for grounding and sensitivity. Across tested models, this decomposition improves sensitive-task success by up to 15.8% on tightness-biased models while reducing attack success across all evaluated models.
format Preprint
id arxiv_https___arxiv_org_abs_2605_14859
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Do Coding Agents Understand Least-Privilege Authorization?
Yan, Zheng
Weng, Jingxiang
Chen, Charles
Peng, Dengyun
Qin, Ethan
Guan, Jiannan
Liu, Jinhao
Yu, Qiming
Yuan, Yixin
Meng, Fanqing
Che, Carl
Hu, Mengkang
Cryptography and Security
Artificial Intelligence
As coding agents gain access to shells, repositories, and user files, least-privilege authorization becomes a prerequisite for safe deployment: an agent should receive enough authority to complete the task, without unnecessary authority that exposes sensitive surfaces. To study whether current models can infer this boundary themselves, we first introduce permission-boundary inference, where a model maps a task instruction and terminal environment to a file-level read/write/execute policy, and AuthBench, a benchmark of 120 realistic terminal tasks with human-reviewed permission labels and executable validators for utility and attack outcomes. 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 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. This suggests that direct policy generation is the bottleneck, because a single generation must both discover all necessary accesses and reject all unnecessary ones. We therefore propose Sufficiency-Tightness Decomposition, which first generates a coverage-oriented policy by forward-simulating the task and then audits each granted entry for grounding and sensitivity. Across tested models, this decomposition improves sensitive-task success by up to 15.8% on tightness-biased models while reducing attack success across all evaluated models.
title Do Coding Agents Understand Least-Privilege Authorization?
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2605.14859