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.


翻译:暂无翻译

0
下载
关闭预览

相关内容

AAAI2025|TrustUQA:统一结构化数据问答的可信框架
专知会员服务
20+阅读 · 2024年12月20日
【ICML2020】统一预训练伪掩码语言模型
专知会员服务
27+阅读 · 2020年7月23日
基于 SonarQube 的增量代码扫描
DevOps时代
12+阅读 · 2019年7月18日
Focal Loss for Dense Object Detection
统计学习与视觉计算组
12+阅读 · 2018年3月15日
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
8+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
6+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
3+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
7+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
7+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
15+阅读 · 11月25日
相关VIP内容
AAAI2025|TrustUQA:统一结构化数据问答的可信框架
专知会员服务
20+阅读 · 2024年12月20日
【ICML2020】统一预训练伪掩码语言模型
专知会员服务
27+阅读 · 2020年7月23日
相关基金
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员