FuSeBMC v4:通过有界模型检测、模糊测试和静态分析利用智能种子提升代码覆盖率
FuSeBMC v4: Improving code coverage with smart seeds via BMC, fuzzing and static analysis
AI总结:
本研究提出测试生成工具FuSeBMC v4,通过注入目标标签引导BMC与进化模糊测试引擎生成智能种子,结合Tracer子系统协调引擎运行,提升C程序代码覆盖率,在Test-Comp 2022竞赛中多类别超越现有先进工具并获三个奖项。
摘要:
有界模型检测(Bounded model checking,BMC)与模糊测试技术是检测软件中错误和安全漏洞最有效的方法之一。然而,由于现有方法无法覆盖目标代码的大范围区域,这类错误的检测仍存在不足。我们提出FuSeBMC v4,这是一种测试生成器,能够合成具备有用属性的种子(我们称之为智能种子),以提升其混合模糊测试器的性能,从而实现C程序的高覆盖率。FuSeBMC的工作流程为:首先对给定的C程序进行分析,并逐步注入目标标签,以引导BMC引擎和进化模糊测试引擎。随后,在初始阶段运行这些引擎,生成所谓的智能种子。最后,以这些智能种子作为起始种子再次运行引擎,力求实现最大代码覆盖率并发现漏洞。在种子生成和正常运行阶段,引擎间的协调由Tracer子系统提供支持。该子系统会开展额外的覆盖率分析,并将目前已覆盖目标的信息更新至共享内存中。此外,Tracer会动态评估测试用例,将用例转化为后续模糊测试的种子。由此,BMC引擎能够提供种子,帮助模糊测试引擎绕过复杂的数学校验条件(例如输入验证)。最终,我们凭借该工具参加第四届国际软件测试竞赛(Test-Comp 2022)并获得三个奖项,在包括覆盖率类别在内的所有类别中均超越了所有现有先进工具。
英文摘要:
Bounded model checking (BMC) and fuzzing techniques are among the most effective methods for detecting errors and security vulnerabilities in software. However, there are still shortcomings in detecting these errors due to the inability of existent methods to cover large areas in target code. We propose FuSeBMC v4, a test generator that synthesizes seeds with useful properties, that we refer to as smart seeds, to improve the performance of its hybrid fuzzer thereby achieving high C program coverage. FuSeBMC works by first analyzing and incrementally injecting goal labels into the given C program to guide BMC and Evolutionary Fuzzing engines. After that, the engines are employed for an initial period to produce the so-called smart seeds. Finally, the engines are run again, with these smart seeds as starting seeds, in an attempt to achieve maximum code coverage / find bugs. During both seed generation and normal running, coordination between the engines is aided by the Tracer subsystem. This subsystem carries out additional coverage analysis and updates a shared memory with information on goals covered so far. Furthermore, the Tracer evaluates test cases dynamically to convert cases into seeds for subsequent test fuzzing. Thus, the BMC engine can provide the seed that allows the fuzzing engine to bypass complex mathematical guards (e.g., input validation). As a result, we received three awards for participation in the fourth international competition in software testing (Test-Comp 2022), outperforming all state-of-the-art tools in every category, including the coverage category.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。