Metraipolis › archive › dc_f449a933a5f1

VulContextBench: A Benchmark for Security Context Retrieval in Coding Agents — arXiv:2609.32601

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.32601
License (as archived)
CC0-1.0
Archived
2026-10-07T22:34:35.697Z
SHA-256 of the archived text
c3e995560c74e787994670bf1924a0cf6973b8789b8aa4301d3fb0894feef22a
Stable URL of this page
https://metraipolis.com/documento/dc_f449a933a5f1

How to cite

VulContextBench: A Benchmark for Security Context Retrieval in Coding Agents — arXiv:2609.32601 — arXiv (en), https://arxiv.org/abs/2609.32601 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_f449a933a5f1 (Metraipolis archive dc_f449a933a5f1, sha256 c3e995560c74e787994670bf1924a0cf6973b8789b8aa4301d3fb0894feef22a)
BibTeX
@misc{dcf449a933a5f1,
  title = {VulContextBench: A Benchmark for Security Context Retrieval in Coding Agents — arXiv:2609.32601},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.32601},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_f449a933a5f1; sha256 c3e995560c74e787994670bf1924a0cf6973b8789b8aa4301d3fb0894feef22a},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.32601. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Vulnerability-detection benchmarks score the verdict an agent reaches, not the evidence it gathered. A model that recalls a CVE from pretraining therefore scores the same as one that traced the data flow. We study a task where this difference matters, deciding whether a commit introduces a vulnerability. Instead of scoring the verdict, we score whether the agent retrieved the code its conclusion depends on. We present VulContextBench, a benchmark of 111 vulnerability-introducing commits (VICs) across 83 repositories, 63 CWEs, and five languages. Existing datasets label such commits by tracing a fix back through the version history, which often points to the wrong commit. We therefore audit every case by hand against an explicit four-criterion definition of a VIC, so the benchmark does not inherit that label noise. Each case is annotated with gold context, 464 code blocks in total, each tagged by its role in the evidence for the vulnerability. We evaluate seven frontier models with precision, recall and F1 at three granularities (file, block, and line), scored separately on the context an agent viewed while exploring and on the context it finally declared as evidence. The gap between the two is the main finding. Every model opens most of the gold context while exploring, but reports only part of it as evidence. At the level of code blocks, the share of the gold context a model reports is 37 to 73 percentage points below the share it viewed. Qwen3-Coder-Next views 86.3% of the lines in annotated code blocks but cites only 12.9% in its final report. GPT-5.5, which cites the most, views 73% and reports 36%. These results highlight a gap between finding relevant code and selecting it for the final report, which verdict-level benchmarks cannot reveal.

Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-29 in cs.CR).
Categorie arXiv: Cryptography and Security (cs.CR).
Pagina del lavoro: https://arxiv.org/abs/2609.32601 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-07T22:13:03.670Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).