ZeroSecBench: Fine-grained and Robust Evaluation for Secure Code Generation
Yunlong LyuLicheng PanYiwen XuYuXuan PengYunsheng LuYifan ZhuWeisen ChenJialan YangJunyao HeXinyue DuanTongSu
Zhixuan Chu +4 Yunlong Lyu
Licheng Pan
Yiwen Xu
YuXuan Peng
Yunsheng Lu
Yifan Zhu
Weisen Chen
Jialan Yang
Junyao He
Xinyue Duan
TongSu

Zhixuan Chu
+16
ZeroSecBench is a benchmark for fine-grained, robust evaluation of secure code generation in LLM-based AI copilots. Its central contribution is a three-axis vulnerability taxonomy coupling CWE categories with affected component and vulnerability scenario, enabling component-aware analysis, alongside a robustness-oriented construction pipeline with five augmentations. Built from 850 instances mined from 150,000 GitHub repositories, covering 12 CWEs and 46 Java components, it uses a hybrid evaluation pipeline. Results show performance varies greatly by component within the same CWE, underscoring the need for component-aware assessment.

OpenReview · September 20, 2025