Chain-of-Verification for Secure Code Generation Using Iterative Self-Review

Read full text Summarise with VIRAT
Authors: Javier Morales, María Castillo, Laura Fernández
Cited by: 0
References: 23

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

We develop an iterative self-verification pipeline in which LLMs generate code, analyze potential vulnerabilities, revise the code, and re-verify in cycles. This “chain-of-verification” approach improves vulnerability detection by 51% and secure-code accuracy by 38% over single-pass generation. Tested on 1,200 prompts involving web, crypto, and system programming tasks, the method excels in catching missing checks and unsafe fallbacks. This demonstrates that structured self-review can transform LLMs into more reliable secure-code generators.

Fields of Study & Subjects

Software Engineering Research Web Application Security Vulnerabilities Adversarial Robustness in Machine Learning

Publication details

Journal / source
American Journal Of Big Data
Volume
7
Issue
1
Pages
142–150
Publication date
31 January 2026
Language
EN