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

Fuzzwise: 用于模糊测试的智能初始语料生成

Fuzzwise: Intelligent Initial Corpus Generation for Fuzzing

University of Texas at Dallas(德克萨斯大学达拉斯分校)

Hridya Dhulipala, Xiaokai Rong, Aashish Yadavally, Tien N. Nguyen

AI总结:

FuzzWise通过基于LLM的多代理框架,高效生成初始语料,提升模糊测试的代码覆盖和错误触发效率。

摘要:

在基于变异的灰盒模糊测试中,生成高质量的初始语料对于有效测试至关重要。而不是单独进行生成大规模语料和随后最小化的阶段,我们提出了FuzzWise,将它们整合到一个过程中以生成最优的初始语料(ICS)。FuzzWise基于大型语言模型(LLMs)的多代理框架。第一个LLM代理为目标程序生成测试用例。第二个LLM代理作为预测代码覆盖模块,评估每个生成的测试用例是否能提高当前语料的整体覆盖。流线化的过程使每个新生成的测试种子可以立即评估其对整体覆盖的贡献。FuzzWise采用基于LLM的预测方法,消除了实际执行的需要,节省了计算资源和时间,特别是在执行不可行或不可能的情况下。我们的实证评估表明,FuzzWise生成的测试用例数量显著少于基线方法。尽管测试用例数量较少,FuzzWise在代码覆盖和触发更多运行时错误方面优于基线方法。此外,它在生成初始语料以捕捉更多错误方面更具时间效率和覆盖效率。

英文摘要:

In mutation-based greybox fuzzing, generating high-quality input seeds for the initial corpus is essential for effective fuzzing. Rather than conducting separate phases for generating a large corpus and subsequently minimizing it, we propose FuzzWise which integrates them into one process to generate the optimal initial corpus of seeds (ICS). FuzzWise leverages a multi-agent framework based on Large Language Models (LLMs). The first LLM agent generates test cases for the target program. The second LLM agent, which functions as a predictive code coverage module, assesses whether each generated test case will enhance the overall coverage of the current corpus. The streamlined process allows each newly generated test seed to be immediately evaluated for its contribution to the overall coverage. FuzzWise employs a predictive approach using an LLM and eliminates the need for actual execution, saving computational resources and time, particularly in scenarios where the execution is not desirable or even impossible. Our empirical evaluation demonstrates that FuzzWise generates significantly fewer test cases than baseline methods. Despite the lower number of test cases, FuzzWise achieves high code coverage and triggers more runtime errors compared to the baselines. Moreover, it is more time-efficient and coverage-efficient in producing an initial corpus catching more errors.

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

↑