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

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


Abstract
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.
Anthology ID:
2026.emnlp-main.211
Volume:
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
EMNLP
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
4842–4866
Language:
URL:
https://aclanthology.org/2026.emnlp-main.211/
DOI:
Bibkey:
Cite (ACL):
Qi HU, Yifeng Tang, Qinghua Wang, Lanyang Zhao, Pengji Zhang, Yuhao Qing, Xin Yao, Dong Huang, Lin Zhang, and Zhuoran Ji. 2026. SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pages 4842–4866, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
SABER: Benchmarking Operational Safety of LLM Coding Agents in Stateful Project Workspaces (HU et al., EMNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.emnlp-main.211.pdf