CyberGuardAI 安全情报工作区
AI 安全知识情报
LJH 管理员
返回首页 学术论文

ARQ:用于 C/C++ 漏洞检测的智能体式 CodeQL 查询优化

摘要与解读

来源研究面向 C/C++ 漏洞检测中的 CodeQL 查询。若团队依赖这些查询筛查代码,漏报可能使漏洞样本未被识别,误报则可能增加人工核查负担;关键边界是将经测试的查询改进迁移到实际代码库和扫描流程,材料中的结果适用于所述数据集与查询范围。

六维情报分析

6 个维度 · 原文可溯源

影响范围

  • 来源研究面向 C/C++ 漏洞检测中的 CodeQL 查询。若团队依赖这些查询筛查代码,漏报可能使漏洞样本未被识别,误报则可能增加人工核查负担;关键边界是将经测试的查询改进迁移到实际代码库和扫描流程,材料中的结果适用于所述数据集与查询范围。

    原文依据 · 1

    中文译文

    经验证的漏报和误报样例,包括几乎相同的程序对,用于指导基于大语言模型的查询优化和回归测试。我们使用 GPT-5.4、Claude-Sonnet-4.6 和 Gemini-3.5-flash 优化 12 个官方 CodeQL 查询,以评估 ARQ。在 Juliet v1.3 和 FormAI v2 上,优化后的查询比原始查询多检出最多 119.8\% 的真正例查询—样本组合,同时保持至少 98.0\% 的精确率。此外,ARQ 通过正确分类三个尚未解决的 CodeQL 问题所附的复现样例,处理了这些问题,并发现两个此前未报告的候选……

    原文引文

    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 candida
    查看原文 · v1

关联资产

  • 原文明示的关联资产与组件包括 C/C++ 代码、12 条官方 CodeQL 查询、ARQ、GPT-5.4、Claude-Sonnet-4.6、Gemini-3.5-flash,以及 Juliet v1.3 和 FormAI v2 测试数据。适用前提是扫描流程使用相关查询并考虑引入改进版本;摘录没有列出各查询标识、受影响的 CodeQL 版本或本地资产清单。

    原文依据 · 1

    中文译文

    经验证的漏报和误报样例,包括几乎相同的程序对,用于指导基于大语言模型的查询优化和回归测试。我们使用 GPT-5.4、Claude-Sonnet-4.6 和 Gemini-3.5-flash 优化 12 个官方 CodeQL 查询,以评估 ARQ。在 Juliet v1.3 和 FormAI v2 上,优化后的查询比原始查询多检出最多 119.8\% 的真正例查询—样本组合,同时保持至少 98.0\% 的精确率。此外,ARQ 通过正确分类三个尚未解决的 CodeQL 问题所附的复现样例,处理了这些问题,并发现两个此前未报告的候选……

    原文引文

    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 candida
    查看原文 · v1

风险评估

  • 来源报告以已确认的漏报、误报样例及近乎相同的程序对指导查询改进,说明查询对细微代码差异的分类值得重点关注。防护优先级应放在当前确实使用相关 CodeQL 查询的 C/C++ 扫描流程,并同时检查漏报改善与误报变化,而非仅比较告警数量。

    原文依据 · 1

    中文译文

    经验证的漏报和误报样例,包括几乎相同的程序对,用于指导基于大语言模型的查询优化和回归测试。我们使用 GPT-5.4、Claude-Sonnet-4.6 和 Gemini-3.5-flash 优化 12 个官方 CodeQL 查询,以评估 ARQ。在 Juliet v1.3 和 FormAI v2 上,优化后的查询比原始查询多检出最多 119.8\% 的真正例查询—样本组合,同时保持至少 98.0\% 的精确率。此外,ARQ 通过正确分类三个尚未解决的 CodeQL 问题所附的复现样例,处理了这些问题,并发现两个此前未报告的候选……

    原文引文

    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 candida
    查看原文 · v1

