当已批准文件未发生变更时:部署与编码智能体批准的权限集完整性
When the Approved File Is Unchanged: Authority-Set Integrity for Deployment and Coding-Agent Approvals
AI总结:
该研究针对部署与编码智能体批准中存在的已批准文件外编辑绕过检查的问题,提出权限集完整性定义,给出由检查器自行计算摘要并从可验证来源提取文件集的解决方案。
摘要:
部署、发布或智能体发出的命令的批准是针对一个对象记录的:工作流文件、脚本、命令行。后续的运行还会读取仓库的其他文件,这些文件决定了部署创建的内容以及策略允许的变更,因此在批准通过后对其中某一个文件进行编辑可以绕过对已批准对象的任何检查。这类编辑是常见情况。在20个公共仓库的历史记录中,542次修改运行所读取文件的提交里有296次(占54.6%)未改动已批准文件,所有这些都是普通开发,未涉及攻击者。我们在其中两个仓库上展示了后果:在已批准工作流之外进行的一次编辑向已部署角色添加了存储桶写入策略,一行编辑移除了高风险变更所需的人工批准,而对已批准文件的检查均接受了这些操作。我们定义了权限集完整性:当批准将授权运行配置为读取的每个仓库文件都绑定在内时,该批准是可靠的;当不绑定其他文件时,该批准是精确的。对该集合的绑定会拒绝编辑操作,并对约十分之一的提交重新请求有效的批准。难点在于命名该集合。被要求生成绑定的编码智能体能够正确计算摘要,但会在不同运行中绑定不同的文件集,因此检查器不能仅凭智能体的话来确定该集合。它应自行计算摘要,并从可验证的来源(如部署工具自身的输入记录或仓库中声明的清单)中提取该集合。
英文摘要:
An approval for a deployment, a release, or an agent-issued command is recorded against one object: a workflow file, a script, a command line. The run that follows also reads other repository files, which decide what the deployment creates and which changes a policy allows, so an edit to one of them after approval passes any check on the approved object. Such edits are the common case. In the history of 20 public repositories, 296 of the 542 commits that change a file the run reads (54.6%) leave the approved file untouched, all of them ordinary development with no adversary involved. We demonstrate the consequence on two of those repositories: an edit outside the approved workflow adds a bucket-write policy to a deployed role, a one-line edit removes the human approval required for high-risk changes, and a check on the approved file accepts both. We define authority-set integrity: an approval is sound when it binds every repository file the authorized run is configured to read, and exact when it binds no other file. A binding over that set rejects both edits and re-requests a standing approval on about one commit in ten. The hard part is naming the set. Coding agents asked to produce the binding compute the digest correctly and bind different file sets from run to run, so a checker cannot take the set on the agent's word. It should compute the digest itself and draw the set from a source it can verify, such as the deployment tool's own record of its inputs or a manifest declared in the repository.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。