mlsanityData to 7 Oct 2026

Software Vulnerability and Functionality Assessment using LLMs

arXiv 2403.08429 ↗First posted 13 Mar 2024cs.SE cs.AIcited by 11

Not on the map. Why?

Abstract (arXiv)

While code review is central to the software development process, it can be tedious and expensive to carry out. In this paper, we investigate whether and how Large Language Models (LLMs) can aid with code reviews. Our investigation focuses on two tasks that we argue are fundamental to good reviews: (i) flagging code with security vulnerabilities and (ii) performing software functionality validation, i.e., ensuring that code meets its intended functionality. To test performance on both tasks, we use zero-shot and chain-of-thought prompting to obtain final ``approve or reject'' recommendations. As data, we employ seminal code generation datasets (HumanEval and MBPP) along with expert-written code snippets with security vulnerabilities from the Common Weakness Enumeration (CWE). Our experiments consider a mixture of three proprietary models from OpenAI and smaller open-source LLMs. We find that the former outperforms the latter by a large margin. Motivated by promising results, we finally ask our models to provide detailed descriptions of security vulnerabilities. Results show that 36.7% of LLM-generated descriptions can be associated with true CWE vulnerabilities.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 9 of its 21 references that are in the map. First posted on arXiv 13 Mar 2024.

Builds on

9 of 21 references.

References · 9

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2021Program Synthesis with Large Language Modelscited by 3,509
  3. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  4. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
  5. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 100
  6. 2022Using Pre-Trained Models to Boost Code Review Automationcited by 63
  7. 2022CodeAttack: Code-Based Adversarial Attacks for Pre-trained Programming Language Modelscited by 48
  8. 2023LLaMA-Reviewer: Advancing Code Review Automation with Large Language Models through Parameter-Efficient Fine-Tuningcited by 47
  9. 2022Automated Identification of Toxic Code Reviews Using ToxiCRcited by 8

Built on by

Cited by year

Citing papers per year: 2024: 3; 2025: 8.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Rethinking the Evaluation of Secure Code Generation
  2. 2026An Empirical Evaluation of LLM-Based Approaches for Code Vulnerability Detection: RAG, SFT, and Dual-Agent Systems
  3. 2024An Insight into Security Code Review with LLMs: Capabilities, Obstacles, and Influential Factors
  4. 2025Improving Automated Secure Code Reviews: A Synthetic Dataset for Code Vulnerability Flaws
  5. 2026Poster: Rethinking Security in LLM Code Generation through Real-World Risk Scenarios
  6. 2025A Systematic Study of Code Obfuscation Against LLM-based Vulnerability Detection
  7. 2026An Empirical Evaluation of LLM-Generated Code Security Across Prompting Methods
  8. 2026Inference-Time Safety For Code LLMs Via Retrieval-Augmented Revision