确定性SAST与AI安全智能体如何划分工作:Snyk VulnBench 2.0中的覆盖范围、管控策略与成本
How Deterministic SAST and AI Security Agents Divide the Work: Coverage, Harness Policy and Cost in Snyk VulnBench 2.0
AI总结:
本研究基于VulnBench 2.0基准,对比确定性SAST与9种AI安全配置的漏洞检测能力,发现两者结合可覆盖所有可比配置的上限,且AI引擎的表现受管控工具与模型共同影响。
摘要:
本研究旨在探究AI编码智能体与AI安全管控工具能发现确定性静态应用安全测试(SAST)无法发现的漏洞,以及它们会遗漏SAST能捕获的哪些漏洞。VulnBench 2.0是一个基准测试集,包含20个开源Web应用中108个经人工精心整理、攻击者可利用的漏洞,涉及Go、JavaScript/TypeScript、Python和Java语言,其中62个漏洞的数据流跨多个文件。判定漏洞被发现的标准为:需定位到漏洞的攻击者可控源点与危险汇点,且两者位置间隔不超过两行。本研究在单一盲测协议下评估了9种产品化配置:Snyk Code静态分析器、Claude Code的/security-review功能(含3种模型与资源设置,其中一种使用Snyk MCP服务器)、搭载GPT-5.6 Luna、Terra和Sol的Codex Security,以及搭载2种模型后端的DeepSec扫描器。评估结果显示,Snyk Code的宏观召回率达82.4%(108个漏洞中发现89个),采用Opus 5模型且资源为xhigh的Claude Code召回率为79.3%(108个中发现85个);两者在28个漏洞上存在分歧,分别发现16个和12个,分歧数量过少无法区分优劣。两种工具单独使用均不足够:两者结合可发现108个中的101个,达到7种可比配置的上限;且AI配置还报告了至少7个参考集未包含、Snyk Code未发现的真实漏洞。AI引擎的遗漏情况既取决于其模型,也取决于其管控工具:缺少Claude Code内置的审查策略时,同一模型在该策略排除或限制的漏洞类别中,仅发现16个漏洞,而原策略下为9个(补充测试在20个应用中的19个上进行);搭载GPT-5.6 Sol的Codex Security在文件级别定位到80个漏洞,在行级别仅定位到34个;DeepSec的无模型文件选择机制仅覆盖108个数据流中的56个。覆盖范围与成本仅存在松散关联。本研究的管控工具、测试用例、参考集及所有运行数据均公开。
英文摘要:
We ask what AI coding agents and AI security harnesses find that deterministic static application security testing (SAST) does not, and what they miss that SAST catches. VulnBench 2.0 is a benchmark of 108 hand-curated, attacker-reachable vulnerabilities in 20 open-source web applications in Go, JavaScript/TypeScript, Python and Java; 62 flow across more than one file. A finding is credited only if it locates the vulnerability's attacker-controlled source and its dangerous sink, each within two lines. We evaluate nine productized configurations under one blind protocol: the Snyk Code static analyzer, Claude Code's /security-review with three model and effort settings (one with the Snyk MCP server), Codex Security with GPT-5.6 Luna, Terra and Sol, and the DeepSec scanner with two model backends. Snyk Code reached 82.4% macro recall (89 of 108) and Claude Code with Opus 5 at xhigh effort 79.3% (85 of 108); they disagree on 28 vulnerabilities, split 16 to 12, too few to tell them apart. Neither engine was sufficient alone: together they reached 101 of 108, the ceiling of all seven comparable configurations combined, and the AI configurations also reported at least seven real vulnerabilities that the reference set did not contain and Snyk Code did not report. What an AI engine misses depends on its harness as much as on its model: without Claude Code's built-in review policy, the same model matched 16 instead of 9 of the 20 vulnerabilities in the classes that policy excludes or restricts (supplementary run on 19 of 20 applications); Codex Security with GPT-5.6 Sol located 80 vulnerabilities at file level but 34 at line level; DeepSec's model-free file selection kept a file from only 56 of the 108 flows. Coverage and cost were only loosely related. The harness, fixtures, reference sets and all run data are public.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。