跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2608.20637 · v2

ARQ: Agentic CodeQL Query Refinement for C/C++ Vulnerability Detection

首次提交 2026-08-21 08:20
版本更新 2026-11-30 02:14
雷达观测 2026-12-01 13:26
arXiv ↗PDF ↗

摘要

Query-based static analyzers such as CodeQL encode vulnerability patterns in detection queries. Existing queries can miss vulnerabilities or flag benign code, and broadening them can trade false negatives for false positives. We present ARQ, an agentic framework that refines C/C++ CodeQL queries with execution-grounded evidence from synthesized programs. ARQ compares a program's instrumented 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. We evaluate ARQ by refining 12 official CodeQL queries with GPT-5.4, Claude-Sonnet-4.6, and Gemini-3.5-flash. On Juliet v1.3 and FormAI v2, refined queries detect up to 119.8\% more true-positive query--sample detections than the original queries while maintaining precision of at least 98.0\%. Moreover, ARQ addresses three unresolved CodeQL issues by correctly classifying their supplied reproducers and identifies two previously unreported candidate bugs in \texttt{libpng} and \texttt{zlib}. These results demonstrate that ARQ can substantially expand the execution-validated coverage of production CodeQL queries while preserving high precision across diverse benchmarks and real-world cases.

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

本站首次收录为 v2,暂无更早版本可对照。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v2 · 2026-11-30 02:14 · 最新观测版本

ARQ: Agentic CodeQL Query Refinement for C/C++ Vulnerability Detection

Query-based static analyzers such as CodeQL encode vulnerability patterns in detection queries. Existing queries can miss vulnerabilities or flag benign code, and broadening them can trade false negatives for false positives. We present ARQ, an agentic framework that refines C/C++ CodeQL queries with execution-grounded evidence from synthesized programs. ARQ compares a program's instrumented 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. We evaluate ARQ by refining 12 official CodeQL queries with GPT-5.4, Claude-Sonnet-4.6, and Gemini-3.5-flash. On Juliet v1.3 and FormAI v2, refined queries detect up to 119.8\% more true-positive query--sample detections than the original queries while maintaining precision of at least 98.0\%. Moreover, ARQ addresses three unresolved CodeQL issues by correctly classifying their supplied reproducers and identifies two previously unreported candidate bugs in \texttt{libpng} and \texttt{zlib}. These results demonstrate that ARQ can substantially expand the execution-validated coverage of production CodeQL queries while preserving high precision across diverse benchmarks and real-world cases.

查看此版本解读 →查看此版本原文 ↗