arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.10487cs.CRcs.SE
收藏

跟随龙:基于代码审查的模糊测试

Following Dragons: Code Review-Guided Fuzzing

The University of Melbourne(墨尔本大学)

Viet Hoang Luu, Amirmohammad Pasdar, Wachiraphan Charoenwet, Toby Murray, Shaanan Cohney, Van-Thuan Pham

AI总结:

EyeQ通过利用代码审查中的开发者智能,指导模糊测试以发现更多安全关键的漏洞。

摘要:

现代模糊测试工具能够扩展到大型现实世界软件,但往往无法测试开发人员认为最脆弱或安全关键的程序状态。这些状态通常位于执行空间深处,受前置条件限制,或被消耗有限模糊测试预算的低价值路径所掩盖。同时,开发人员在代码审查过程中经常提出与风险相关的重要见解,但这些信息大多被自动化测试工具忽略。我们提出了EyeQ系统,该系统利用代码审查中的开发者智能来指导模糊测试。EyeQ从审查讨论中提取安全相关的信号,定位涉及的程序区域,并将这些见解转化为基于注释的模糊测试指导。该方法建立在现有的注释感知模糊测试之上,无需改变程序语义或开发人员工作流程。我们首先通过一项由人类指导的可行性研究验证EyeQ,对一个专注于安全的PHP代码审查数据集建立了一个强大的基线,用于审查引导的模糊测试。然后我们利用大型语言模型和精心设计的提示自动化该流程。EyeQ在标准模糊测试配置上显著提高了漏洞发现能力,在安全关键的PHP代码库中发现了超过40个之前未知的错误。

英文摘要:

Modern fuzzers scale to large, real-world software but often fail to exercise the program states developers consider most fragile or security-critical. Such states are typically deep in the execution space, gated by preconditions, or overshadowed by lower-value paths that consume limited fuzzing budgets. Meanwhile, developers routinely surface risk-relevant insights during code review, yet this information is largely ignored by automated testing tools. We present EyeQ, a system that leverages developer intelligence from code reviews to guide fuzzing. EyeQ extracts security-relevant signals from review discussions, localizes the implicated program regions, and translates these insights into annotation-based guidance for fuzzing. The approach operates atop existing annotation-aware fuzzing, requiring no changes to program semantics or developer workflows. We first validate EyeQ through a human-guided feasibility study on a security-focused dataset of PHP code reviews, establishing a strong baseline for review-guided fuzzing. We then automate the workflow using a large language model with carefully designed prompts. EyeQ significantly improves vulnerability discovery over standard fuzzing configurations, uncovering more than 40 previously unknown bugs in the security-critical PHP codebase.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