改进种子选择策略的导向型灰盒模糊测试
Improved seed choosing strategy of directed grey-box fuzzing
灰盒模糊测试技术是一个非常有效的挖掘漏洞的方法。导向型灰盒模糊测试工具AFLGo可以引导变异向着提前设定好的目标代码区域进行,能够十分高效地探索程序特定区域的bug。然而,AFLGo在exploration阶段和exploitation阶段的种子选择策略上仍然沿用原生AFL的算法,没有充分利用种子执行过程中的运行时信息来优化种子的变异顺序,导致AFLGo在性能上存在局限性。本文针对AFLGo的种子选择策略提出一种改进算法,用种子覆盖的低频分支数和距离来影响种子的优先级,以提升AFLGo在两个阶段的测试性能,并实现了改进的导向型灰盒模糊测试工具HyFuzz。实验结果显示,针对四个常见的开源软件,HyFuzz在exploration阶段能更快地提升覆盖率,而在exploitation阶段也能生成离目标代码区域距离更近的种子文件,是比AFLGo更好的导向型模糊测试工具。
Grey-box fuzzing is a very effective approach to discovery vulnerability. A directed grey-box fuzzer, AFLGo, can guide mutation towards pre-set target code region and efficiently explore bugs in there. However, in the exploration phase and exploitation phase, the strategy of AFLGo to choose a seed in the seed pool remains primitive AFL\'s algorithm, which means some runtime-information can\'t be utilized sufficiently, causing some limitations in terms of AFLGo\'s performance. This paper introduces an algorithm to improve AFLGo\'s strategy of choosing, which can enhance the test performance in both phases of AFLGo by using the number of low-frequency branches covered by a path and the distance of seeds to influence priority. And an improved directed grey-box fuzzing tool, dubbed HyFuzz, has been implemented. According to the experiment result, for four kinds of familiar open source software, compared to AFLGo, HyFuzz can increase coverage faster in the exploration phase, and also can generate seed that is closer to the target code region in the exploitation phase, which proved that HyFuzz is a better directed grey-box fuzzer than AFLGo.
杨俊、余坤龙
计算技术、计算机技术
信息安全导向型灰盒模糊测试低频分支漏洞挖掘
Information securityirected grey-box fuzzingLow frequency branchVulnerability mining
杨俊,余坤龙.改进种子选择策略的导向型灰盒模糊测试[EB/OL].(2022-01-26)[2025-08-23].http://www.paper.edu.cn/releasepaper/content/202201-104.点此复制
评论