代理模糊测试:机遇与挑战
Agentic Fuzzing: Opportunities and Challenges
AI总结:
本文提出代理模糊测试方法,通过历史漏洞引导深度代理进行推理,发现逻辑漏洞变种。AFuzz在V8引擎发现40个漏洞,获35000美元奖金,并被分配两个CVE。
摘要:
模糊测试和静态分析工具能发现许多漏洞,但难以发现成熟代码库中的逻辑漏洞。触发此类漏洞通常需要多步骤推理,产生无显著执行反馈,且变种可能在不同实现中以不同模式出现。最近的LLM辅助方法有所帮助,但将LLM作为辅助工具而非推理引擎。我们提出代理模糊测试,一种由历史漏洞引导的漏洞发现方法,深度代理直接进行推理。给定参考漏洞,代理分析其根本原因,假设代码库其他部分可能共享该原因的新场景,并通过生成并运行概念验证代码验证每个假设。这使代理能够发现与参考完全不同的触发路径或代码结构的变种。我们识别了实现代理模糊测试的三个实际挑战:Harness工程、相似根本原因种子间的冗余调查、以及在大型代码库中调度种子。我们通过AFuzz通过四阶段代理流水线、场景覆盖去重先前探索的场景、以及DPP-MAP调度器按多样性排序种子来解决这些问题。我们对V8 JavaScript引擎运行AFuzz约一个月,发现40个漏洞(包括3个重复),获得总计35000美元奖金,并被分配两个CVE。AFuzz还使用V8的种子在SpiderMonkey和JavaScriptCore中发现19个漏洞(包括1个重复)。然而,代理模糊测试仍处于早期阶段,仍有多个开放问题需讨论。尽管如此,我们认为它为发现逻辑漏洞指明了有前途的方向。
英文摘要:
Fuzzers and static analyzers find many bugs but struggle with logic bugs in mature codebases. Triggering such a bug often requires multi-step reasoning that produces no distinctive execution feedback, and variants can appear across implementations too different for a single pattern to match. Recent LLM-assisted approaches help, but they use LLMs as auxiliaries rather than as the reasoning engine. We propose agentic fuzzing, a bug-finding approach seeded by historical bugs in which deep agents perform the reasoning directly. Given a reference bug, the agent analyzes its root cause, hypothesizes new scenarios elsewhere in the codebase that may share that cause, and verifies each hypothesis by generating and running proof-of-concept code. This lets the agent find variants that differ completely in trigger path or code structure from the reference. We identify three practical challenges in implementing agentic fuzzing: harness engineering, redundant investigations across seeds with similar root causes, and scheduling seeds in a large corpus. We address these in AFuzz through a four-stage agent pipeline, scenario coverage that deduplicates previously explored scenarios, and a DPP-MAP scheduler that orders seeds by diversity. We ran AFuzz on the V8 JavaScript engine for about one month, finding 40 bugs (including three duplicates), receiving a total $35,000 bounty, and being assigned two CVEs. AFuzz also found 19 bugs (including one duplicate) in SpiderMonkey and JavaScriptCore using the seeds from V8. However, agentic fuzzing is in its early stages with several remaining open problems we discuss in the paper. Still, we think it points to a promising direction for finding logic bugs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。