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

SmartOracle -- 一种缓解差分预言机噪声的代理方法

SmartOracle -- An Agentic Approach to Mitigate Noise in Differential Oracles

North Carolina State University(北卡罗来纳州立大学)

Srinath Srinivasan, Tim Menzies, Marcelo D'Amorim

AI总结:

SmartOracle通过代理系统减少差分预言机噪声,提高模糊测试准确性并降低分析成本

摘要:

差分模糊测试器通过在相同规范的不同实现上执行相同输入来检测bug,例如JavaScript解释器。验证输出需要一个预言机,对于JavaScript的差分测试,这些预言机是手动构建的,使它们昂贵、耗时且容易产生假阳性。更糟糕的是,当规范发生变化时,这种手动工作必须重复进行。受其他软件工程领域代理系统成功的影响,本文介绍了SmartOracle。SmartOracle将手动排查流程分解为专门的大型语言模型(LLM)子代理。这些代理独立收集终端运行和针对性规范查询的证据,以达成最终结论。对于历史基准测试,SmartOracle在0.84的召回率下有18%的假阳性率。与顺序Gemini 2.5 Pro基线相比,它提高了排查准确性,同时将分析时间减少4倍,API成本减少10倍。在主动模糊测试活动中,SmartOracle成功识别并报告了跨主要引擎的先前未知的规范级问题,包括V8、JavaScriptCore和GraalJS中的bug。SmartOracle在JavaScript上的成功代理架构表明,它可能对其他软件系统有用——这是我们未来研究的方向。

英文摘要:

Differential fuzzers detect bugs by executing identical inputs across distinct implementations of the same specification, such as JavaScript interpreters. Validating the outputs requires an oracle and for differential testing of JavaScript, these are constructed manually, making them expensive, time-consuming, and prone to false positives. Worse, when the specification evolves, this manual effort must be repeated. Inspired by the success of agentic systems in other SE domains, this paper introduces SmartOracle. SmartOracle decomposes the manual triage workflow into specialized Large Language Model (LLM) sub-agents. These agents synthesize independently gathered evidence from terminal runs and targeted specification queries to reach a final verdict. For historical benchmarks, SmartOracle achieves 0.84 recall with an 18% false positive rate. Compared to a sequential Gemini 2.5 Pro baseline, it improves triage accuracy while reducing analysis time by 4$\times$ and API costs by 10$\times$. In active fuzzing campaigns, SmartOracle successfully identified and reported previously unknown specification-level issues across major engines, including bugs in V8, JavaScriptCore, and GraalJS. The success of SmartOracle's agentic architecture on Javascript suggests it might be useful other software systems- a research direction we will explore in future work.

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

↑