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

ISC4DGF:利用LLM驱动的初始种子语料库生成增强定向灰盒模糊测试

ISC4DGF: Enhancing Directed Grey-box Fuzzing with LLM-Driven Initial Seed Corpus Generation

Yijiang Xu, Hongrui Jia, Liguo Chen, Xin Wang, Zhengran Zeng, Yidong Wang, Qing Gao, Jindong Wang, Wei Ye, Shikun Zhang, Zhonghai Wu

AI总结:

本文提出ISC4DGF,利用大型语言模型生成优化的初始种子语料库,以增强定向灰盒模糊测试,在Magma基准上对比主流模糊器实现了35.63倍加速并显著减少目标到达次数。

摘要:

模糊测试对于识别软件漏洞至关重要,像AFL和Angora这样的覆盖引导灰盒模糊器在广泛检测方面表现优异。然而,随着对定向检测需求的增加,定向灰盒模糊测试(DGF)变得至关重要,它专注于特定漏洞。初始种子语料库由模糊器用作起点的精心选择的输入样本组成,在决定模糊器探索的路径方面起着基础性作用。设计良好的种子语料库能更有效地引导模糊器到达代码的关键区域,提高模糊测试过程的效率和成功率。尽管其很重要,但许多工作集中在改进引导机制上,而较少关注优化初始种子语料库。本文提出了ISC4DGF,一种利用大型语言模型(LLMs)为DGF生成优化初始种子语料库的新方法。通过利用LLMs的深度软件理解和精细的用户输入,ISC4DGF创建能高效触发特定漏洞的精确种子语料库。ISC4DGF在AFL上实现,并使用Magma基准测试与AFLGo、FairFuzz和Entropic等最先进的模糊器进行对比测试,实现了35.63倍的加速和616.10倍更少的目标到达次数。此外,ISC4DGF更专注于有效检测目标漏洞,在降低代码覆盖率的同时提高了运行效率。

英文摘要:

Fuzz testing is crucial for identifying software vulnerabilities, with coverage-guided grey-box fuzzers like AFL and Angora excelling in broad detection. However, as the need for targeted detection grows, directed grey-box fuzzing (DGF) has become essential, focusing on specific vulnerabilities. The initial seed corpus, which consists of carefully selected input samples that the fuzzer uses as a starting point, is fundamental in determining the paths that the fuzzer explores. A well-designed seed corpus can guide the fuzzer more effectively towards critical areas of the code, improving the efficiency and success of the fuzzing process. Even with its importance, many works concentrate on refining guidance mechanisms while paying less attention to optimizing the initial seed corpus. In this paper, we introduce ISC4DGF, a novel approach to generating optimized initial seed corpus for DGF using Large Language Models (LLMs). By leveraging LLMs' deep software understanding and refined user inputs, ISC4DGF creates precise seed corpus that efficiently trigger specific vulnerabilities. Implemented on AFL and tested against state-of-the-art fuzzers like AFLGo, FairFuzz, and Entropic using the Magma benchmark, ISC4DGF achieved a 35.63x speedup and 616.10x fewer target reaches. Moreover, ISC4DGF focused on more effectively detecting target vulnerabilities, enhancing efficiency while operating with reduced code coverage.

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

↑