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

通过程序行为建模改进灰盒模糊算法

Improving Grey-Box Fuzzing by Modeling Program Behavior

Bloomberg(彭博社)

Siddharth Karamcheti, Gideon Mann, David Rosenberg

摘要:

灰盒模糊器,如美国模糊Lop(AFL)是流行的工具,用于发现程序中的错误和潜在的漏洞。虽然这些模糊器已经能够在许多广泛使用的程序中找到漏洞,但它们并不高效;在AFL在典型的模糊运行中执行的数百万输入中,只有少数发现了不可见的行为或触发崩溃。其余的输入是冗余的,表现出已经观察到的行为。在这里,我们提出了一种方法,以提高效率的模糊器,如AFL应用机器学习直接模拟程序的行为。我们学习了一个前向预测模型,该模型将程序输入映射到执行轨迹,并在标准模糊化过程中收集的数千个输入上进行训练。这个学习的模型通过关注模糊输入来指导探索,我们的模型在这些输入上是最不确定的(通过预测的执行跟踪分布的熵来测量)。通过专注于执行我们的学习模型不确定的输入,并忽略我们的模型确定其行为的任何输入,我们表明我们可以显着限制浪费的执行。通过测试我们的方法发布的一组二进制文件作为DARPA网络大挑战的一部分,我们表明,我们的方法是能够找到一组输入,导致更多的代码覆盖率和发现的崩溃比基线模糊明显更少的执行。

英文摘要:

Grey-box fuzzers such as American Fuzzy Lop (AFL) are popular tools for finding bugs and potential vulnerabilities in programs. While these fuzzers have been able to find vulnerabilities in many widely used programs, they are not efficient; of the millions of inputs executed by AFL in a typical fuzzing run, only a handful discover unseen behavior or trigger a crash. The remaining inputs are redundant, exhibiting behavior that has already been observed. Here, we present an approach to increase the efficiency of fuzzers like AFL by applying machine learning to directly model how programs behave. We learn a forward prediction model that maps program inputs to execution traces, training on the thousands of inputs collected during standard fuzzing. This learned model guides exploration by focusing on fuzzing inputs on which our model is the most uncertain (measured via the entropy of the predicted execution trace distribution). By focusing on executing inputs our learned model is unsure about, and ignoring any input whose behavior our model is certain about, we show that we can significantly limit wasteful execution. Through testing our approach on a set of binaries released as part of the DARPA Cyber Grand Challenge, we show that our approach is able to find a set of inputs that result in more code coverage and discovered crashes than baseline fuzzers with significantly fewer executions.

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

↑