相关研究

  • ARQ 使用已确认的漏报和误报样例,包括近乎相同的程序对,指导基于 LLM 的 CodeQL 查询改进及回归测试。来源称其借助 GPT-5.4、Claude-Sonnet-4.6 和 Gemini-3.5-flash 改进 12 条官方查询;所给摘录未展开查询修改机制,相关研究信息限于这些方法与评估描述。

    原文依据 · 1

    中文译文

    经验证的漏报和误报样例,包括几乎相同的程序对,用于指导基于大语言模型的查询优化和回归测试。我们使用 GPT-5.4、Claude-Sonnet-4.6 和 Gemini-3.5-flash 优化 12 个官方 CodeQL 查询,以评估 ARQ。在 Juliet v1.3 和 FormAI v2 上,优化后的查询比原始查询多检出最多 119.8\% 的真正例查询—样本组合,同时保持至少 98.0\% 的精确率。此外,ARQ 通过正确分类三个尚未解决的 CodeQL 问题所附的复现样例,处理了这些问题,并发现两个此前未报告的候选……

    原文引文

    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 candida
    查看原文 · v1

验证资料

  • 来源在 Juliet v1.3 和 FormAI v2 上评估:改进查询相对原查询的真阳性“查询—样本”检出数最高增加 119.8%,精确率至少 98.0%;还报告正确分类三个未解决 CodeQL 问题所附的复现样例。部署前可用自身回归样本分别观察检出与误报,避免把数据集结果直接当作生产表现。

    原文依据 · 1

    中文译文

    经验证的漏报和误报样例,包括几乎相同的程序对,用于指导基于大语言模型的查询优化和回归测试。我们使用 GPT-5.4、Claude-Sonnet-4.6 和 Gemini-3.5-flash 优化 12 个官方 CodeQL 查询,以评估 ARQ。在 Juliet v1.3 和 FormAI v2 上,优化后的查询比原始查询多检出最多 119.8\% 的真正例查询—样本组合,同时保持至少 98.0\% 的精确率。此外,ARQ 通过正确分类三个尚未解决的 CodeQL 问题所附的复现样例,处理了这些问题,并发现两个此前未报告的候选……

    原文引文

    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 candida
    查看原文 · v1

处置建议

  • 建议先盘点 C/C++ 扫描流程中的 CodeQL 查询及其版本,确认是否涉及研究所评估的查询;再以已确认的漏报、误报样本和相近程序对进行受控回归,分别比较检出与精确率;最后监测查询变更后的告警分类和人工复核结果。此顺序对应来源采用的样例驱动改进与回归评估方法。

    原文依据 · 1

    中文译文

    经验证的漏报和误报样例,包括几乎相同的程序对,用于指导基于大语言模型的查询优化和回归测试。我们使用 GPT-5.4、Claude-Sonnet-4.6 和 Gemini-3.5-flash 优化 12 个官方 CodeQL 查询,以评估 ARQ。在 Juliet v1.3 和 FormAI v2 上,优化后的查询比原始查询多检出最多 119.8\% 的真正例查询—样本组合,同时保持至少 98.0\% 的精确率。此外,ARQ 通过正确分类三个尚未解决的 CodeQL 问题所附的复现样例,处理了这些问题,并发现两个此前未报告的候选……

    原文引文

    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 candida
    查看原文 · v1
模型与引文记录
模型
gpt-6-sol
生成时间
记录编号
REQ-aa9abaf7428c4fad94f3e2b05a64fa57
分析原文
查看原文 · v1

图片与附件

1 项关联材料
  • cs.CR已归档 · 310.9 KB
    采集与来源记录
    文件名称
    cs.CR
    记录大小
    318361 字节
    文件格式
    text/plain
    关联登记时间
    2026-12-02 05:13 UTC
    关联原文
    v1
    保存时校验
    1cfcf40344a22b90f5c1a99aa7deda0002f7dde7a3dbe1e989a6728ed2af34f9

资料档案

文献来源与参考链接

当前保存的来源版本 · v1

