← News

AI securitySources: arXiv · 1 Dec 2026

ARQ refines CodeQL C/C++ vulnerability queries with LLM agents

Researchers describe an agentic framework that uses synthesized programs and execution evidence to broaden CodeQL's C/C++ vulnerability detection while keeping precision high.

In plain words

CodeQL is a tool that scans code for security flaws using written detection rules, but those rules can miss real flaws or wrongly flag safe code. ARQ is a new framework where AI agents improve these rules by testing them against small generated programs and checking what actually happens at runtime. In the reported evaluation, the improved rules found many more real flaws without adding many false alarms.

What was announced

In a paper on arXiv, the authors present ARQ, an agentic framework that refines C/C++ CodeQL queries using execution-grounded evidence from synthesized programs. The system compares a program's instrumented runtime behavior with CodeQL's verdict, then uses validated false-negative and false-positive witnesses, including near-identical program pairs, to guide LLM-based refinement and regression testing. The approach addresses a known trade-off: existing queries can miss vulnerabilities or flag benign code, and broadening them risks swapping false negatives for false positives.

The evaluation refined 12 official CodeQL queries using GPT-5.4, Claude-Sonnet-4.6, and Gemini-3.5-flash. On the Juliet v1.3 and FormAI v2 benchmarks, the authors report that refined queries detected up to 119.8% more true-positive query-sample detections than the originals while maintaining precision of at least 98.0%. ARQ also correctly classified the reproducers supplied with three unresolved CodeQL issues and identified two previously unreported candidate bugs in libpng and zlib, which the authors present as evidence that the method can expand execution-validated coverage of production queries.

What it does not show

  • The evidence is the paper's abstract only; the full article's methods, setup, and caveats are not available for verification.
  • Reported detection gains and precision are the authors' own benchmark results and have not been independently confirmed.
  • The abstract does not state whether the two candidate libpng and zlib bugs were verified or accepted upstream.

For security and IT teams

Scope
The reported work covers C/C++ CodeQL queries only; the abstract describes refinement of 12 official queries and does not cover other languages or analyzers.

Sources

Source-support review completed 5 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 5 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.