论文精选

新基准测试评估AI模型定位软件漏洞的能力

Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scale

精选理由

这个研究挺有意思,它专门测试AI模型能不能在大型代码库里精准找到漏洞相关的代码文件,而不是只检测到漏洞。这对安全很重要。

研究人员发布了一个名为VLoc Bench的新基准测试,用于评估AI模型在大型软件仓库中定位漏洞的能力。该测试包含500个真实世界的漏洞,覆盖290个仓库和147个CWE类别。在测试中,AI模型需要在收到CWE描述和只读终端访问权限的情况下,从仓库快照中识别出相关文件。目前最强的系统在文件F1指标上仅达到0.229,38.4%的任务没有任何模型能正确定位。

原文 · arXiv cs.AI

Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scale

Language-model agents increasingly operate over complete software repositories, yet cybersecurity evaluations primarily measure whether they can detect, reproduce, or repair vulnerabilities rather than whether they can locate the relevant code. We study vulnerability localization: given a weakness class and an unfamiliar repository, identify the implementation files associated with that weakness. We introduce the Vulnerability Localization Benchmark (VLoc Bench), comprising 500 real world vulnerabilities from 290 repositories across six package ecosystems and 147 CWE categories. Each task pairs repository snapshots immediately before and after a security fix. On the vulnerable snapshot, an agent receives only the CWE description and read-only terminal access and must return the affected files; on the patched snapshot, it must determine that the recorded vulnerability is no longer present. We evaluate 27 language models and four static-analysis tools under a common agent interface. Repository-scale vulnerability localization remains difficult: the strongest system achieves 0.229 File F1, and 38.4% of tasks receive no correct localization from any evaluated model. We further find that stronger localization does not imply reliable behavior after remediation: systems that identify vulnerable files effectively can still report unsupported locations on patched repositories. These results establish vulnerability localization as a distinct repository-scale capability and provide a setting for studying both how security agents search for vulnerable code and when they should refrain from reporting it.