Rust和Go定向模糊测试与LibAFL-DiFuzz
Rust and Go directed fuzzing with LibAFL-DiFuzz
AI总结:
本文提出针对Rust和Go的定向灰盒模糊测试方法,通过预处理、编译器定制和图构建技术提升测试效率和准确性。
摘要:
在现代SSDLC中,程序分析和自动化测试对于在软件发布前最小化漏洞至关重要,模糊测试作为一种快速且广泛应用的动态测试方法。然而,传统的覆盖引导模糊测试在特定任务如验证静态分析报告或重现崩溃时可能效果较差,而定向模糊测试通过使用接近度指标聚焦特定程序位置,证明更为有效。一些最早的定向模糊器,例如AFLGo和BEACON,使用了不同的接近度指标方法。尽管大多数自动化测试工具专注于C/C++代码,但Rust和Go的日益流行使得需要针对这些语言提供精确且高效的测试解决方案。本文扩展了定向模糊测试在传统C/C++软件分析之外的应用范围。我们提出了一种针对Rust和Go应用的新型定向灰盒模糊测试方法。我们引入了先进的预处理技术、rustc编译器定制化以及详细的图构建和仪器化方法,以实现对特定程序位置的有效定位。我们实现的模糊测试工具基于LibAFL-DiFuzz后端,相较于流行的现有模糊器如afl.rs、cargo-fuzz和go-fuzz表现出竞争力。根据TTE(时间到暴露)实验,Rust-LibAFL-DiFuzz在最佳TTE结果上优于其他工具。一些稳定性问题可以由不同的变异方法解释。Go-LibAFL-DiFuzz在多数情况下以最佳和平均结果胜出,有两个案例存在数量级的差异。这些结果证明了我们方法的更高效率和准确性。
英文摘要:
In modern SSDLC, program analysis and automated testing are essential for minimizing vulnerabilities before software release, with fuzzing being a fast and widely used dynamic testing method. However, traditional coverage-guided fuzzing may be less effective in specific tasks like verifying static analysis reports or reproducing crashes, while directed fuzzing, focusing on targeted program locations using proximity metrics, proves to be more effective. Some of the earliest directed fuzzers are, for example, AFLGo and BEACON, which use different proximity metric approaches. Although most automated testing tools focus on C/C++ code, the growing popularity of Rust and Go causes the need for precise and efficient testing solutions for these languages. This work expands the applicability of directed fuzzing beyond traditional analysis of C/C++ software. We present a novel approach to directed greybox fuzzing tailored specifically for Rust and Go applications. We introduce advanced preprocessing techniques, rustc compiler customizations, and elaborate graph construction and instrumentation methods to enable effective targeting of specific program locations. Our implemented fuzzing tools, based on LibAFL-DiFuzz backend, demonstrate competitive advantages compared to popular existing fuzzers like afl$.$rs, cargo-fuzz, and go-fuzz. According to TTE (Time to Exposure) experiments, Rust-LibAFL-DiFuzz outperforms other tools by the best TTE result. Some stability issues can be explained by different mutation approaches. Go-LibAFL-DiFuzz outperforms its opponent by the best and, in the majority of cases, by average result, having two cases with orders of magnitude difference. These results prove better efficiency and accuracy of our approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。