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

智能灰盒模糊

Smart Greybox Fuzzing

Van-Thuan Pham, Marcel Böhme, Andrew E. Santosa, Alexandru Răzvan Căciulescu, Abhik Roychoudhury

摘要:

基于覆盖率的灰盒模糊检测(CGF)是最成功的自动漏洞检测方法之一。给定一个种子文件(作为一个比特序列),CGF随机翻转、删除或比特以生成新文件。CGF通过保留那些增强覆盖率的生成文件来迭代地构建(和模糊化)种子语料库。然而,对于处理复杂文件格式的应用程序,随机位翻转不太可能产生有效文件(或文件中的有效块)。在这项工作中,我们引入智能灰盒模糊(SGF),它利用种子文件的高层次结构表示来生成新的文件。我们定义了创新的变异算子,工作在虚拟文件结构,而不是位的水平,使SGF探索全新的输入域,同时保持文件的有效性。我们引入了一种新的基于有效性的电源调度,使SGF花更多的时间生成更有可能通过程序的解析阶段的文件,这可以暴露更深层次的处理逻辑中的漏洞。我们的评估证明了SGF的有效性。在解析结构复杂文件的几个库上,我们的工具AFL Smart探索了比基线AFL更多的路径(高达200%),并暴露了更多的漏洞。我们的工具AFLSmart在广泛使用的、经过良好测试的工具和库中发现了42个零日漏洞;到目前为止,分配了17个CVE。

英文摘要:

Coverage-based greybox fuzzing (CGF) is one of the most successful methods for automated vulnerability detection. Given a seed file (as a sequence of bits), CGF randomly flips, deletes or bits to generate new files. CGF iteratively constructs (and fuzzes) a seed corpus by retaining those generated files which enhance coverage. However, random bitflips are unlikely to produce valid files (or valid chunks in files), for applications processing complex file formats. In this work, we introduce smart greybox fuzzing (SGF) which leverages a high-level structural representation of the seed file to generate new files. We define innovative mutation operators that work on the virtual file structure rather than on the bit level which allows SGF to explore completely new input domains while maintaining file validity. We introduce a novel validity-based power schedule that enables SGF to spend more time generating files that are more likely to pass the parsing stage of the program, which can expose vulnerabilities much deeper in the processing logic. Our evaluation demonstrates the effectiveness of SGF. On several libraries that parse structurally complex files, our tool AFLSmart explores substantially more paths (up to 200%) and exposes more vulnerabilities than baseline AFL. Our tool AFLSmart has discovered 42 zero-day vulnerabilities in widely-used, well-tested tools and libraries; so far 17 CVEs were assigned.

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

↑