Mixed-Initiative Mining of Root-Cause Analyses into Audit Priors for C/C++ Vulnerability Hunting

arXiv:2611.31744 · cs.CR · Submitted 2026-11-24 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.

Nadia: We're looking at the paper: "Mixed-Initiative Mining of Root-Cause Analyses into Audit Priors for C/C++ Vulnerability Hunting".

Title and authors: Elias: The authors, Yuhei Kawakoya, Eitaro Shioji, Yuto Otsuki, and Makoto Iwamura from NTT Social Informatics Laboratories are the ones proposing this method >

Nadia: They’re researchers working in the area of social informatics at NTT who have focused on how we can make security auditing more efficient for big C++ codebases >

Priya: It sounds like their focus is on bridging the gap between high-level vulnerability categories, like those from CWE, and the actual concrete structural configurations in code that cause those bugs >

Elias: Precisely. They’re arguing that current vulnerability taxonomies are too coarse to guide auditing directly because they don't tell you which specific configuration in the code should be suspected during a manual or LLM-assisted read >

Nadia: So, what’s the main idea of this paper, then? They’re not proposing a new detector for vulnerabilities; they are proposing these audit steering artifacts that supply those two crucial operational priors >

Priya: It sounds like they’re giving auditors a roadmap to follow instead of just throwing them at raw reports from past bugs >

Elias: It's about mining evidence-backed root-cause analysis reports into two complementary artifacts: Occurrence Context and Vulnerability-Inducing Structural Patterns >

The paper's summary: Nadia: So, let’s unpack those two artifacts a bit more. They call the first one Occurrence Context, which is essentially a location prior >

Elias: It models where vulnerabilities tend to cluster through a three-axis schema: file role, function role, and data-structure class >

Priya: That means if you know the file's job—say it’s a parser—and the function's job—say it’s header initialization—and the data structure class is a raw buffer, that tells you exactly where to look first >

Nadia: And then they have Vulnerability-Inducing Structural Patterns, which are failure-mechanism priors >

Elias: VISP captures recurring program structures that induce vulnerabilities, like access without a valid guard at the use site or arithmetic overflow before a bound check >

Priya: So one tells you where to look—the location—and the other tells you what kind of thing to suspect once you are looking there—the failure mechanism >

Nadia: And they package these into executable SKILL artifacts, which is a programming language used in some systems, so it’s designed to improve audit-relevant broad match detection inside ground-truth functions >

Elias: The combined dual SKILL workflow uses the Occurrence Context to assign roles and order the review queue by tier, then applies VISP for pattern-guided scanning >

The paper's improvements: Nadia: The paper describes a mixed-initiative protocol they used to build these artifacts, involving human framing, AI assistance, and validation >

Elias: They have five phases in this process: analyst proposes something, decomposes it, clusters it, and then populates the representations >

Priya: Building the VISP specifically involved directed exploration and pattern clustering based on questions about recurring vulnerability-inducing program structures >

Nadia: Then Occurrence Context came in later during gap recognition and schema construction because they realized VISP alone couldn't express the location-sensitive priors needed for budgeted auditing >

Elias: The protocol is governed by rules like evidence groundedness, distinct auditing questions, schema contract, and scale survival for promoting candidate abstractions >

Priya: The key promotion rule requires an abstraction to satisfy four conditions: it must be populable from explicit root cause evidence, have a distinct auditing question not covered elsewhere, admit explicit definitions and boundaries in its schema contract, and show promise for scale survival >

Nadia: And the results show that OC’s priority signal, when separated from VISP, outperforms generic baselines like random selection or cyclomatic complexity Top-N >

Conclusion: Elias: So what does this mean for practical auditing? The paper shows that OC’s priority signal alone concentrates sixty-three point one percent of the ground truth functions into only twenty-two percent of the function scope >

Nadia: That’s a big concentration. And when you combine the dual SKILL workflow, it improves audit relevant broad match detection by five point three percent at the function granularity >

