arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.14530cs.CR
收藏

$MC^2$:严谨高效的有向灰盒模糊检测

$MC^2$: Rigorous and Efficient Directed Greybox Fuzzing

Abhishek Shah, Dongdong She, Samanway Sadhu, Krish Singal, Peter Coffman, Suman Jana

摘要:

定向灰盒模糊测试是一种用于有针对性的软件测试的流行技术,旨在找到到达程序中一组目标站点的输入。大多数现有的有向灰盒模糊器没有提供任何理论分析,他们的性能或最优性。在本文中,我们引入了一个复杂性理论框架,将定向灰盒模糊化作为一个Oracle引导的搜索问题,其中一些关于输入空间的反馈(例如,输入与目标站点有多近)通过查询Oracle来接收。我们的框架假设每个Oracle查询都可以返回任意内容,其中包含大量但恒定的信息。因此,我们使用模糊算法找到目标到达输入所需的Oracle查询的数量作为性能度量。使用我们的框架,我们设计了一个随机定向灰盒模糊算法,使对数(wrt。所有可能输入的数量)期望找到目标到达输入的查询数量。我们进一步证明了我们的算法所需的oracle查询的数量是最优的,即,没有模糊算法可以改进(即,最小化)查询计数超过一个常数因子。我们在MC $^2$中实现了我们的方法,并在具有挑战性的基准测试(Magma和Fuzzer测试套件)上超过了最先进的有向灰盒模糊器两个数量级(即,$134\times$)的平均值。MC $^2$还发现了15个以前未发现的错误,这些错误是其他最先进的直接灰盒模糊器未能发现的。

英文摘要:

Directed greybox fuzzing is a popular technique for targeted software testing that seeks to find inputs that reach a set of target sites in a program. Most existing directed greybox fuzzers do not provide any theoretical analysis of their performance or optimality. In this paper, we introduce a complexity-theoretic framework to pose directed greybox fuzzing as a oracle-guided search problem where some feedback about the input space (e.g., how close an input is to the target sites) is received by querying an oracle. Our framework assumes that each oracle query can return arbitrary content with a large but constant amount of information. Therefore, we use the number of oracle queries required by a fuzzing algorithm to find a target-reaching input as the performance metric. Using our framework, we design a randomized directed greybox fuzzing algorithm that makes a logarithmic (wrt. the number of all possible inputs) number of queries in expectation to find a target-reaching input. We further prove that the number of oracle queries required by our algorithm is optimal, i.e., no fuzzing algorithm can improve (i.e., minimize) the query count by more than a constant factor. We implement our approach in MC$^2$ and outperform state-of-the-art directed greybox fuzzers on challenging benchmarks (Magma and Fuzzer Test Suite) by up to two orders of magnitude (i.e., $134\times$) on average. MC$^2$ also found 15 previously undiscovered bugs that other state-of-the-art directed greybox fuzzers failed to find.

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

↑