HuntFUZZ:通过基于聚类的模糊测试增强错误处理测试
HuntFUZZ: Enhancing Error Handling Testing through Clustering Based Fuzzing
AI总结:
HuntFUZZ 提出基于聚类的 SFI 模糊测试框架,通过对相关错误点聚类并利用 concolic 执行计算公共路径约束,减少冗余测试,在 42 个应用中验证了更高的错误覆盖率和更快的漏洞发现速度。
摘要:
测试程序有效处理错误的能力是一项重大挑战,因为程序错误相对不常见。为了解决这一问题,基于软件故障注入(SFI)的模糊测试将 SFI 与传统模糊测试相结合,注入并触发错误以测试(错误处理)代码。然而,我们观察到当前的基于 SFI 的模糊测试方法忽视了包含错误点的路径之间的相关性。实际上,错误点的执行路径通常共享公共路径。尽管如此,模糊测试器通常重复生成测试用例,以测试公共遍历路径上的错误点。这种做法可能损害模糊测试器的效率。因此,本文介绍了 HuntFUZZ,这是一个新颖的基于 SFI 的模糊测试框架,旨在解决具有相关路径的错误点被重复测试的问题。具体而言,HuntFUZZ 对这些相关的错误点进行聚类,并利用 concolic 执行仅为每个聚类内的公共路径计算约束。通过这样做,我们为模糊测试器提供了高效的测试用例,以最小的冗余探索相关错误点。我们在 42 个多样化的应用程序上评估了 HuntFUZZ,HuntFUZZ 成功揭示了 162 个已知错误,其中 62 个与错误处理相关。此外,由于其高效的错误点检测方法,HuntFUZZ 发现了 7 个独特的零日漏洞,这些漏洞均被现有模糊测试器遗漏。此外,我们将 HuntFUZZ 与 4 种现有模糊测试方法进行了比较,包括 AFL、AFL++、AFLGo 和 EH-FUZZ。我们的评估证实,HuntFUZZ 能够覆盖更广泛的错误点,并且在错误发现速度方面表现出更好的性能。
英文摘要:
Testing a program's capability to effectively handling errors is a significant challenge, given that program errors are relatively uncommon. To solve this, Software Fault Injection (SFI)-based fuzzing integrates SFI and traditional fuzzing, injecting and triggering errors for testing (error handling) code. However, we observe that current SFI-based fuzzing approaches have overlooked the correlation between paths housing error points. In fact, the execution paths of error points often share common paths. Nonetheless, Fuzzers usually generate test cases repeatedly to test error points on commonly traversed paths. This practice can compromise the efficiency of the fuzzer(s). Thus, this paper introduces HuntFUZZ, a novel SFI-based fuzzing framework that addresses the issue of redundant testing of error points with correlated paths. Specifically, HuntFUZZ clusters these correlated error points and utilizes concolic execution to compute constraints only for common paths within each cluster. By doing so, we provide the fuzzer with efficient test cases to explore related error points with minimal redundancy. We evaluate HuntFUZZ on a diverse set of 42 applications, and HuntFUZZ successfully reveals 162 known bugs, with 62 of them being related to error handling. Additionally, due to its efficient error point detection method, HuntFUZZ discovers 7 unique zero-day bugs, which are all missed by existing fuzzers. Furthermore, we compare HuntFUZZ with 4 existing fuzzing approaches, including AFL, AFL++, AFLGo, and EH-FUZZ. Our evaluation confirms that HuntFUZZ can cover a broader range of error points, and it exhibits better performance in terms of bug finding speed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。