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

库API与二进制协议解析器的自动化模糊测试驱动程序生成

Automated Fuzzing Harness Generation for Library APIs and Binary Protocol Parsers

Chaitanya Rahalkar

AI总结:

提出一种通过分析单元测试自动生成库API和二进制协议解析器模糊测试驱动程序的系统,并开发指标评估API的模糊测试价值以优先测试目标。

摘要:

模糊测试是一种广泛使用的软件安全测试技术,旨在通过提供无效或意外的输入来识别系统中的漏洞。像 OSS-FUZZ 这样的持续模糊测试系统在许多不同的软件系统中发现安全漏洞方面取得了成功。使用模糊测试发现安全漏洞的典型过程包括几个步骤:首先,必须识别可能包含漏洞的“模糊测试价值”函数;其次,在调用 API 之前,必须了解其设置要求;第三,必须编写模糊测试驱动程序并将其绑定到像 LLVM 的 LibFuzzer 这样的覆盖率引导的模糊测试器上;最后,必须对模糊测试驱动程序发现的安全漏洞进行分类并检查其可重现性。本项目专注于自动化这一过程中的前两个步骤。特别是,我们提出了一个自动化系统,该系统可以通过分析单元测试来为库 API 和二进制协议解析器生成模糊测试驱动程序。这使得模糊测试基础设施能够随着代码库的增长而扩展,而无需手动编写驱动程序。此外,我们开发了一个指标来评估 API 的“模糊测试价值”,使我们能够优先测试最有希望的目标。

英文摘要:

Fuzzing is a widely used software security testing technique that is designed to identify vulnerabilities in systems by providing invalid or unexpected input. Continuous fuzzing systems like OSS-FUZZ have been successful in finding security bugs in many different software systems. The typical process of finding security bugs using fuzzing involves several steps: first, the "fuzz-worthy" functions that are likely to contain vulnerabilities must be identified; second, the setup requirements for the API must be understood before it can be called; third, a fuzzing harness must be written and bound to a coverage-guided fuzzer like LLVM's LibFuzzer; and finally, the security bugs discovered by the fuzzing harness must be triaged and checked for reproducibility. This project focuses on automating the first two steps in this process. In particular, we present an automated system that can generate fuzzing harnesses for library APIs and binary protocol parsers by analyzing unit tests. This allows for the scaling of the fuzzing infrastructure in proportion to the growth of the codebase, without the need for manual coding of harnesses. Additionally, we develop a metric to assess the "fuzz-worthiness" of an API, enabling us to prioritize the most promising targets for testing.

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

↑