Priya: It also gets eight point six percent improvement at the line plus thirty granularity when looking at large files under a fixed read budget >

Elias: The gain is scale-conditioned, rising to seven point two percent on mid-size projects and fifteen point zero percent on large files that are between one thousand five hundred and four thousand nine hundred ninety-nine lines long >

Nadia: But the paper does admit some limitations. It says the operational ceiling of this dual SKILL workflow is defined by a coupling between OC’s repository-wide scope and VISP’s implicit completion criterion >

Priya: That coupling causes a collapse on monolithic projects and those large ground truth files because the bounded output schema from VISP becomes the leading cue, which stops both file selection and within-file scanning before it gets to the patched function >

Elias: The localized VISP-only ablation shows that its gain concentrates entirely on files with over five thousand lines, recovering a delta of five point zero raw improvement >

Nadia: So, while the concept of using RCA reports to build OC and VISP is solid, scaling it up across truly massive projects still runs into issues with those monolithic structures >

Elias: The paper also points out that while AI can replay the research pathway, it cannot produce the same concrete artifact because human commitment is required to fix one specific instantiation >

Priya: That human commitment—fixing a specific pattern name and boundary definition—is what converts a replayable pathway into something actually reusable for auditors >

Nadia: So, that’s where the paper lands. It gives us tools, not a magic detector. The Mixed-Initiative Mining of Root-Cause Analyses into Audit Priors for C/C++ Vulnerability Hunting is a study proposing RCA-derived audit steering artifacts that supply these priors >

NTT Social Informatics Laboratories

cs.CR

Submitted: 2026-11-24

Updated: 2026-11-26

Comments: 25 pages. Preprint

Project page: https://tree-sitter.github.io/tree-sitter

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 92/100

The gist: Mixed-Initiative Mining of Root-Cause Analyses into Audit Priors for C/C++ Vulnerability Hunting is a study proposing RCA-derived audit-steering artifacts to supply reusable operational priors for…

Key concepts

Occurrence Context (OC)
OC models where vulnerabilities tend to cluster by analyzing three axes: file role, function role, and data-structure class. It provides a location prior for auditors by telling them which files or functions are most likely to contain bugs based on historical evidence.
Vulnerability-Inducing Structural Patterns (VISP)
VISP captures recurring program structures that cause vulnerabilities, such as missing guards or arithmetic overflows. This artifact provides a failure-mechanism prior, telling the auditor what kind of structural flaw to suspect when reviewing code.
Dual-SKILL Workflow
This is a two-step process where an initial SKILL uses OC to order the review queue by tier (location), and a second SKILL applies VISP patterns for guided scanning (mechanism). This combined approach structures the audit process efficiently, focusing effort where it matters most.
Evidence-Groundedness
This is a promotion criterion ensuring that any generated artifact—like a pattern or context label—must be directly supported by explicit evidence from RCA reports. It prevents the system from relying on intuition alone, ensuring the audit priors are based on concrete findings.

Terminology

Summary

Mixed-Initiative Mining of Root-Cause Analyses into Audit Priors for C/C++ Vulnerability Hunting is a study proposing RCA-derived audit-steering artifacts to supply reusable operational priors for auditing large C/C++ codebases. p. 0<ref:2611.31744#pg1, where the paper proposes RCA-derived audit-steering artifacts that supply these priors>. p. 0 The core contribution involves mining evidence-backed root-cause analysis (RCA) reports into two complementary artifacts: Occurrence Context (OC) for location priors and Vulnerability-Inducing Structural Patterns (VISP) for failure-mechanism priors. p. 0<ref:2611.31744#pg2>. These artifacts are packaged as executable SKILLs to improve audit-relevant broad-match detection inside ground-truth functions. p. 0<ref:2611.31744#pg2, where the combined dualSKILL workflow improves audit-relevant 3-LLM-judge broad coverage—match-or partial findings inside the ground-truth function that share the patch’s failure mechanism>. p. 0

The Artifacts and Their Purpose

