LLMSecEval: A Dataset of Natural Language Prompts for Security Evaluations
원문 초록
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.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Seed-Coder: Let the Code Model Curate Data for Itself
Can You Really Trust Code Copilots? Evaluating Large Language Models from a Code Security Perspective
ObscuraCoder: Powering Efficient Code LM Pre-Training Via Obfuscation Grounding
HiLDe: Intentional Code Generation via Human-in-the-Loop Decoding
CodeMixBench: Evaluating Large Language Models on Code Generation with Code-Mixed Prompts
AKD : Adversarial Knowledge Distillation For Large Language Models Alignment on Coding tasks
토론
이 논문과 연결된 포럼 글이 아직 없습니다.