LLMSecCode: Evaluating Large Language Models for Secure Coding

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Rydén, Anton, Näslund, Erik, Schiller, Elad Michael, Almgren, Magnus
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913484764086272
author Rydén, Anton
Näslund, Erik
Schiller, Elad Michael
Almgren, Magnus
author_facet Rydén, Anton
Näslund, Erik
Schiller, Elad Michael
Almgren, Magnus
contents The rapid deployment of Large Language Models (LLMs) requires careful consideration of their effect on cybersecurity. Our work aims to improve the selection process of LLMs that are suitable for facilitating Secure Coding (SC). This raises challenging research questions, such as (RQ1) Which functionality can streamline the LLM evaluation? (RQ2) What should the evaluation measure? (RQ3) How to attest that the evaluation process is impartial? To address these questions, we introduce LLMSecCode, an open-source evaluation framework designed to assess LLM SC capabilities objectively. We validate the LLMSecCode implementation through experiments. When varying parameters and prompts, we find a 10% and 9% difference in performance, respectively. We also compare some results to reliable external actors, where our results show a 5% difference. We strive to ensure the ease of use of our open-source framework and encourage further development by external actors. With LLMSecCode, we hope to encourage the standardization and benchmarking of LLMs' capabilities in security-oriented code and tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2408_16100
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LLMSecCode: Evaluating Large Language Models for Secure Coding
Rydén, Anton
Näslund, Erik
Schiller, Elad Michael
Almgren, Magnus
Cryptography and Security
Distributed, Parallel, and Cluster Computing
The rapid deployment of Large Language Models (LLMs) requires careful consideration of their effect on cybersecurity. Our work aims to improve the selection process of LLMs that are suitable for facilitating Secure Coding (SC). This raises challenging research questions, such as (RQ1) Which functionality can streamline the LLM evaluation? (RQ2) What should the evaluation measure? (RQ3) How to attest that the evaluation process is impartial? To address these questions, we introduce LLMSecCode, an open-source evaluation framework designed to assess LLM SC capabilities objectively. We validate the LLMSecCode implementation through experiments. When varying parameters and prompts, we find a 10% and 9% difference in performance, respectively. We also compare some results to reliable external actors, where our results show a 5% difference. We strive to ensure the ease of use of our open-source framework and encourage further development by external actors. With LLMSecCode, we hope to encourage the standardization and benchmarking of LLMs' capabilities in security-oriented code and tasks.
title LLMSecCode: Evaluating Large Language Models for Secure Coding
topic Cryptography and Security
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2408.16100