LLM-CSEC: Empirical Evaluation of Security in C/C++ Code Generated by Large Language Models
Not on the map. Why?
Abstract (arXiv)
The security of code generated by large language models (LLMs) is a significant concern, as studies indicate that such code often contains vulnerabilities and lacks essential defensive programming constructs. This work focuses on examining and evaluating the security of LLM-generated code, particularly in the context of C/C++. We categorized known vulnerabilities using the Common Weakness Enumeration (CWE) and, to study their criticality, mapped them to CVEs. We used ten different LLMs for code generation and analyzed the outputs through static analysis. The amount of CWEs present in AI-generated code is concerning. Our findings highlight the need for developers to be cautious when using LLM-generated code. This study provides valuable insights to advance automated code generation and encourage further research in this domain.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 9 of its 41 references that are in the map. First posted on arXiv 24 Nov 2025.
Builds on
9 of 41 references.
References · 9
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
- 2022Do Users Write More Insecure Code with AI Assistants?cited by 192
- 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 91
- 2023How Secure is Code Generated by ChatGPT?cited by 81
- 2023SALLM: Security Assessment of Generated Codecited by 39
- 2023Enhancing Large Language Models for Secure Code Generation: A Dataset-driven Study on Vulnerability Mitigationcited by 15
- 2024Artificial-Intelligence Generated Code Considered Harmful: A Road Map for Secure and High-Quality Code Generationcited by 12
- 2025From Idea to Implementation: Evaluating the Influence of Large Language Models in Software Development -- An Opinion Papercited by 3
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026