AgenticVulHunter:将本地智能体漏洞挖掘带到你的终端
AgenticVulHunter: Bringing Local Agentic Vulnerability Hunting to Your Terminal
AI总结:
本文提出AgenticVulHunter,一种可在本地开放权重LLM上运行的智能体安全代码审查工具,在SCRBench的144个漏洞案例上,其准确率优于复现的AgenticSCR方法。
摘要:
在漏洞影响生产系统前尽早发现它们,对于降低软件攻击风险至关重要。然而,在安全代码审查期间检测漏洞仍然困难,因为漏洞代码逻辑可能依赖于仓库不同文件中的代码行。近期的方法如AgenticSCR表明,大语言模型(LLM)智能体可以探索仓库文件并利用安全知识来改进安全代码审查。但这些方法主要依赖外部商业LLM,且能一次性为智能体提供大量安全知识,这引发了一个重要问题:使用本地部署的开放权重LLM,结合更聚焦且相关的安全知识,是否也能有效执行智能体安全代码审查?本文提出AgenticVulHunter,一种可在本地部署开放权重LLM上运行的智能体安全代码审查方法与工具。我们使用Qwen3-Coder-30B和DeepSeek V3.1 Terminus,在SCRBench的144个漏洞案例上评估AgenticVulHunter,测量生成的审查注释正确识别漏洞位置、匹配漏洞类型并提供相关安全审查注释的百分比。AgenticVulHunter使用Qwen3-Coder-30B的准确率为18.4%,使用DeepSeek V3.1 Terminus的准确率为23.8%;相比之下,我们基于Qwen3-Coder-30B复现的AgenticSCR风格方法准确率为11.8%,使用Claude Sonnet 4的AgenticSCR准确率为17.5%。
英文摘要:
Finding vulnerabilities early, before they can affect the production system, is important for reducing the risk of any software attacks. However, detecting vulnerabilities during secure code review is still difficult because the vulnerable code logic may depend on lines found across different repository files. Recent approaches such as AgenticSCR have shown that LLM agents can explore repository files and use security knowledge to improve secure code review. However, these approaches mainly rely on external commercial LLMs and can provide a large amount of security knowledge to the agent at once. This creates an important question of whether agentic secure code review can also be performed effectively using locally deployed open-weight LLMs with more focused and relevant security knowledge. In this paper, we propose AgenticVulHunter, an agentic secure code review approach and tool that can run with a locally deployed open-weight LLM. We evaluate AgenticVulHunter on 144 vulnerability cases from SCRBench using Qwen3-Coder-30B and DeepSeek V3.1 Terminus. We measure what percentage of generated review comments correctly identify the vulnerable location, match the vulnerability type, and provide a relevant security review comment together. AgenticVulHunter achieves an accuracy of 18.4% with Qwen3- Coder-30B and 23.8% with DeepSeek V3.1 Terminus, compared with 11.8% for our AgenticSCR-style reproduction using Qwen3-Coder-30B and 17.5% for AgenticSCR using Claude Sonnet 4.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。