文献与标准标识
arxiv:2608.20637
采集来源格式
arxiv_feed_metadata
结构化格式
arxiv_rss
原始标题与分类记录

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

研究方向
防御技术
影响维度
待人工确认
风险类型
供应链风险
相关技术
LLM

当前为离线关键词规则模式。

分类规则与原始字段
防御技术 · detection
gentic CodeQL Query Refinement for C/C++ Vulnerability Detection arXiv:2608.20637v2 Announce Type: replace Abstract: Query-based static analyzers such as CodeQL en
供应链风险 · vulnerability
ARQ: Agentic CodeQL Query Refinement for C/C++ Vulnerability Detection arXiv:2608.20637v2 Announce Type: replace Abstract: Query-based static analyzers such as
LLM · llm
sses, including near-identical program pairs, to guide LLM-based refinement and regression testing. We evaluate ARQ by refining 12 official CodeQL queries wit
{
  "ai_relevance": {
    "evidence": [
      {
        "end_offset": 668,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 665
      }
    ],
    "matches": [
      {
        "end_offset": 668,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 665
      }
    ],
    "method": "explainable_keyword_rules",
    "reason": "Matched AI topic or component evidence",
    "relevant": true
  },
  "entity_ids": [],
  "facts": [],
  "method": "source_grounded_extraction",
  "unknown_fields": [
    "affected_products",
    "affected_versions",
    "fixed_versions",
    "cvss",
    "mitigations",
    "references",
    "papers",
    "poc"
  ]
}
原始采集文本
arXiv:2608.20637v2 Announce Type: replace 
Abstract: 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.
采集信息与校验
完整来源元数据
{
  "authors": [],
  "content_level": "feed_metadata",
  "feed_url": "https://rss.arxiv.org/rss/cs.CR",
  "identifiers": [
    "arxiv:2608.20637"
  ],
  "source_updated_at": ""
}
{
  "format": "arxiv_rss",
  "source_format": "arxiv_feed_metadata"
}
原文版本历史与校验
版本入库更新时间来源发布日期校验标识
v1 · 正在查看2026-12-01 10:14 UTC2026-12-01 05:00 UTC9506abf5cecd155f775077175817ef96c38c97707e8c6528a8ea82f50f1b15a6
可引用分片 · 1 段

CHK-76c67c64d283a68117c2beb9

arXiv:2608.20637v2 Announce Type: replace 
Abstract: 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.
补充资料

中文译文

arXiv:2608.20637v2 公告类型:替换 摘要:CodeQL 等基于查询的静态分析器使用检测查询来编码漏洞模式。现有查询可能漏检漏洞,也可能将无害代码误报为漏洞;扩大检测范围则可能以增加误报为代价减少漏报。我们提出 ARQ,这是一种智能体框架,利用合成程序提供的、以执行结果为依据的证据来改进 C/C++ CodeQL 查询。ARQ 将程序经过插桩后的行为与 CodeQL 的判定进行比较,然后利用经过验证的漏报和误报实例(包括几乎相同的程序对)指导基于大语言模型的查询改进与回归测试。我们使用 GPT-5.4、Claude-Sonnet-4.6 和 Gemini-3.5-flash 改进了 12 个官方 CodeQL 查询,并对 ARQ 进行了评估。在 Juliet v1.3 和 FormAI v2 上,改进后的查询相较原始查询,真阳性的查询—样本检出数量最多增加 119.8%,同时精确率保持在至少 98.0%。此外,ARQ

通过正确分类所提供的复现样例,解决了三个尚未解决的 CodeQL 问题,并在 \texttt{libpng} 和 \texttt{zlib} 中识别出两个此前未报告的候选漏洞。这些结果表明,ARQ 能够显著扩大生产环境中 CodeQL 查询经执行验证的覆盖范围,同时在多样化的基准测试和真实案例中保持高精确率。

已采集原文

访问来源网页

arXiv:2608.20637v2 Announce Type: replace Abstract: 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.

原文依据