arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.21824cs.CRcs.SE
收藏

通过四项原则框架实现质量保障的模糊测试 harness 生成

Quality-Assured Fuzz Harness Generation via the Four Principles Framework

Texas A&M University(德州农工大学);Aisle

Ze Sheng, Dmitrijs Trizna, Luigino Camastra, Zhicheng Chen, Qingxiao Xu, Jeff Huang

AI总结:

本文提出QuartetFuzz,一种自主的harness生成系统,通过四项原则框架(逻辑正确性、API协议合规性、安全边界尊重和入口点充分性)系统地提高生成harness的正确性,并在多个开源项目上验证了其有效性,发现了多个漏洞并修复了部分问题。

摘要:

模糊测试是发现C/C++软件内存安全漏洞的主要技术,但其有效性依赖于fuzzer与库API之间的桥梁程序——harness的质量。尽管越来越多的工具自动化了harness生成,但没有系统地确保生成的harness的正确性:逻辑错误、API误用和生命周期违规在源级别未被检测到。随着LLM驱动的生成扩展harness创建,未经控制的质量使规模成为负担。我们提出了QuartetFuzz,一种自主的harness生成系统,通过四项原则框架——逻辑正确性(P1)、API协议合规性(P2)、安全边界尊重(P3)和入口点充分性(P4)——首次在源级别定义harness正确性,具有数学规范和可执行检查。我们通过一个自主的LLM代理将这些原则操作化,该代理在任何模糊测试开始前通过生成-检查-修复循环生成满足P1-P4的harness。在23个开源项目(涵盖C/C++、Java和JavaScript)上部署,系统提交了42个bug报告,其中29个被修复或确认(包括3个CVE),只有2个被拒绝(4.8%的假阳性率)。在生成过程中,内置的P1/P2检查自动拦截了58个由harness引起的崩溃,这些本可能成为假阳性。作为586个现有生产harness在70个项目中的质量审计器,系统识别出53个违规(45个确认,35个修复)。我们发布了100个标记的harness数据集用于可重复评估。代码和数据集可在https://github.com/OwenSanzas/QuartetFuzz获取。

英文摘要:

Fuzz testing is the dominant technique for finding memory-safety vulnerabilities in C/C++ software, yet its effectiveness hinges on the quality of fuzz harnesses -- the programs that bridge fuzzers and library APIs. A growing body of tools now automate harness generation, but none systematically ensures the correctness of produced harnesses: logic errors, API misuse, and lifecycle violations go undetected at the source level. As LLM-driven generation scales harness creation, uncontrolled quality turns scale into a liability. We present QuartetFuzz, an autonomous harness-generation system that systematically improves correctness throughout the generation process. At its core is the Four Principles framework -- Logic Correctness (P1), API Protocol Compliance (P2), Security Boundary Respect (P3), and Entry Point Adequacy (P4) -- the first source-level definition of harness correctness with mathematical specifications and implementable checks. We operationalize these principles in an autonomous LLM agent that produces harnesses satisfying P1-P4 through a generate-check-fix loop before any fuzzing begins. Deployed on 23 open-source projects spanning C/C++, Java, and JavaScript, the system submits 42 bug reports, of which 29 are fixed or confirmed upstream (including 3 CVEs) and only 2 are rejected (4.8% FP rate). During generation, the built-in P1/P2 checks automatically intercepted 58 harness-induced crashes that would otherwise have been false positives. Applied as a quality auditor to 586 existing production harnesses across 70 projects, the system identifies 53 violations (45 confirmed, 35 fixed). We release a dataset of 100 labeled harnesses for reproducible evaluation. Code and dataset are available at https://github.com/OwenSanzas/QuartetFuzz

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

↑