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

基于反馈的LLM二进制分析执行

Feedback-Driven Execution for LLM-Based Binary Analysis

BeiJing JiaoTong· University(北京交通大学);Virginia Tech(弗吉尼亚理工大学)

XiangRui Zhang, Qiang Li, Haining Wang

AI总结:

本文提出FORGE系统,通过反馈驱动执行框架提升LLM在二进制分析中的表现,实现长周期多路径分析与高精度漏洞检测。

摘要:

二进制分析日益依赖大语言模型(LLM)进行复杂程序行为的语义推理。然而,现有方法大多采用单次执行范式,推理基于静态分析工具构建的固定程序表示,限制了根据中间结果调整探索的能力,并难以在受限上下文中维持长周期、多路径分析。我们提出了FORGE,重新思考LLM分析为反馈驱动执行过程。FORGE通过推理-行动-观察循环交替推理和工具交互,实现增量探索和证据构建。为解决长周期推理的不稳定性,我们引入动态代理森林(FoA),一种分解执行模型,可动态协调并行探索同时限制每个代理的上下文。我们在3,457个真实世界固件二进制上评估FORGE,发现1,274个漏洞,覆盖591个唯一二进制,达到72.3%的精度,覆盖比先前方法更广的漏洞类型。这些结果表明,将LLM分析结构化为分解、反馈驱动的执行系统,能够实现长周期任务中的可扩展推理和高质量结果。

英文摘要:

Binary analysis increasingly relies on large language models (LLMs) to perform semantic reasoning over complex program behaviors. However, existing approaches largely adopt a one-pass execution paradigm, where reasoning operates over a fixed program representation constructed by static analysis tools. This formulation limits the ability to adapt exploration based on intermediate results and makes it difficult to sustain long-horizon, multi-path analysis under constrained context. We present FORGE, a system that rethinks LLM-based analysis as a feedback-driven execution process. FORGE interleaves reasoning and tool interaction through a reasoning-action-observation loop, enabling incremental exploration and evidence construction. To address the instability of long-horizon reasoning, we introduce a Dynamic Forest of Agents (FoA), a decomposed execution model that dynamically coordinates parallel exploration while bounding per-agent context. We evaluate FORGE on 3,457 real-world firmware binaries. FORGE identifies 1,274 vulnerabilities across 591 unique binaries, achieving 72.3% precision while covering a broader range of vulnerability types than prior approaches. These results demonstrate that structuring LLM-based analysis as a decomposed, feedback-driven execution system enables both scalable reasoning and high-quality outcomes in long-horizon tasks.

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

↑