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

Agora: 面向生产级共识协议中自主漏洞检测的LLM智能体

Agora: Toward Autonomous Bug Detection in Production-Level Consensus Protocols with LLM Agents

School of Computing, National University of Singapore(新加坡国立大学计算机学院);School of Information and Telecommunication Engineering, Beijing University of Posts and Telecommunications(北京邮电大学信息与电信工程学院);Peking University(北京大学);G Labs(0G实验室)

Xiang Liu, Sa Song, Zhaowei Zhang, Huiying Lan, Jason Zeng, Ming Wu, Michael Heinrich, Yong Sun, Ceyao Zhang

AI总结:

提出Agora,一个领域感知的多智能体框架,通过假设驱动测试和LLM协作,在Raft、EPaxos、HotStuff、BullShark四个共识实现中发现15个未知协议级逻辑漏洞,而现有LLM方法未能检测到任何此类漏洞。

摘要:

共识协议构成了分布式系统和区块链的骨干,其中的实现漏洞可能导致数据损坏和财务损失。虽然基于LLM的方法在代码分析中显示出前景,但它们难以处理涉及跨多个执行阶段的复杂状态依赖行为的深层协议级逻辑漏洞。我们提出Agora,一个领域感知的多智能体框架,将假设驱动测试与LLM能力相结合,用于系统性的协议验证。Agora采用专门的智能体,协作探索协议状态空间,使用领域特定约束综合攻击场景,并通过迭代细化验证发现。这种明确的角色分离使得能够推理全局协议不变量,超越单函数代码分析。我们在四个共识实现(Raft、EPaxos、HotStuff、BullShark)上使用四个最先进的LLM评估了Agora。Agora发现了15个先前未知的违反安全属性的协议级逻辑漏洞,而现有的基于LLM的智能体未能检测到任何此类协议级逻辑漏洞。我们的结果表明,领域感知的多智能体协作对于检测复杂协议中的深层逻辑漏洞至关重要。

英文摘要:

Consensus protocols form the backbone of distributed systems and blockchains, where implementation bugs can cause data corruption and financial losses. While LLM-based approaches show promise in code analysis, they struggle with deep protocol-level logic bugs involving complex state-dependent behaviors across multiple execution stages. We present Agora, a domain-aware multi-agent framework that integrates hypothesis-driven testing with LLM capabilities for systematic protocol verification. Agora employs specialized agents that collaboratively explore protocol state spaces, synthesize attack scenarios using domain-specific constraints, and validate findings through iterative refinement. This explicit role separation enables reasoning about global protocol invariants beyond single-function code analysis. We evaluate Agora on four consensus implementations (Raft, EPaxos, HotStuff, BullShark) using four state-of-the-art LLMs. Agora discovers 15 previously unknown protocol-level logic bugs that violate safety properties, while existing LLM-based agents fail to detect any such protocol-level logic bugs. Our results demonstrate that domain-aware multi-agent collaboration is essential for detecting deep logic bugs in complex protocols.

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

↑