SteelYourHeart 基准:195 个不完整安全修复,测试 LLM 能否识破可绕过的防护
SteelYourHeart: Catching LLMs Taking Shortcuts in Vulnerability Detection
做安全审计或用 LLM 扫漏洞的团队该看看这个基准。它专挑那些带安全检查但检查可被绕过的代码,四个被测模型最高也只有约七成能说清绕过路径,还有模型自己能发现漏洞却放过了有漏洞的补丁。比传统只看结论对错的基准更能暴露模型走捷径的问题。
普渡团队等发布 SteelYourHeart 基准,收录来自 136 个代码仓库的 195 个不完整安全修复案例,用后续补丁封堵的已记录绕过方式作为评分参考,检验 LLM 是否真的验证了防护完整性。
多数漏洞检测基准只看模型结论对错,不检查解释是否正确描述防护是否可被绕过,这个基准补上了这最后一步。作者在检测和补丁审查两种设置下测试四个 LLM:检测任务中仅 36.
4-71.3% 的回答能正确判定代码可利用并解释参考绕过方式,只按结论评分会把成绩虚高 7.
7-23.6 个百分点;
补丁审查中匹配参考的通过率升到 65.6-77.
9%。更值得注意的是,在 421 组检测中答对的模型-案例组合里,有 22 组同一个模型在补丁审查时却批准了这份不完整修复,说明聚合审查分数可能掩盖对个别修复的判断退化。
SteelYourHeart: Catching LLMs Taking Shortcuts in Vulnerability Detection
Large language models (LLMs) are used to detect vulnerabilities and review security patches. In both tasks, a model may judge code safe because it contains a security check, or guard, without examining whether the check can be bypassed. Many vulnerability detection benchmarks primarily evaluate the correctness of model verdicts, without assessing whether their explanations correctly characterize the effectiveness of the guard. To address this gap, we introduce SteelYourHeart, a benchmark of 195 incomplete security fixes from 136 repositories. Each case provides code after an initial fix and uses a documented bypass closed by a follow-up patch as a reference for scoring model explanations. We evaluate four LLMs on the same cases in two settings. Both provide the vulnerability class and the relevant code, while patch review also presents the changes made by the initial patch as a proposed fix. Our evaluation shows that current LLMs do not reliably verify that a guard is complete. In detection, 36.4-71.3% of responses correctly identify the code as exploitable and explain a reference bypass. Verdict-only scoring raises these rates by 7.7-23.6 percentage points. In patch review, reference-matched rates rise to 65.6-77.9%. Yet in 22 of the 421 model-case pairs answered correctly in detection, the same model approves the incomplete patch in review. These results establish SteelYourHeart as a testbed for the final step of vulnerability detection, and show that verdicts can overstate detection performance and that gains in aggregate patch-review scores can conceal regressions on individual fixes.
本条情报归属 AITOP「论文」核心栏目,重点聚焦北美前沿实验室与硅谷科技巨头。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」「中美大模型技术代差与商业化对照」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:SteelYourHeart、漏洞检测、LLM、代码安全,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Run Hao, Zhuoran Tan),经 AITOP 多维评分管线结构化提炼。