Rethinking the Evaluation of Secure Code Generation

Read full text
Authors: Shih-Chieh Dai, Jun Long Xu, Guanhong Tao
Cited by: 1
References: 25

Abstract

Large language models (LLMs) are widely used in software development. However, the code generated by LLMs often contains vulnerabilities. Several secure code generation methods have been proposed to address this issue, but their current evaluation schemes leave several concerns unaddressed. Specifically, most existing studies evaluate security and functional correctness separately, using different datasets. That is, they assess vulnerabilities using security-related code datasets while validating functionality with general code datasets. In addition, prior research primarily relies on a single static analyzer, CodeQL, to detect vulnerabilities in generated code, which limits the scope of security evaluation.

Publication details

Journal / source
Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering
Publisher
ACM
Pages
336–348
Publication date
12 April 2026