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

基于生成器的模糊测试器与类型导向的突变

Generator-Based Fuzzers with Type-Based Targeted Mutation

University of Minnesota(明尼苏达大学);Ain Shams University(艾因夏姆斯大学)

Soha Hussein, Stephen McCamant, Mike Whalen

AI总结:

本文提出了一种基于类型的突变启发式方法,用于提升Java生成器基于模糊测试器的覆盖率,实验显示在AWSLambda应用测试中覆盖率提升了约20%。

摘要:

与任何模糊测试器一样,将生成器基于模糊测试器(GBF)引导至特定代码目标可以提高模糊测试器的效果。在以前的工作中,覆盖引导的模糊测试器使用静态分析、污点分析和约束求解方法来解决这个问题。然而,这些技术并未特别针对GBF进行设计,其中输入生成器用于构建程序输入。观察到输入生成器携带有关输入结构的信息,这种信息通过程序输入的类型组合自然存在。在本文中,我们引入了一种基于类型的突变启发式方法,以及常量字符串查找,用于Java GBF。我们的关键直觉是,如果能够确定哪些子部分(类型)的输入很可能影响分支决策,那么专注于突变构造这些类型的生成器的选择就很可能实现所需的覆盖。我们使用我们的技术对AWSLambda应用程序进行模糊测试。结果与基线GBF工具相比,平均应用覆盖度提高了约20%,当包含第三方代码时,改进更显著。

英文摘要:

As with any fuzzer, directing Generator-Based Fuzzers (GBF) to reach particular code targets can increase the fuzzer's effectiveness. In previous work, coverage-guided fuzzers used a mix of static analysis, taint analysis, and constraint-solving approaches to address this problem. However, none of these techniques were particularly crafted for GBF where input generators are used to construct program inputs. The observation is that input generators carry information about the input structure that is naturally present through the typing composition of the program input. In this paper, we introduce a type-based mutation heuristic, along with constant string lookup, for Java GBF. Our key intuition is that if one can identify which sub-part (types) of the input will likely influence the branching decision, then focusing on mutating the choices of the generators constructing these types is likely to achieve the desired coverages. We used our technique to fuzz AWSLambda applications. Results compared to a baseline GBF tool show an almost 20\% average improvement in application coverage, and larger improvements when third-party code is included.

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

↑