Skip to content

The History Is the Detector: Executing CVE Patch History, End-to-End

Sep 2026 · 0 citations · 89 references
Computer Science

TL;DR

BUGSTONE-E2E, a framework that transforms vulnerability history into executable detection rules and validates their findings, demonstrates that CVE history can be turned into an executable workflow, transforming past vulnerabilities into reproducible detection and repair.

Abstract

Public vulnerability databases collect rich information about known software flaws, including their weakness types, affected components, and related patches. Fixing commits provide the exact code changes that removed these flaws. While these records capture why the original code was unsafe, they are documented mainly for human inspection rather than automated reuse. Consequently, the same unsafe conditions may still exist elsewhere in code without a known advisory, leaving much of this detection knowledge unused. We present BUGSTONE-E2E, a framework that transforms vulnerability history into executable detection rules and validates their findings. First, BUGSTONE-E2E mines reusable rules from verified fixing commits, capturing scan anchors, fix semantics, and CVE provenance and organizing them by CWE and language. Second, detection follows a funnel-shaped pipeline: early stages process a large pool of candidates using lightweight analysis, while later stages apply increasingly capable and expensive models to a shrinking set of targets. Specifically, BUGSTONE-E2E first enumerates call sites matching rule anchors using Tree-sitter, then removes benign sites using lightweight heuristics without LLM calls. Next, LLM-based agents inspect the remaining candidates guided by the rule. Following this inspection, the system re-triages surviving candidates and builds runtime verifications, then generates scope-checked patches validated via two-sided differential tests. Using 19,325 high-severity CVEs from 2022 to 2026, BUGSTONE-E2E identifies 2,710 fixing commits and constructs 1,033 detection rules across 56 CWE families, packaged into 172 skills. When applied across 14 programs, it produced runtime evidence for 644 findings. These results demonstrate that CVE history can be turned into an executable workflow, transforming past vulnerabilities into reproducible detection and repair.

View source

Similar papers

#small language model Preprint Sep 2026

Labelling Bug-Fixing Commits with Local Open-Weight Language Models

This paper examines whether commits can be labelled as bug fixes from their content alone, using open-weight language models that run locally and therefore keep the process reproducible, inexpensive at corpus scale, usable on proprietary code, and independent of any issue tracker.

Philip König, Georg Goldenits, Caroline König et al. · 0 citations
Preprint Sep 2026

One Pipeline Does Not Fit All: TAILOR, a Type- and State-Aware Framework for CVE Reproduction

TAILOR broadens the coverage of automated CVE reproduction and provides auditable evidence for vulnerability diagnosis and defense and ablation experiments show that the two control levels respectively mitigate execution-path mismatch and missing Web prerequisite state.

Ji He, Huang Zhang, Li-Jie Zheng et al. · 0 citations
Preprint Sep 2026

COMPASS: Predicting the Relationship of Multiple Patches for Vulnerabilities with LLMs

Modern software heavily relies on code reuse, so upstream vulnerability fixes do not automatically propagate to downstream codebases. Downstream maintainers must manually adopt patches to eliminate known risks. In practice, a single vulnerability often corresponds to multiple patches, which greatly complicates downstre...

Yi Song, Dong-Chen Xie, Xiao-Yuan Xie et al. · 0 citations
#artificial intelligence Preprint Sep 2026

TyPatch: Transforming Patches into Typestate Rules for Kernel Bug Detection

TyPatch is presented, which decouples patch-specific defect semantics from analyzer implementation and uses 88.3-90.1% fewer generation tokens than the state-of-the-art complete-checker construction workflow, while its initial report pools achieve 3.95 times the precision of those produced by that workflow.

Ruo-Yu Wang, Tuo Li, Jia Li · 0 citations
#artificial intelligence Review Oct 2026

VulValidate: Auditing Function-Level Vulnerability Labels with Executable Evidence

VulValidate is presented, a framework that uses LLM agents to coordinate dynamic analysis tools and construct vulnerability-triggering experiments from runtime feedback that reconstructs vulnerable and fixed revisions, selects suitable tools and execution paths, refines triggering inputs, and compares runtime behavior...

Lei-Zhen Zhang, Sheng Chen · 0 citations

Related blog posts

Microsoft Research Blog Oct 30, 2026

From synthetic enterprise data evaluations to real Microsoft Copilot AI confidence

Evaluating Microsoft Copilot at enterprise scale requires test data that captures the full complexity of real organizations, yet real enterprise data contains sensitive information that cannot be used for evaluation under any circumstances. The post From synthetic enterprise data evaluations to real Microsoft Copilot AI confidence appeared first on Microsoft Research.

GPT-Lab Oct 30, 2026

Black October? The Week AI Changed the Cybersecurity Conversation

Critical flaws, compromised release channels and agentic AI threats landed within days of each other in mid-October 2026. Why “Black October” may say more about how well we now find weaknesses than about the attacks themselves. The post Black October? The Week AI Changed the Cybersecurity Conversation appeared first on GPT-Lab.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.