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

通过自动化模糊目标生成提升模糊测试效率

Enhancing Fuzz Testing Efficiency through Automated Fuzz Target Generation

Faculty of Information Technology, Ton Duc Thang University(信息科技学院,通德盛大学)

Chi Thien Tran

AI总结:

本文提出通过静态分析库源代码自动提升模糊测试效率,重点在于自动化生成模糊目标并优化执行分析过程。

摘要:

模糊测试仍然是发现软件安全漏洞最有效的方法。在模糊测试中,模糊器向模糊目标提供多种输入,这些目标旨在全面测试客户端代码的关键部分。各种研究都集中在优化和开发先进的模糊器,如AFL++、libFuzzer、Honggfuzz、syzkaller、ISP-Fuzzer,这些模糊器已显著提高了广泛使用的软件和库中的漏洞检测能力。然而,要实现更大的覆盖率,需要在模糊目标的质量和数量上进行改进。在大型软件项目和库中,这些项目通常包含大量的用户定义函数和数据类型,手动创建模糊目标既耗时又费力。这一挑战凸显了需要自动化技术不仅生成模糊目标,还要简化其执行和分析结果。在本文中,我们介绍了一种通过库源代码的静态分析来改进模糊目标生成的方法。所提出的方法包含几个关键方面:它分析源代码结构以准确构造函数调用并生成模糊目标;它将模糊器输入数据映射到相应的函数参数;它合成模糊目标的编译信息;并自动收集和分析执行结果。我们的发现通过将该方法应用于C/C++库的模糊目标生成来展示。

英文摘要:

Fuzzing continues to be the most effective method for identifying security vulnerabilities in software. In the context of fuzz testing, the fuzzer supplies varied inputs to fuzz targets, which are designed to comprehensively exercise critical sections of the client code. Various studies have focused on optimizing and developing advanced fuzzers, such as AFL++, libFuzzer, Honggfuzz, syzkaller, ISP-Fuzzer, which have substantially enhanced vulnerability detection in widely used software and libraries. Nevertheless, achieving greater coverage necessitates improvements in both the quality and quantity of fuzz targets. In large-scale software projects and libraries -- characterized by numerous user defined functions and data types -- manual creation of fuzz targets is both labor-intensive and time-consuming. This challenge underscores the need for automated techniques not only to generate fuzz targets but also to streamline the execution and analysis of their results. In this paper, we introduce an approach to improving fuzz target generation through static analysis of library source code. The proposed method encompasses several key aspects: it analyzes source code structures to accurately construct function calls and generate fuzz targets; it maps fuzzer input data to the corresponding function parameters; it synthesizes compilation information for the fuzz targets; and it automatically collects and analyzes execution results. Our findings are demonstrated through the application of this approach to the generation of fuzz targets for C/C++ libraries.

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

↑