CheckerBench:长时程智能体能否合成静态分析检查器?
研究论文 · 2026/10/08
静态分析检查器合成要求智能体解释缺陷规范、检查代码库、实现分析器特定逻辑,并通过反复编译和分析反馈来完善检查器。现有编码智能体基准测试主要关注补丁生成或漏洞检测等任务,很少评估智能体能否在代码库中从头到尾开发出可工作的检查器。我们推出了 CheckerBench,这是一个可执行基准测试,包含 300 个任务,源自 167 个代码库、85 个 CWE 和五个语言生态系统中的 297 个 CVE。每个任务包括易受攻击和已修复的修订版本、固定的分析环境以及检查器脚手架。我们还推出了 CheckerLab,这是一个通用评估框架,可独立重建提交的检查器,并测量易受攻击与已修复的诊断对比、补丁定位、误报和工具使用情况。在 21 种模型-框架配置中,每种配置进行三次独立重复,平均 Pass@1 为 32.30%,最佳达到 45.33%。这些结果表明,可靠、可复用的检查器开发对当前编码智能体仍具挑战性。
该研究提出了首个评估智能体端到端开发静态分析检查器能力的基准测试,填补了现有编码智能体基准在检查器合成任务上的空白,并揭示了当前模型在此任务上的显著不足,为未来研究提供了重要方向。
Static-analysis checker synthesis requires agents to interpret a defect specification, inspect a repository, implement analyzer-specific logic, and refine the checker through repeated compilation and analysis feedback. Existing coding-agent benchmarks focus on tasks such as patch generation or vulnerability detection and rarely assess whether an agent can develop a working checker in a repository from start to finish. We introduce CheckerBench, an executable benchmark of 300 tasks derived from 297 CVEs across 167 repositories, 85 CWEs, and five language ecosystems. Each task includes vulnerable and fixed revisions, a pinned analysis environment, and a checker scaffold. We further introduce CheckerLab, a common evaluation framework that independently rebuilds submitted checkers and measures vulnerable-fixed diagnostic contrast, patch localization, false positives, and tool use. Across 21 model-harness configurations and three independent repeats per configuration, mean Pass@1 is 32.30%, while the best reaches 45.33%. These results show that reliable, reusable checker development remains challenging for current coding agents.