arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.01317cs.SEcs.CR
收藏

SABER:在有状态项目工作区中对LLM编码代理的操作安全性进行基准测试

SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces

The University of Hong Kong(香港大学);Shandong University(山东大学);Carnegie Mellon University(卡内基梅隆大学);National University of Singapore(新加坡国立大学);The Hong Kong University of Science and Technology(香港科技大学)

Qi Hu, Yifeng Tang, Qinghua Wang, Lanyang Zhao, Pengji Zhang, Yuhao Qing, Xin Yao, Dong Huang, Lin Zhang, Zhuoran Ji

AI总结:

提出SABER基准,通过将模型置于真实代理式项目中并评估最终环境状态,来衡量LLM编码代理的操作安全性,发现最佳模型的有害安全违规率超过54%。

摘要:

大型语言模型越来越多地被部署为编码代理,将安全性从单个响应转移到动作序列。然而,现有的基准主要评估模型是否拒绝不安全的提示,而忽略了对有状态工作区的影响。我们提出了SABER,一个用于环境感知操作安全性的基准,它将模型置于真实的代理式项目中,并根据一系列动作后的最终环境状态评估安全性。除了二元安全违规报告外,SABER还按原因分类违规,从而能够分析模型特定的安全概况。我们的评估表明,即使性能最好的模型也有超过54%的有害安全违规率(HSR),这表明当前的校准对于真实项目环境仍然不足。SABER进一步揭示了不同模型之间的不同安全概况。我们的基准可在https://github.com/sssr-lab/saber公开获取。

英文摘要:

Large language models are increasingly deployed as coding agents, shifting safety from individual responses to action sequences. Existing benchmarks, however, primarily assess whether models refuse unsafe prompts, leaving impacts on stateful workspaces largely unexamined. We present SABER, a benchmark for environment-aware operational safety that places models in realistic agent-style projects and evaluates safety from the final environment state after a sequence of actions. Beyond binary safety-violation reports, SABER categorizes violations by cause, enabling analysis of model-specific safety profiles. Our evaluations show that even the best-performing model has more than a 54% harmful safety-violation rate (HSR), suggesting that current alignment remains insufficient for realistic project environments. SABER further reveals distinct safety profiles across models. Our benchmark is publicly available at https://github.com/sssr-lab/saber.

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

↑