The paper introduces two complementary representations: Vulnerability-Inducing Structural Patterns (VISP), which captures recurring program structures that induce vulnerabilities, and Occurrence Context (OC), which models where vulnerabilities tend to cluster through a three-axis schema of file role, function role, and data-structure class.<ref:2611.31744#pg2, where VISP captures recurring program structures that induce vulnerabilities—for example, access without a valid guard at the use site, cross-field consistency failures between header-derived values, or arithmetic overflow before a bound check>. p. 1 Together, VISP tells an auditor what to suspect (a failure-mechanism prior) and OC tells them where to look first (a location prior). p. 1<ref:2611.31744#pg2, where Together, VISP tells an auditor what to suspect (a failure-mechanism prior) and OC tells them where to look first (a location prior), restructuring the order in which code is explored and broadening the set of plausible findings returned>. p. 1 These artifacts are packaged as executable SKILLs, allowing for a dual-SKILL workflow that first uses OC to assign roles and order the review queue by tier, then applies VISP for pattern-guided scanning. p. 6<ref:2611.31744#pg5>.

How the Training Signal is Built

The representations are built through a governed mixed-initiative protocol involving human framing, AI-assisted synthesis, and incremental validation.<ref:2611.31744#pg4, where the process proceeds through five phases (P1–P5), as the analyst proposes, decomposes, clusters, and populates>. p. 4 VISP is formed through P1 (Directed Exploration) and P2 (Pattern Clustering) under a directed question about recurring vulnerability-inducing program structures. p. 4<ref:2611.31744#pg4>. OC enters the process in P3 (Gap Recognition and Schema Construction) after the analyst recognizes that VISP alone cannot express the location-sensitive priors needed for budgeted auditing. p. 4<ref:2611.31744#pg5, where OC entered the process for a different reason>. p. 4 The protocol is governed by rules such as promotion criteria requiring evidence-groundedness, distinct auditing questions, schema contract, and scale survival. p. 4<ref:2611.31744#pg6, where Promotion rule. p. 3 A candidate abstraction is promoted to a first-class representation only when it satisfies all four conditions: 1) evidence-groundedness — populable from explicit RCA evidence; 2) distinct auditing question — not already covered by another retained representation; 3) schema contract — admits explicit definitions and boundary conditions; and 4) scale survival — appears likely to survive scale-up with bounded refinement >. p. 5

Where the Gains Come From

The evaluation demonstrates that OC’s priority signal, when isolated from VISP, outperforms generic prioritization baselines such as Random selection, cyclomatic complexity Top-N [16], and SAST alert density Top-N.<ref:2611.31744#pg9, where OC’s P1+P2 tier concentrates 63. p. 81% of GT functions into 22% of the function scope>. p. 6 This performance is driven by the AST-pattern heuristics H1 and H2, which fire on structural cues empirically associated with recurring vulnerability mechanisms. p. 6<ref:2611.31744#pg9>. The combined dualSKILL workflow improves audit-relevant 3-LLM-judge broad coverage by +5. p. 03 pp at the Func granularity and +8. p. 16 pp at the Line ±30 granularity at the aggregate level over the 108-CVE cohort. p. 9<ref:2611.31744#pg6>. The gain is scale-conditioned, rising to +7. p. 02 pp on mid-size projects and +15. p. 00 pp on large (1500–4999 line) vulnerable files. p. 0<ref:2611.31744#pg6>.

Limitations and Operational Ceiling

The operational ceiling of the dual-SKILL workflow is defined by a coupling between OC’s repository-wide scope and VISP’s implicit completion criterion, which collapses on monolithic projects and monolithic-parser GT files.<ref:2611.31744#pg16, where the coupling of OC’s repository-wide scope with VISP’s implicit completion criterion (its bounded output schema being the leading cue) collapses both file selection and within-file scanning before the patched function is reached>. p. 3 The localized VISP-only ablation shows that its gain concentrates entirely on D bucket files (5000+ lines), where it recovers ∆ = +5. p. 90 raw, +23. p. 08 pp.<ref:2611.31744#pg22>. This suggests that the coupling of OC’s repository-wide scope with VISP’s implicit completion criterion is the primary cause of collapse on monolithic projects and monolithic-parser GT files. p. 9<ref:2611.31744#pg22, where the coupling of OC’s repository-wide scope with VISP’s implicit completion criterion (its bounded output schema being the leading cue) is the leading cue>. p. 6

