面向LLM二进制分析的反馈驱动执行方法 Feedback-Driven Execution for LLM-Based Binary Analysis 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-04-16
👁️ 预览文献
💡 AI 中文简介
现有基于大语言模型的二进制分析大多采用一次性执行模式,推理过程受限于静态分析工具构建的固定程序表示,难以根据中间结果调整探索方向,也难以在有限上下文下完成长程多路径分析。本文提出FORGE系统,将分析过程重构为“推理-行动-观察”的反馈驱动循环,并引入动态智能体森林(FoA)分解执行模型,动态协调并行探索并限制每个智能体的上下文。在3457个真实固件二进制上,FORGE在591个二进制中发现1274个漏洞,精确率达72.3%,覆盖的漏洞类型比已有方法更广。
领域软件安全与程序分析/二进制分析
适合谁读需要一定专业背景(了解二进制分析、LLM智能体与漏洞检测)
核心贡献1. 将LLM二进制分析从一次性执行范式重构为反馈驱动的推理-行动-观察循环,支持增量探索与证据构建;2. 提出动态智能体森林(FoA)分解执行模型,在并行探索的同时限制每个智能体的上下文,缓解长程推理的不稳定性。
关键数据在3457个真实固件二进制上评估,于591个二进制中发现1274个漏洞,精确率72.3%,覆盖漏洞类型比先前方法更广。
推荐理由如果你关心如何让大模型在复杂二进制分析中不迷路、还能规模化挖漏洞,这篇用反馈循环和智能体森林给出了漂亮答案。
关键词["二进制分析", "大语言模型", "反馈驱动执行", "智能体森林", "漏洞检测", "固件安全"]

原文摘要

查看英文原文摘要

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.