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

评估LLMs在真实世界Web漏洞检测中的表现

Evaluating LLMs for Real-World Web Vulnerability Detection

Technische Universität Berlin(柏林技术大学);Freie Universität Berlin(柏林自由大学)

Sebastian Neef, Luca Jungnickel, Antonio Benjamin Buchholz, Valene Spence, Vicente Birke Gonzalez

AI总结:

本研究通过基准测试六种前沿和开源LLMs在WordPress插件静态分析中的Web漏洞检测能力,发现模型和提示设计显著影响检测率,其中Claude Opus 4.6达到最高63%,但所有模型均存在报告不一致问题。

摘要:

大型语言模型(LLMs)已成为自动化漏洞检测的有前景工具,但其在Web特定漏洞上的有效性仍有待探索。本研究对六种前沿模型(Claude Opus 4.6、Codex GPT-5.4、Gemini 3.1-pro-preview)和开源模型(Qwen 3.5、Qwen 3 Coder Next、MiniMax M2.5)进行了基准测试,评估它们使用静态分析检测WordPress插件中真实世界Web漏洞的能力,包括SQL注入、存储型跨站脚本、路径遍历和远程代码执行。通过三次实验迭代中使用五种不同结构、范围和复杂度的提示设计,我们旨在回答模型和提示选择如何影响漏洞检测。结果表明,所有模型都能检测到有效的安全问题,但检测率因模型和提示而异。例如,Claude Opus 4.6实现了最高的Web漏洞检测率(63%),而开源MiniMax M2.5与其他前沿模型表现相当(48%),自托管的Qwen 3.5仅达到35%。我们显示,缩小漏洞范围的提示优于开放式提示,而提示复杂度影响不大。令人惊讶的是,没有模型在三次实验迭代中实现完全的报告一致性,有些低至50%。我们的实验展示了基于LLM的漏洞检测的机会和局限性,因为没有一个模型正确识别了其中一个插件中的一个基线漏洞。此外,我们为安全从业者总结了实用的经验教训,并发布了所有代码和数据以支持未来研究。

英文摘要:

Large Language Models (LLMs) have emerged as a promising tool for automated vulnerability detection, yet their effectiveness on web-specific vulnerabilities remains to be explored. This work benchmarks six frontier (Claude Opus 4.6, Codex GPT-5.4, Gemini 3.1-pro-preview) and open-weight models (Qwen 3.5, Qwen 3 Coder Next, MiniMax M2.5) on their ability to detect real-world web vulnerabilities using static analysis in WordPress plugins, including SQL injection, stored cross-site scripting, path traversal, and remote code execution. Using five prompt designs of varying structure, scope, and complexity across three experiment iterations, we aim to answer how model and prompt choice affects vulnerability detection. Our results show that all models are capable of detecting valid security issues, but the detection rate varies depending on the model and prompt. For example, Claude Opus 4.6 achieved the highest web vulnerability detection rate (63%), while open-weight MiniMax M2.5 performs on par with other frontier models (48%), and self-hosted Qwen 3.5 only achieved 35%. We show that scoped prompts that narrow the vulnerability scope outperform open-ended ones, whereas the prompt complexity has little impact. Surprisingly, no model achieved full reporting consistency across three experiment iterations, with some as low as 50%. Our experiments demonstrate the opportunities and limits of LLM-based vulnerability detection, as no model correctly identified one baseline vulnerability in one of the plugins. Additionally, we derive practical lessons learned for security practitioners and publish all code and data to support future research.

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

↑