paper-with-me

홈 › Papers

LLMSecEval: A Dataset of Natural Language Prompts for Security Evaluations

2023-03-16 · Catherine Tony, Markus Mutas, Nicolás E. Díaz Ferreyra, Riccardo Scandariato

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.

📄 PDF Abstract BibTeX arXiv:2303.09384

Code (1)

tuhh-softsec/llmseceval 공식 구현

Tasks

Code CompletionCode Generation

Similar Papers 제목 키워드 기반

Enhancing Reliability in LLM-Based Secure Code Generation

2026-05-22 · Mohammed F. Kharma, Mohammad Alkhanafseh, Ahmed Sabbah, David Mohaisen arxiv

Large language models (LLMs) are widely used for code generation, but their security reliability remains inconsistent across languages and prompting strategies. Existing prompt engineering improves functional correctness…

Prompt EngineeringCode Generation

Securing AI-Generated Code: A Just-in-Time Vulnerability Detection and Remediation Pipeline

2026-08-17 · Mikhail Surikov arxiv

AI-assisted development tools generate vulnerable code at significant rates, yet few automated mechanisms exist to detect, enrich, fix, and verify security issues at development velocity, particularly ones that ground re…

Vulnerability DetectionCode Generation

(Security) Assertions by Large Language Models

2023-06-24 · Rahul Kande, Hammond Pearce, Benjamin Tan, Brendan Dolan-Gavitt 외

The security of computer systems typically relies on a hardware root of trust. As vulnerabilities in hardware can have severe implications on a system, there is a need for techniques to support security verification acti…

Code Generation

When Prompts Become Payloads: A Framework for Mitigating SQL Injection Attacks in Large Language Model-Driven Applications

2026-05-11 · Farzad Nourmohammadzadeh Motlagh, Mehrdad Hajizadeh, Mehryar Majd, Pejman Najafi 외 arxiv

Natural language interfaces to structured databases are becoming increasingly common, largely due to advances in large language models (LLMs) that enable users to query data using conversational input rather than formal …

SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defenses

2025-10-17 · Hanbin Hong, Shuang Wu, Shuya Feng, Nima Naderloui 외 arxiv

Large Language Models (LLMs) are increasingly used as interfaces to information, code, and real-world services, making prompt-level security failures a practical concern. Although jailbreak attacks, defenses, datasets, a…