arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.14859cs.CRcs.AI
收藏

编码代理是否理解最小特权授权?

Do Coding Agents Understand Least-Privilege Authorization?

Evolvent AI Research Team(Evolvent AI研究院)

Zheng Yan, Jingxiang Weng, Charles Chen, Dengyun Peng, Ethan Qin, Jiannan Guan, Jinhao Liu, Qiming Yu, Yixin Yuan, Fanqing Meng, Carl Che, Mengkang Hu

AI总结:

研究编码代理是否能自主推断最小特权授权边界,提出Sufficiency-Tightness Decomposition方法,提升敏感任务成功率并降低攻击成功率。

摘要:

随着编码代理能够访问shell、仓库和用户文件,最小特权授权成为安全部署的必要条件:代理应获得完成任务所需的足够权限,但不应有不必要的权限暴露敏感面。为研究当前模型是否能自行推断此边界,我们首先引入权限边界推断,其中模型将任务指令和终端环境映射到文件级的读/写/执行策略,并提出AuthBench,一个包含120个真实终端任务的基准,具有人工审核的权限标签和可执行验证器。AuthBench表明,授权不是简单的保守与宽松校准问题:前沿模型常遗漏执行链所需的权限,同时授予未使用或敏感访问。增加推理时间推理无法解决此不匹配。相反,每个模型趋向于模型特定的授权吸引子:更多推理使其在自身失败模式中更一致,无论是广泛但暴露的还是紧密但脆弱的。这表明直接策略生成是瓶颈,因为单个生成必须同时发现所有必要访问并拒绝所有不必要的访问。因此,我们提出Sufficiency-Tightness Decomposition,首先通过正向模拟任务生成覆盖导向的策略,然后审计每个授予的条目以验证其基础和敏感性。在测试模型中,该分解在偏向紧密性的模型上将敏感任务成功率提高高达15.8%,同时在所有评估模型中减少攻击成功率。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