arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.10969cs.LGcs.CLcs.CRcs.SE
收藏

TOSSS: 基于CVE的软件安全基准用于大语言模型

TOSSS: a CVE-based Software Security Benchmark for Large Language Models

University of Twente(特文特大学);CWI Amsterdam(阿姆斯特丹信息与计算科学研究所);Erasmus University Rotterdam(埃因霍温大学 Rotterdam分校);Modat

Marc Damie, Murat Bilgehan Ertan, Domenico Essoussi, Angela Makhanu, Gaëtan Peter, Roos Wensveen

AI总结:

本文提出TOSSS基准,用于评估大语言模型在选择安全与易受攻击代码片段能力,通过CVE数据库提供可扩展框架,评估14种模型在C/C++和Java代码中的安全得分,范围0.48至0.89。

摘要:

随着能力的提升,大语言模型(LLMs)被广泛应用于多个行业,成为软件工程师的有用工具,支持多种开发任务。随着LLMs在软件开发流程中的使用增加,一个关键问题浮现:LLMs在软件安全方面表现如何?同时,全球组织在网络安全方面投入大量资源以减少受到破坏性攻击的风险。将LLMs整合到软件工程流程中可能引入新的漏洞并削弱现有安全措施。我们引入TOSSS(Two-Option Secure Snippet Selection),一个衡量LLMs在安全与易受攻击代码片段之间选择能力的基准。现有的LLMs安全基准仅涵盖有限的漏洞范围。相比之下,TOSSS依赖CVE数据库,提供可扩展的框架,能够随时间整合新披露的漏洞。我们的基准为每个模型提供0到1之间的安全分数;1表示模型始终选择安全片段,0表示始终选择易受攻击的片段。我们评估了14种广泛使用的开源和闭源模型,在C/C++和Java代码中观察到分数范围从0.48到0.89。LLM提供者已经发布了许多基准分数,TOSSS可以成为这些报告中补充的安全相关分数。

英文摘要:

With their increasing capabilities, Large Language Models (LLMs) are now used across many industries. They have become useful tools for software engineers and support a wide range of development tasks. As LLMs are increasingly used in software development workflows, a critical question arises: are LLMs good at software security? At the same time, organizations worldwide invest heavily in cybersecurity to reduce exposure to disruptive attacks. The integration of LLMs into software engineering workflows may introduce new vulnerabilities and weaken existing security efforts. We introduce TOSSS (Two-Option Secure Snippet Selection), a benchmark that measures the ability of LLMs to choose between secure and vulnerable code snippets. Existing security benchmarks for LLMs cover only a limited range of vulnerabilities. In contrast, TOSSS relies on the CVE database and provides an extensible framework that can integrate newly disclosed vulnerabilities over time. Our benchmark gives each model a security score between 0 and 1 based on its behavior; a score of 1 indicates that the model always selects the secure snippet, while a score of 0 indicates that it always selects the vulnerable one. We evaluate 14 widely used open-source and closed-source models on C/C++ and Java code and observe scores ranging from 0.48 to 0.89. LLM providers already publish many benchmark scores for their models, and TOSSS could become a complementary security-focused score to include in these reports.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