LLMSecEval: A Dataset of Natural Language Prompts for Security Evaluations
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) like Codex are powerful tools for performing code completion and code generation tasks as they are trained on billions of lines of code from publicly available sources. Moreover, these models are capable of generating code snippets from Natural Language (NL) descriptions by learning languages and programming practices from public GitHub repositories. Although LLMs promise an effortless NL-driven deployment of software applications, the security of the code they generate has not been extensively investigated nor documented. In this work, we present LLMSecEval, a dataset containing 150 NL prompts that can be leveraged for assessing the security performance of such models. Such prompts are NL descriptions of code snippets prone to various security vulnerabilities listed in MITRE's Top 25 Common Weakness Enumeration (CWE) ranking. Each prompt in our dataset comes with a secure implementation example to facilitate comparative evaluations against code produced by LLMs. As a practical application, we show how LLMSecEval can be used for evaluating the security of snippets automatically generated from NL descriptions.
Key facts. Cited by 58 papers in the map (data through 7 Oct 2026). Builds on 10 of its 19 references that are in the map. First posted on arXiv 16 Mar 2023.
Builds on
10 of 19 references.
References · 10
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 599
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
- 2019A Manually-Curated Dataset of Fixes to Vulnerabilities of Open-Source Softwarecited by 28
- 2020Java Cryptography Uses in the Wildcited by 3
- 2022GitHub Considered Harmful? Analyzing Open-Source Projects for the Automatic Generation of Cryptographic API Call Sequencescited by 2
Built on by
Citing papers per year: 2023: 7; 2024: 13; 2025: 18; 2026: 20.
58 papers.
Sort:
By area:
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2023SALLM: Security Assessment of Generated Codecited by 35
- 2024Prompting Techniques for Secure Code Generation: A Systematic Investigationcited by 33
- 2025From Language to Action: A Review of Large Language Models as Autonomous Agents and Tool Userscited by 32
- 2023Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attackscited by 29
- 2024Toward Secure Code Generation: Bridging Correctness and Security via Task-Adaptive Vulnerability Modeling and Execution-Based Benchmarkingcited by 26
- 2024ProSec: Fortifying Code LLMs with Proactive Security Alignmentcited by 24
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctnesscited by 23
- 2023LLM for SoC Security: A Paradigm Shiftcited by 22
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 22
38 more
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2025Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model Analysiscited by 18
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarioscited by 16
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
- 2025Benchmarking Prompt Engineering Techniques for Secure Code Generation with GPT Modelscited by 12
- 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarioscited by 11
- 2025Rethinking the Evaluation of Secure Code Generationcited by 10
- 2025SandboxEval: Towards Securing Test Environment for Untrusted Codecited by 10
- 2025Teaching an Old LLM Secure Coding: Localized Preference Optimization on Distilled Preferencescited by 10
- 2023Using ChatGPT as a Static Application Security Testing Toolcited by 8
- 2024INDICT: Code Generation with Internal Dialogues of Critiques for Both Security and Helpfulnesscited by 7
- 2023Automating the Correctness Assessment of AI-generated Code for Security Contextscited by 6
- 2025Can You Really Trust Code Copilots? Evaluating Large Language Models from a Code Security Perspectivecited by 6
- 2025CoQuIR: A Comprehensive Benchmark for Code Quality-Aware Information Retrievalcited by 6
- 2025QCoder Benchmark: Bridging Language Generation and Quantum Hardware through Simulator-Based Feedbackcited by 6
- 2023Towards Trustworthy AI Software Development Assistancecited by 4
- 2024FATS: A Prompt Injection Attack Utilizing Feign Security Agents with Deceptive Few-shots Learningcited by 4
- 2024SeCodePLT: A Unified Platform for Evaluating the Security of Code GenAIcited by 4
- 2026Secure Code Generation via Online Reinforcement Learning with Vulnerability Reward Modelcited by 4
- 2023Can LLMs Patch Security Issues?cited by 3
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2025Is Your Prompt Poisoning Code? Defect Induction Rates and Security Mitigation Strategiescited by 3
- 2025Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Modelscited by 2
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Reviewcited by 2
- 2025Secure Code Generation at Scale with Reflexioncited by 1
- 2026Extracting Recurring Vulnerabilities from Black-Box LLM-Generated Softwarecited by 1
- 2026SecCodeBench-V2 Technical Reportcited by 1
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detectioncited by 1
- 2026SecPI: Secure Code Generation with Reasoning Models via Security Reasoning Internalizationcited by 1
- 2026Broken by Default: A Formal Verification Study of Security Vulnerabilities in AI-Generated Codecited by 1
- 2026Social Bias in LLM-Generated Code: Benchmark and Mitigationcited by 1
- 2026Constrained Code Generation with Discrete Diffusioncited by 1
- 2026Enhancing Reliability in LLM-Based Secure Code Generationcited by 1
- 2024Dynamic Code Orchestration: Harnessing the Power of Large Language Models for Adaptive Script Executioncited by 0
- 2025Amazon Nova AI Challenge -- Trusted AI: Advancing secure, AI-assisted software developmentcited by 0
- 2025Assessing the Software Security Comprehension of Large Language Modelscited by 0
- 2026Inference-Time Safety For Code LLMs Via Retrieval-Augmented Revisioncited by 0
- 2026Seclens: Role-specific Evaluation of LLM's for security vulnerablity detectioncited by 0
50 most cited of 58 All 58 (JSON)
- 2026Interpreting and Steering for Safe and Correct Code Generation30 Aug 2026
- 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaboration26 Aug 2026
- 2026Securing AI-Generated Code: A Just-in-Time Vulnerability Detection and Remediation Pipeline17 Aug 2026
- 2026SecDrift: Measuring Sector-Conditioned Security Drift in AI-Generated Code28 Jul 2026
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward23 Jun 2026
- 2026Activating Latent Security Knowledge through LLM-Guided Risk Analysis for Secure Code Generation15 Jun 2026
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026
- 2026Security of LLM-generated Code: A Comparative Analysis21 May 2026
- 2026Constrained Code Generation with Discrete Diffusion16 May 2026
- 2026Social Bias in LLM-Generated Code: Benchmark and Mitigation1 May 2026
- 2026A Quasi-Experimental Developer Study of Security Training in LLM-Assisted Web Application Development20 Apr 2026
- 2026Broken by Default: A Formal Verification Study of Security Vulnerabilities in AI-Generated Code7 Apr 2026
38 more
- 2026SecPI: Secure Code Generation with Reasoning Models via Security Reasoning Internalization4 Apr 2026
- 2026Seclens: Role-specific Evaluation of LLM's for security vulnerablity detection2 Apr 2026
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detection11 Mar 2026
- 2026Inference-Time Safety For Code LLMs Via Retrieval-Augmented Revision2 Mar 2026
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review25 Feb 2026
- 2026SecCodeBench-V2 Technical Report17 Feb 2026
- 2026Secure Code Generation via Online Reinforcement Learning with Vulnerability Reward Model7 Feb 2026
- 2026Extracting Recurring Vulnerabilities from Black-Box LLM-Generated Software2 Feb 2026
- 2025Assessing the Software Security Comprehension of Large Language Models24 Dec 2025
- 2025Learning-Based Automated Adversarial Red-Teaming for Robustness Evaluation of Large Language Models21 Dec 2025
- 2025Secure Code Generation at Scale with Reflexion5 Nov 2025
- 2025QCoder Benchmark: Bridging Language Generation and Quantum Hardware through Simulator-Based Feedback30 Oct 2025
- 2025Is Your Prompt Poisoning Code? Defect Induction Rates and Security Mitigation Strategies27 Oct 2025
- 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarios26 Sep 2025
- 2025From Language to Action: A Review of Large Language Models as Autonomous Agents and Tool Users24 Aug 2025
- 2025Amazon Nova AI Challenge -- Trusted AI: Advancing secure, AI-assisted software development13 Aug 2025
- 2025CoQuIR: A Comprehensive Benchmark for Code Quality-Aware Information Retrieval31 May 2025
- 2025Teaching an Old LLM Secure Coding: Localized Preference Optimization on Distilled Preferences31 May 2025
- 2025Can You Really Trust Code Copilots? Evaluating Large Language Models from a Code Security Perspective15 May 2025
- 2025Frontier AI's Impact on the Cybersecurity Landscape7 Apr 2025
- 2025SandboxEval: Towards Securing Test Environment for Untrusted Code27 Mar 2025
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasets21 Mar 2025
- 2025Rethinking the Evaluation of Secure Code Generation18 Mar 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2025Benchmarking Prompt Engineering Techniques for Secure Code Generation with GPT Models9 Feb 2025
- 2025Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model Analysis3 Feb 2025
- 2024ProSec: Fortifying Code LLMs with Proactive Security Alignment19 Nov 2024
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedback18 Nov 2024
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios16 Oct 2024
- 2024SeCodePLT: A Unified Platform for Evaluating the Security of Code GenAI14 Oct 2024
- 2024FATS: A Prompt Injection Attack Utilizing Feign Security Agents with Deceptive Few-shots Learning11 Oct 2024
- 2024Dynamic Code Orchestration: Harnessing the Power of Large Language Models for Adaptive Script Execution7 Aug 2024
- 2024Prompting Techniques for Secure Code Generation: A Systematic Investigation9 Jul 2024
- 2024Toward Secure Code Generation: Bridging Correctness and Security via Task-Adaptive Vulnerability Modeling and Execution-Based Benchmarking2 Jul 2024
- 2024INDICT: Code Generation with Internal Dialogues of Critiques for Both Security and Helpfulness23 Jun 2024
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Review6 May 2024
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar 2024
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctness29 Jan 2024
50 newest of 58 All 58 (JSON)
- 2025From Language to Action: A Review of Large Language Models as Autonomous Agents and Tool Userscited by 32
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarioscited by 16
- 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarioscited by 11
- 2024FATS: A Prompt Injection Attack Utilizing Feign Security Agents with Deceptive Few-shots Learningcited by 4
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Reviewcited by 2
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detectioncited by 1
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forwardcited by 0
- 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaborationcited by 0
- 2026MACGen: Toward Functionally Correct and Secure Code Generation via Multi-Agent Collaboration26 Aug 2026
- 2026SoK: AI Secure Code Generation: Progress, Pitfalls, and Paths Forward23 Jun 2026
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detection11 Mar 2026
- 2026LLM-Based Multi-Agent Systems for Code Generation: A Multi-Vocal Literature Review25 Feb 2026
- 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarios26 Sep 2025
- 2025From Language to Action: A Review of Large Language Models as Autonomous Agents and Tool Users24 Aug 2025
- 2024Evaluating Software Development Agents: Patch Patterns, Code Quality, and Issue Complexity in Real-World GitHub Scenarios16 Oct 2024
- 2024FATS: A Prompt Injection Attack Utilizing Feign Security Agents with Deceptive Few-shots Learning11 Oct 2024
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2025Benchmarking Prompt Engineering Techniques for Secure Code Generation with GPT Modelscited by 12
- 2026SecPI: Secure Code Generation with Reasoning Models via Security Reasoning Internalizationcited by 1
- 2026SecPI: Secure Code Generation with Reasoning Models via Security Reasoning Internalization4 Apr 2026
- 2025Benchmarking Prompt Engineering Techniques for Secure Code Generation with GPT Models9 Feb 2025
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar 2024
- 2026Constrained Code Generation with Discrete Diffusioncited by 1
- 2026Constrained Code Generation with Discrete Diffusion16 May 2026
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2023SALLM: Security Assessment of Generated Codecited by 35
- 2024Prompting Techniques for Secure Code Generation: A Systematic Investigationcited by 33
- 2024Toward Secure Code Generation: Bridging Correctness and Security via Task-Adaptive Vulnerability Modeling and Execution-Based Benchmarkingcited by 26
- 2024NoFunEval: Funny How Code LMs Falter on Requirements Beyond Functional Correctnesscited by 23
- 2023LLM for SoC Security: A Paradigm Shiftcited by 22
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 22
- 2025Frontier AI's Impact on the Cybersecurity Landscapecited by 21
- 2025Security and Quality in LLM-Generated Code: A Multi-Language, Multi-Model Analysiscited by 18
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
- 2025Rethinking the Evaluation of Secure Code Generationcited by 10
12 most cited of 40 All 40 (JSON)
- 2026Interpreting and Steering for Safe and Correct Code Generation30 Aug 2026
- 2026Securing AI-Generated Code: A Just-in-Time Vulnerability Detection and Remediation Pipeline17 Aug 2026
- 2026SecDrift: Measuring Sector-Conditioned Security Drift in AI-Generated Code28 Jul 2026
- 2026Activating Latent Security Knowledge through LLM-Guided Risk Analysis for Secure Code Generation15 Jun 2026
- 2026Enhancing Reliability in LLM-Based Secure Code Generation22 May 2026
- 2026Security of LLM-generated Code: A Comparative Analysis21 May 2026
- 2026Social Bias in LLM-Generated Code: Benchmark and Mitigation1 May 2026
- 2026A Quasi-Experimental Developer Study of Security Training in LLM-Assisted Web Application Development20 Apr 2026
- 2026Broken by Default: A Formal Verification Study of Security Vulnerabilities in AI-Generated Code7 Apr 2026
- 2026Seclens: Role-specific Evaluation of LLM's for security vulnerablity detection2 Apr 2026
- 2026SecCodeBench-V2 Technical Report17 Feb 2026
- 2026Extracting Recurring Vulnerabilities from Black-Box LLM-Generated Software2 Feb 2026
12 newest of 40 All 40 (JSON)