SeCodePLT: A Unified Platform for Evaluating the Security of Code GenAI

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Nie, Yuzhou, Wang, Zhun, Yang, Yu, Jiang, Ruizhe, Tang, Yuheng, Davies, Xander, Gal, Yarin, Li, Bo, Guo, Wenbo, Song, Dawn
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909796393811968
author Nie, Yuzhou
Wang, Zhun
Yang, Yu
Jiang, Ruizhe
Tang, Yuheng
Davies, Xander
Gal, Yarin
Li, Bo
Guo, Wenbo
Song, Dawn
author_facet Nie, Yuzhou
Wang, Zhun
Yang, Yu
Jiang, Ruizhe
Tang, Yuheng
Davies, Xander
Gal, Yarin
Li, Bo
Guo, Wenbo
Song, Dawn
contents Existing benchmarks for evaluating the security risks and capabilities (e.g., vulnerability detection) of code-generating large language models (LLMs) face several key limitations: (1) limited coverage of risk and capabilities; (2) reliance on static evaluation metrics such as LLM judgments or rule-based detection, which lack the precision of dynamic analysis; and (3) a trade-off between data quality and benchmark scale. To address these challenges, we introduce a general and scalable benchmark construction framework that begins with manually validated, high-quality seed examples and expands them via targeted mutations. Our approach provides a comprehensive suite of artifacts so the benchmark can support comprehensive risk assessment and security capability evaluation using dynamic metrics. By combining expert insights with automated generation, we strike a balance between manual effort, data quality, and benchmark scale. Applying this framework to Python, C/C++, and Java, we build SeCodePLT, a dataset of more than 5.9k samples spanning 44 CWE-based risk categories and three security capabilities. Compared with state-of-the-art benchmarks, SeCodePLT offers broader coverage, higher data fidelity, and substantially greater scale. We use SeCodePLT to evaluate leading code LLMs and agents, revealing their strengths and weaknesses in both generating secure code and identifying or fixing vulnerabilities.
format Preprint
id arxiv_https___arxiv_org_abs_2410_11096
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SeCodePLT: A Unified Platform for Evaluating the Security of Code GenAI
Nie, Yuzhou
Wang, Zhun
Yang, Yu
Jiang, Ruizhe
Tang, Yuheng
Davies, Xander
Gal, Yarin
Li, Bo
Guo, Wenbo
Song, Dawn
Cryptography and Security
Artificial Intelligence
Existing benchmarks for evaluating the security risks and capabilities (e.g., vulnerability detection) of code-generating large language models (LLMs) face several key limitations: (1) limited coverage of risk and capabilities; (2) reliance on static evaluation metrics such as LLM judgments or rule-based detection, which lack the precision of dynamic analysis; and (3) a trade-off between data quality and benchmark scale. To address these challenges, we introduce a general and scalable benchmark construction framework that begins with manually validated, high-quality seed examples and expands them via targeted mutations. Our approach provides a comprehensive suite of artifacts so the benchmark can support comprehensive risk assessment and security capability evaluation using dynamic metrics. By combining expert insights with automated generation, we strike a balance between manual effort, data quality, and benchmark scale. Applying this framework to Python, C/C++, and Java, we build SeCodePLT, a dataset of more than 5.9k samples spanning 44 CWE-based risk categories and three security capabilities. Compared with state-of-the-art benchmarks, SeCodePLT offers broader coverage, higher data fidelity, and substantially greater scale. We use SeCodePLT to evaluate leading code LLMs and agents, revealing their strengths and weaknesses in both generating secure code and identifying or fixing vulnerabilities.
title SeCodePLT: A Unified Platform for Evaluating the Security of Code GenAI
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2410.11096