Human Judgment and Replayability

The paper concludes that while AI can replay a research pathway, it cannot produce the same concrete artifact because human commitment to one specific instantiation is required.<ref:2611.31744#pg23, where the strongest negative result is that candidate-name convergence remains 0% across all replay families>. The irreducibly human contributions include commitment (fixing one instantiation among functionally equivalent alternatives), validation investment, and completion judgment. p. 2<ref:2611.31744#pg24, where the analyst committed to specific pattern names, boundary definitions, and schema axes among multiple AI-proposed alternatives—an irreducible commitment that converts a replayable pathway into a reusable artifact>. p. 4 The primary operational claim is the RQ2 ranking advantage and the RQ3 breadth gain described above. p. 6<ref:2611.31744#pg10>.

Conclusion

First, we mined evidence-backed RCA reports of past C/C++ vulnerabilities into two complementary representations—VISP (what to suspect) and OC (where to look first)—and packaged them as executable SKILLs.<ref:2611.31744#pg10>. Second, OC’s priority signal, evaluated in isolation on a 108-CVE Vul4C subset by a parser-based, no-LLM ranker under a matched function-budget, outperforms random selection, cyclomatic complexity Top-N, and SAST alert density with moderate-to-large effect sizes. p. 1<ref:2611.31744#pg10, where Second, OC’s priority signal, evaluated in isolation on a 108-CVE Vul4C subset by a parser-based, no-LLM ranker under a matched function-budget, outperforms random selection, cyclomatic complexity Top-N [16], and SAST alert density Top-N with moderate-to-large effect sizes>. p. 1 Third, in a single-run operational probe, the dualSKILL workflow broadens audit-relevant 3-LLM-judge broadmatch detection inside ground-truth functions by +5. p. 93 pp at the Func granularity at the aggregate level over the 108-CVE cohort. p. 0<ref:2611.31744#pg6>. Fourth, the effect is bounded along project-size and GT-file-size axes, concentrating on mid-size projects and 1500–4999 line GT files. p. 0<ref:2611.31744#pg6>. Fifth, a replay-style ablation shows that independent AI runs converge on the same research pathway but never on the same concrete artifact. p. 2<ref:2611.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Develop an agent capable of generating evidence-backed root-cause analysis reports from patch hunks, surrounding code, metadata, sanitizer reports, and GDB sessions to serve as a scalable mining substrate. This allows for the creation of high-quality RCA reports grounded in explicit static and dynamic crash evidence rather than free-form intuition.

  2. Implement a parser based ranker that uses Occurrence Context (OC) labels—file role, function role, and data structure class—along with AST heuristics H1 and H2 to compute a deterministic priority score s(f). This system outperforms generic baselines like cyclomatic complexity Top-N by capturing bug adjacent code roles that neither baseline expresses.

  3. Create a dual SKILL workflow where the OC prioritizer orders the review queue by tier Pk(f), followed by the application of VISP to guide within-file scanning using Tier-1 and Tier-2 patterns. This improves audit relevant broad match detection by +5.3 pp at the Function granularity and +8.6 pp at the Line plus 30 granularity on large files under a fixed read budget.

  4. Design an LLM agent that consumes executable SKILL artifacts to perform a two-step process: first using OC for repository level selection, then applying VISP for pattern guided scanning, enabling broader audit coverage inside ground truth functions while maintaining a fixed read budget.

  5. Build an agent capable of leveraging the implicit completion criterion derived from VISP's bounded output schema as an operational signal to guide its reading behavior, allowing it to terminate early and report findings grounded in files it has not opened on monolithic projects or large GT files.

Sources

Related papers