Matryoshka:模糊深度嵌套分支
Matryoshka: Fuzzing Deeply Nested Branches
摘要:
灰盒模糊算法近年来取得了令人瞩目的进展,从基于进化论的随机变异算法发展到求解个体路径约束的方法。然而,它们难以解决涉及深度嵌套的条件语句的路径约束,这在图像和视频解码器、网络数据包分析器和校验和工具中是常见的。我们提出了一种解决这个问题的方法。首先,我们识别目标条件语句的所有依赖于控制流的条件语句。接下来,我们选择依赖于数据流的条件语句。最后,我们使用三种策略来找到一个同时满足所有条件语句的输入。我们在一个名为Matryoshka的工具中实现了这种方法,并将其在13个开放源程序上的有效性与其他最先进的模糊器进行了比较。Matryoshka发现了比AFL,QSYM和Angora更多的独特崩溃。我们手动将这些崩溃分类为41个独特的新错误,并获得了12个CVE。我们的评估还揭示了Matryoshka令人印象深刻的性能的关键技术:它只收集可能导致目标条件语句不可达的嵌套约束,这大大简化了它必须解决的约束。
英文摘要:
Greybox fuzzing has made impressive progress in recent years, evolving from heuristics-based random mutation to approaches for solving individual path constraints. However, they have difficulty solving path constraints that involve deeply nested conditional statements, which are common in image and video decoders, network packet analyzers, and checksum tools. We propose an approach for addressing this problem. First, we identify all the control flow-dependent conditional statements of the target conditional statement. Next, we select the data flow-dependent conditional statements. Finally, we use three strategies to find an input that satisfies all conditional statements simultaneously. We implemented this approach in a tool called Matryoshka and compared its effectiveness on 13 open source programs against other state-of-the-art fuzzers. Matryoshka found significantly more unique crashes than AFL, QSYM, and Angora. We manually classified those crashes into 41 unique new bugs, and obtained 12 CVEs. Our evaluation also uncovered the key technique contributing to Matryoshka's impressive performance: it collects only the nesting constraints that may cause the target conditional statements unreachable, which greatly simplifies the constraints that it has to solve.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。