FalseCrashReducer:使用智能体AI缓解OSS-Fuzz-Gen中的误报崩溃
FalseCrashReducer: Mitigating False Positive Crashes in OSS-Fuzz-Gen Using Agentic AI
AI总结:
针对自动生成的模糊测试驱动程序易引发误报崩溃的问题,本文提出基于约束的驱动生成和基于上下文的崩溃验证两种AI策略,在OSS-Fuzz基准上显著减少误报,验证了大语言模型作为程序分析智能体的可行性。
摘要:
模糊测试已成为识别软件缺陷和安全漏洞的核心技术,在工业界和开源社区均得到广泛应用。直接对函数进行模糊测试需要模糊测试驱动程序,其作用是将模糊测试器生成的随机输入转换为目标函数的有效参数。鉴于手动开发模糊测试驱动程序需要耗费大量成本且依赖专业知识,现有方法利用程序分析和大语言模型来自动生成这类驱动程序。然而,生成的模糊测试驱动程序经常会引发误报崩溃,尤其是在输入高度结构化、状态要求复杂的函数中。这个问题在OSS-Fuzz-Gen这类工业级模糊测试驱动程序生成项目中尤为关键,因为向维护者报告误报崩溃会损害各方对系统及相关团队的信任。\n本文提出了两种由AI驱动的策略,用于减少OSS-Fuzz-Gen(一个用于自动生成模糊测试驱动程序的多智能体系统)中的误报。第一种是基于约束的模糊测试驱动程序生成,该方法主动对函数的输入和状态施加约束,以指导驱动程序的构建。第二种是基于上下文的崩溃验证,该方法被动地分析函数的调用方,以判断所报告的崩溃从程序入口点来看是否具备可行性。我们使用来自OSS-Fuzz的1500个基准函数进行实验,结果表明这些策略最多可减少8%的虚假崩溃,将报告的崩溃数量减少一半以上,同时证明前沿大语言模型可作为可靠的程序分析智能体。我们的研究结果凸显了将AI集成到大规模模糊测试流程中的潜力与挑战。
英文摘要:
Fuzz testing has become a cornerstone technique for identifying software bugs and security vulnerabilities, with broad adoption in both industry and open-source communities. Directly fuzzing a function requires fuzz drivers, which translate random fuzzer inputs into valid arguments for the target function. Given the cost and expertise required to manually develop fuzz drivers, methods exist that leverage program analysis and Large Language Models to automatically generate these drivers. However, the generated fuzz drivers frequently lead to false positive crashes, especially in functions highly structured input and complex state requirements. This problem is especially crucial in industry-scale fuzz driver generation efforts like OSS-Fuzz-en, as reporting false positive crashes to maintainers impede trust in both the system and the team. This paper presents two AI-driven strategies to reduce false positives in OSS-Fuzz-Gen, a multi-agent system for automated fuzz driver generation. First, constraint-based fuzz driver generation proactively enforces constraints on a function's inputs and state to guide driver creation. Second, context-based crash validation reactively analyzes function callers to determine whether reported crashes are feasible from program entry points. Using 1,500 benchmark functions from OSS-Fuzz, we show that these strategies reduce spurious crashes by up to 8%, cut reported crashes by more than half, and demonstrate that frontier LLMs can serve as reliable program analysis agents. Our results highlight the promise and challenges of integrating AI into large-scale fuzzing pipelines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。