Beyond Compiler Feedback: Improving Vulnerability Checkers with Program Analysis EvidenceBeyond Compilation Feedback: Refining Vulnerability Checkers with Program-Analysis Evidence
Translation in progress — untranslated text is omitted.
The paper proposes SemWeaver, a plugin layer that uses static analyzer internal evidence to iteratively improve LLM-synthesized vulnerability checkers. The authors point out that compilable checkers are not necessarily correct, and that the compile errors and validation reports fed back by existing improvement loops only describe symptoms, whereas information already computed by the analyzer, such as control-flow graphs, symbolic values, memory regions and checker callbacks, had not previously been used. SemWeaver assembles patch-related analyzer evidence with source context and validation feedback into a structured package with provenance annotations, iteratively edits the checker on both the vulnerable and fixed versions, and uses a retention gate to accept warning recovery or false-positive reduction and prevent over-deletion. On 39 KNighter-derived CSA checkers from Linux kernel fixes, adding analyzer evidence triggers warnings on 23 vulnerable versions, versus 15 for KNighter's loop, and version-level F1 rises from 0.448 to 0.575; ablation experiments show that removing internal evidence recovers fewer silent cases, and the two evidence configurations cover complementary identification gaps.
- LLMs can synthesize static analysis checkers from security patches, but compilable does not mean correct: a patch only shows what changed, not why it is safe. Existing refinement loops only return compilation errors and validation reports, and cannot explain what the checker misunderstood.
- SemWeaver is a plug-in refinement layer: rule-guided preflight selects patch-relevant analyzer-internal evidence (CFG, symbolic values, callback traces), assembles it with source context and validation feedback into a provenance-annotated evidence bundle for the LLM to edit the checker; the retention gate accepts only edits that recover alerts or reduce false positives.
- On 39 KNighter-derived CSA checkers, the native variant restores warning-positive vulnerable versions from 15 to 23, and version-level F1 rises from KNighter's 0.448 to 0.575; two of three CodeQL query decodes recover 8/0; the qualitative analysis maps all 11 non-tie changes one by one to specific checker fixes.
- The authors note: the 39 subjects come from the Linux artifact of a single generator; the model experiments cover only the 12 subsets with three decodings per configuration, insufficient for statistical ranking; the CodeQL experiment has only one patch-local example; the metric is version-level alert presence rather than goal-level precision; cross-project transfer requires separate evaluation.