arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2604.01442cs.SE
收藏

代理 fuzzing?生成器就是一切

Fuzzing with Agents? Generators Are All You Need

Carnegie Mellon University(卡内基梅隆大学)

Vasudev Vikram, Rohan Padhye

AI总结:

本文探讨利用AI代理自动生成针对特定目标的输入生成器,发现生成器在分支覆盖率上优于人工编写者,且无需覆盖引导和突变策略。

摘要:

现代基于生成器的模糊测试技术结合轻量级输入生成器与覆盖引导突变,用于探索目标程序的深层执行路径。先前研究提出一种互补方法,即创建高度定制化、领域特定的生成器,编码足够的结构和语义逻辑以达到深层程序状态;挑战在于编写和测试这些复杂生成器的开销。我们调查AI编码代理是否能自动合成此类目标特定生成器,并确定生成器是否足够强大以完全消除覆盖引导和突变的需要。我们的方法Gentoo由一个LLM编码代理组成,该代理被指示迭代合成和优化输入生成器,并可选地提供细粒度谓词级覆盖反馈。我们在7个真实世界Java库的模糊测试目标上评估了Gentoo的三种配置。我们的发现表明,在4个7个基准测试中,代理合成的生成器在分支覆盖率上显著高于人工编写的基础生成器。关键的是,覆盖引导和突变策略对代理合成的生成器无显著益处,但对所有人工编写生成器有显著益处,表明代理生成器中编码的结构和语义逻辑使覆盖引导几乎不再必要。

英文摘要:

Modern generator-based fuzzing techniques combine lightweight input generators with coverage-guided mutation as a method of exploring deep execution paths in a target program. A complimentary approach in prior research focuses on creating highly customized, domain-specific generators that encode structural and semantic logic sufficient enough to reach deep program states; the challenge comes from the overhead of writing and testing these complex generators. We investigate whether AI coding agents can automatically synthesize such target-specific generators, and whether the resulting generators are strong enough to obviate the need for coverage guidance and mutation entirely. Our approach, Gentoo, is comprised of an LLM coding agent (provided terminal access and source code of the fuzz target and its library) instructed to iteratively synthesize and refine an input generator, and optionally provided fine-grained predicate-level coverage feedback. We evaluate three configurations of Gentoo against human-written generators on fuzz targets for 7 real-world Java libraries. Our findings show that agent-synthesized generators achieve statistically significantly higher branch coverage than human-written baseline generators on 4 of 7 benchmarks. Critically, the use of coverage guidance and mutation strategies is not statistically significantly beneficial for agent-synthesized generators, but is significant for all human-written generators, suggesting that structural and semantic logic encoded in the agent generators makes coverage guidance largely unnecessary.

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

↑