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

基于定量与自适应热字节识别的模糊测试

Fuzzing with Quantitative and Adaptive Hot-Bytes Identification

Tai D. Nguyen, Long H. Pham, Jun Sun

AI总结:

本文提出一种定量与自适应热字节识别的模糊测试方法,通过表达性模型和信息量度量学习输入与分支条件的关系,并根据当前瓶颈分支动态调整策略,在真实程序和 LAVA-M 数据集上实现了更高的分支覆盖率和更多的漏洞发现。

摘要:

模糊测试已成为在复杂现实应用程序中发现安全漏洞的强大技术。领先的模糊测试工具 American fuzzy lop(AFL)通过大量报告的 CVE 展示了其强大的漏洞发现能力。然而,其随机变异策略无法生成满足复杂分支条件的测试输入(例如魔术字节比较、校验和测试以及嵌套 if 语句),这些条件在图像解码器/编码器、XML 解析器和校验和工具中普遍存在。现有解决该问题的方法(如 Steelix 和 Neuzz)假设了不切实际的条件,例如可以逐字节满足分支条件,或者可以一次性识别并聚焦输入中的重要字节(称为热字节)。在本工作中,我们提出了一种名为 \ ool 的方法,其设计基于以下原则。第一,输入与分支条件之间存在复杂关系,因此我们不仅需要一个具有表达能力的模型来捕捉这种关系,还需要一种信息量丰富的度量,以便能够有效地学习这种关系。第二,不同的分支条件需要不同的热字节,我们必须根据当前瓶颈所在的分支自适应地调整模糊测试策略。我们将该方法实现为一个开源项目,并将其效率与其他最先进的模糊测试工具进行比较。我们在 10 个真实程序和 LAVA-M 数据集上的评估结果表明,\ ool 实现了分支覆盖率的持续提升,并且比其他模糊测试工具发现了更多的漏洞。

英文摘要:

Fuzzing has emerged as a powerful technique for finding security bugs in complicated real-world applications. American fuzzy lop (AFL), a leading fuzzing tool, has demonstrated its powerful bug finding ability through a vast number of reported CVEs. However, its random mutation strategy is unable to generate test inputs that satisfy complicated branching conditions (e.g., magic-byte comparisons, checksum tests, and nested if-statements), which are commonly used in image decoders/encoders, XML parsers, and checksum tools. Existing approaches (such as Steelix and Neuzz) on addressing this problem assume unrealistic assumptions such as we can satisfy the branch condition byte-to-byte or we can identify and focus on the important bytes in the input (called hot-bytes) once and for all. In this work, we propose an approach called \tool~which is designed based on the following principles. First, there is a complicated relation between inputs and branching conditions and thus we need not only an expressive model to capture such relationship but also an informative measure so that we can learn such relationship effectively. Second, different branching conditions demand different hot-bytes and we must adjust our fuzzing strategy adaptively depending on which branches are the current bottleneck. We implement our approach as an open source project and compare its efficiency with other state-of-the-art fuzzers. Our evaluation results on 10 real-world programs and LAVA-M dataset show that \tool~achieves sustained increases in branch coverage and discovers more bugs than other fuzzers.

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

↑