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

距离度量在指导定向灰盒模糊测试中的实证研究

An Empirical Study on the Distance Metric in Guiding Directed Grey-box Fuzzing

Tingke Wen, Yuwei Li, Lu Zhang, Huimin Ma, Zulie Pan

AI总结:

本文首次实证研究不同距离度量在定向灰盒模糊测试中的引导效果,发现其差异不显著且难以描述触发漏洞难度,并揭示现有变异策略生成高质量测试用例的局限性,呼吁设计更有效的变异策略。

摘要:

定向灰盒模糊测试(DGF)旨在高效地发现特定代码区域中的漏洞。距离度量用于衡量DGF中种子的质量,是影响模糊测试性能的关键因素。尽管距离度量已广泛应用于现有的DGF框架中,但不同距离度量如何引导模糊测试过程并影响实际模糊测试结果,仍不明确。在本文中,我们进行了首次实证研究,探讨不同距离度量在引导DGF中的表现。具体而言,我们从计算方法和粒度两个方面系统性地讨论了不同的距离度量。然后,我们基于AFLGo实现了不同的距离度量。在此基础上,我们进行了全面的实验,以评估这些距离度量在现有DGF相关工作广泛使用的基准上的性能。实验结果揭示了以下见解。首先,不同计算方法和粒度的距离度量之间的差异并不显著。其次,距离度量可能无法有效描述触发目标漏洞的难度。此外,通过仔细检查测试用例的质量,我们的研究突显了现有变异策略在生成高质量测试用例方面的固有局限性,呼吁为定向模糊测试设计有效的变异策略。我们开源了实现代码和实验数据集,以促进未来在DGF领域的研究。

英文摘要:

Directed grey-box fuzzing (DGF) aims to discover vulnerabilities in specific code areas efficiently. Distance metric, which is used to measure the quality of seed in DGF, is a crucial factor in affecting the fuzzing performance. Despite distance metrics being widely applied in existing DGF frameworks, it remains opaque about how different distance metrics guide the fuzzing process and affect the fuzzing result in practice. In this paper, we conduct the first empirical study to explore how different distance metrics perform in guiding DGFs. Specifically, we systematically discuss different distance metrics in the aspect of calculation method and granularity. Then, we implement different distance metrics based on AFLGo. On this basis, we conduct comprehensive experiments to evaluate the performance of these distance metrics on the benchmarks widely used in existing DGF-related work. The experimental results demonstrate the following insights. First, the difference among different distance metrics with varying methods of calculation and granularities is not significant. Second, the distance metrics may not be effective in describing the difficulty of triggering the target vulnerability. In addition, by scrutinizing the quality of testcases, our research highlights the inherent limitation of existing mutation strategies in generating high-quality testcases, calling for designing effective mutation strategies for directed fuzzing. We open-source the implementation code and experiment dataset to facilitate future research in DGF.

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

↑