← Lab /AI/ML

CVE history can be turned into executable detection rules yielding 644 findings across 14 programs

BUGSTONE-E2E can automatically generate detection rules from CVE fix commits that successfully identify real vulnerabilities in multiple codebases

AI/ML arXiv 4 Sep 2026 Method Prototype evidence

Published as “The History Is the Detector: Executing CVE Patch History, End-to-End”

Why it matters

The work shows that historical CVE patches can be repurposed for automated detection and repair, but current recall and validation rates suggest further engineering before deployment at scale.

Summary

BUGSTONE-E2E can turn CVE fixing commits into 1,033 executable detection rules that, when run on 14 real-world programs, yield runtime evidence for 644 findings, but only 52% of known CVEs in a wolfSSL benchmark are recalled and only about a fifth of static candidates are confirmed at runtime.

What they found 6

  1. The pipeline mined 2,710 fixing commits and generated 1,033 detection rules across 56 CWE families.

    “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.”

  2. When applied to 14 programs, the system produced runtime evidence for 644 findings.

    “When applied across 14 programs, it produced runtime evidence for 644 findings.”

  3. Deterministic filtering removed 60.6% of candidates before model-based verification.

    “deterministic filtering reduces the aggregate Phase A candidate pool from approximately 745K to 293K, removing 60.6% of candidates before model-based verification.”

  4. On a rolled-back wolfSSL snapshot, BUGSTONE-E2E with gpt-5-mini recalled 33 of 64 CVEs (52%).

    “BUGSTONE-E2E with gpt-5-mini leads at 33 of 64 (52%)”

  5. Only 56 of 243 total findings appear in every of ten repeated runs, indicating reproducibility variance.

    “Of the 243 findings in the ten-run union, 56 appear in every run”

  6. Phase B reported 2,933 deduplicated findings, but Phase C obtained runtime evidence for only 644 of them.

    “Phase B reports 2,933 deduplicated findings. Finally, Phase C successfully obtains runtime evidence for 644 of these findings”

Caveats 5

  • Only about 22% (644/2,933) of static candidates receive runtime validation, limiting practical impact.
  • Recall on the wolfSSL benchmark is modest at 52%, leaving many known CVEs undetected.
  • Reproducibility is low: only 56 of 243 findings are stable across ten identical runs.
  • BUGSTONE-E2E targets recurring vulnerability conditions that can be anchored at or near security-relevant API use. Vulnerabilities that depend primarily on global protocol state, race conditions, or other API-independent logic may therefore have no corresponding rule even when they appear in the CVE corpus.
  • Three limits bound this comparison. First, ground truth is vendor-disclosed CVEs only and the clone we mined ends at 2026-06-24, so silently fixed bugs and later fixes are absent. Second, the match rule is enclosing-function identity, which is coarser than root-cause identity. Third, this is a single C/TLS target chosen because ground truth exists for it, so the recall ordering above is not a general ranking.

What’s new here 4

  • Automates conversion of CVE fixing commits into reusable, executable detection rules across 56 CWE families and multiple languages.
  • Combines deterministic static filtering with LLM-based semantic verification in a funnel-shaped pipeline to reduce analysis cost.
  • Adds end-to-end runtime validation and verified patch generation using two-sided differential testing.
  • Packages rules into modular "skills" that can be deployed across projects.