arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.01065cs.CRcs.AI
收藏

脚本小子的好消息?评估大型语言模型用于自动化漏洞利用生成

Good News for Script Kiddies? Evaluating Large Language Models for Automated Exploit Generation

UNSW Sydney(新南威尔士大学悉尼分校);Commonwealth Scientific and Industrial Research Organisation (CSIRO) Data61(澳大利亚联邦科学与工业研究组织(CSIRO)Data61)

David Jin, Qian Fu, Yuekang Li

AI总结:

本文首次系统评估了大型语言模型在自动化漏洞利用生成中的有效性与合作意愿,发现GPT-4和GPT-4o合作意愿高但均无法为重构代码生成漏洞利用程序,揭示了其潜力与局限。

摘要:

大型语言模型(LLMs)在代码相关任务中展现了卓越能力,引发了对其在自动化漏洞利用生成(AEG)方面潜力的担忧。本文首次系统研究了LLMs在AEG中的有效性,评估了其合作意愿与技术熟练度。为减轻数据集偏差,我们引入了一个包含五个软件安全实验室重构版本的基准。此外,我们设计了一个基于LLM的攻击者,以系统地提示LLMs生成漏洞利用程序。实验表明,GPT-4和GPT-4o表现出高合作意愿,与未审查模型相当,而Llama3最具抵抗力。然而,没有模型能成功为重构后的实验室生成漏洞利用程序,尽管GPT-4o的极小错误突显了LLM驱动的AEG进步的潜力。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable capabilities in code-related tasks, raising concerns about their potential for automated exploit generation (AEG). This paper presents the first systematic study on LLMs' effectiveness in AEG, evaluating both their cooperativeness and technical proficiency. To mitigate dataset bias, we introduce a benchmark with refactored versions of five software security labs. Additionally, we design an LLM-based attacker to systematically prompt LLMs for exploit generation. Our experiments reveal that GPT-4 and GPT-4o exhibit high cooperativeness, comparable to uncensored models, while Llama3 is the most resistant. However, no model successfully generates exploits for refactored labs, though GPT-4o's minimal errors highlight the potential for LLM-driven AEG advancements.

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

↑