arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.10148cs.SE
收藏

使用大型语言模型生成Web漏洞概念证明的系统性研究

A Systematic Study on Generating Web Vulnerability Proof-of-Concepts Using Large Language Models

Tianjin University(天津大学);Nanyang Technological University(南洋理工大学);Nankai University(南开大学)

Mengyao Zhao, Kaixuan Li, Lyuye Zhang, Wenjing Dang, Chenggong Ding, Sen Chen, Zheli Liu

AI总结:

本文首次系统研究了利用大型语言模型结合公开披露信息生成Web漏洞概念证明(PoC)的可行性,发现补充代码上下文与自适应推理策略能将成功率最高提升至72%。

摘要:

大型语言模型(LLMs)的最新进展为代码理解和推理带来了显著进步,为软件安全创造了新机遇并引发了新关注。在众多下游任务中,生成概念证明(PoC)漏洞利用在漏洞复现、理解和缓解中发挥着核心作用。尽管先前的研究主要集中在零日漏洞利用,但随已披露CVE提供的丰富公开信息日益增多,引出了一个自然的问题:LLMs能否有效利用这些信息自动生成有效的PoC?本文首次对基于LLM的Web应用漏洞PoC生成进行了实证研究,重点关注利用公开披露信息的实际可行性。我们在三个漏洞披露阶段,对100个真实且可复现的CVE评估了GPT-4o和DeepSeek-R1:(1)仅包含描述的新披露漏洞,(2)带有补丁的1-day漏洞,(3)带有完整上下文代码的N-day漏洞。结果表明,LLMs在8%-34%的案例中能仅使用公开数据自动生成有效的PoC,其中DeepSeek-R1始终优于GPT-4o。进一步分析表明,补充代码上下文可将成功率提高17%-20%,其中函数级上下文比文件级上下文高出9%-13%。进一步将自适应推理策略集成到提示优化中,将成功率显著提升至68%-72%。研究结果表明,LLMs可能重塑漏洞利用的动态。迄今为止,已有23个新生成的PoC被NVD和Exploit DB接受。

英文摘要:

Recent advances in Large Language Models (LLMs) have brought remarkable progress in code understanding and reasoning, creating new opportunities and raising new concerns for software security. Among many downstream tasks, generating Proof-of-Concept (PoC) exploits plays a central role in vulnerability reproduction, comprehension, and mitigation. While previous research has focused primarily on zero-day exploitation, the growing availability of rich public information accompanying disclosed CVEs leads to a natural question: can LLMs effectively use this information to automatically generate valid PoCs? In this paper, we present the first empirical study of LLM-based PoC generation for web application vulnerabilities, focusing on the practical feasibility of leveraging publicly disclosed information. We evaluate GPT-4o and DeepSeek-R1 on 100 real-world and reproducible CVEs across three stages of vulnerability disclosure: (1) newly disclosed vulnerabilities with only descriptions, (2) 1-day vulnerabilities with patches, and (3) N-day vulnerabilities with full contextual code. Our results show that LLMs can automatically generate working PoCs in 8%-34% of cases using only public data, with DeepSeek-R1 consistently outperforming GPT-4o. Further analysis shows that supplementing code context improves success rates by 17%-20%, with function-level providing 9%-13% improvement than file-level ones. Further integrating adaptive reasoning strategies to prompt refinement significantly improves success rates to 68%-72%. Our findings suggest that LLMs could reshape vulnerability exploitation dynamics. To date, 23 newly generated PoCs have been accepted by NVD and Exploit DB.

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

↑