Mixed-Initiative Mining of Root-Cause Analyses into Audit Priors for C/C++ Vulnerability Hunting
Abstract
Vulnerability auditing of large C/C++ codebases is constrained by limited review attention. Human auditors and LLM-based agents need operational priors that indicate where to look first and what to suspect, but such priors are rarely available in directly usable form. Rather than proposing a new vulnerability detector, we derive audit-steering artifacts from evidence-backed root-cause analysis (RCA) reports. We introduce two complementary representations: Occurrence Context (OC), a location prior based on file role, function role, and data-structure class; and Vulnerability-Inducing Structural Patterns (VISP), reusable failure-mechanism priors. OC guides where to inspect, while VISP guides what to suspect. On 108 CVEs from Vul4C, OC's parser-based priority ranking, without LLM inference, outperforms generic prioritization baselines with moderate-to-large effect sizes. Packaged as executable SKILLs, OC and VISP form a dual-SKILL workflow that improves audit-relevant broad coverage, defined as match-or-partial findings within ground-truth functions that share the patch's failure mechanism, as assessed by three LLM judges. Across the 108-CVE cohort, dual-SKILL improves function-level broad matches by 5.3 percentage points; gains reach 7.2 points on mid-size projects and 15.0 points on large (1500-4999-line) vulnerable files. These results suggest that RCA-derived priors help direct limited audit attention toward vulnerable code. The agent-coverage evaluation is a single-run operational probe, with one run per commit, characterizing the direction and scale of the effect rather than its precise magnitude.
Create a lesson
Metadata
- Comments
- 25 pages. Preprint
Related papers
Mjolnir: Finding and Reproducing Vulnerabilities in Root-of-Trust Firmware and RTL with Project-Grounded Agents
Shared title terminologycs.CRCollin MacDonald, Carl Lundin, Stephen Herwig et al.
Per-Attack Blocking Hides Catalog Vulnerability: A Weakest-Link Analysis of Tool Manifests
Shared title terminologycs.CRKarthik Karunanithi
The Privacy Cost of Writing an Audit Receipt Before Its Context Is Known
Shared title terminologycs.CRFaruk Alpay, Taylan Alpay
POMA: Beyond Final Flags -- Process-Level Evaluation of Base LLMs in Vulnerability Exploitation
Shared title terminologycs.CRGufeng Zhang, Yiru Zhao, Shengyu Liu et al.
FORGETMENOT: Auditing Memory Driven Privacy Risks in Commercial AI Agents
Shared title terminologycs.CRIsmat Jarin, Tu Le, Athina Markopoulou
Watermark Claims Under Test: Lessons from Auditing a Production LLM
Shared title terminologycs.CRFelix Desyatirikov