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

AI代理智能合约漏洞生成

AI Agent Smart Contract Exploit Generation

University College London(伦敦大学学院);The University of Sydney(悉尼大学);Decentralized Intelligence AG(去中心化智能有限公司);UC Berkeley RDI(伯克利大学RDI)

Arthur Gervais, Liyi Zhou

AI总结:

A1通过代理系统结合大语言模型,实现智能合约漏洞的高效生成与验证,成功率达63%,并揭示了攻击与防御在经济上的不对称性。

摘要:

智能合约漏洞导致了数十亿美元的损失,但寻找可行的漏洞利用仍极具挑战性。传统模糊测试工具依赖于僵化的启发式方法,难以应对复杂的攻击;而人工审计员虽然细致但效率低下且无法扩展。大语言模型提供了一个有前途的中间方案,结合了人类般的推理能力与机器的速度。早期研究表明,仅提示LLM生成漏洞推测会产生高误报率。为此,我们提出了A1,一个代理系统,能够将任何LLM转化为端到端的漏洞生成器。A1为代理提供了六个专门领域的工具,用于自主发现漏洞,从理解合约行为到在真实区块链状态上测试策略。所有输出都通过执行进行具体验证,确保仅报告有盈利潜力的概念验证漏洞。我们评估了A1在36个真实世界中存在漏洞的以太坊和币安智能链合约上的表现。A1在VERITE基准测试中实现了63%的成功率。在所有成功案例中,A1每种漏洞提取最高可达859万美元,总金额达933万美元。通过历史攻击的蒙特卡洛分析,我们展示了立即检测漏洞的成功概率为86-89%,延迟一周后则降至6-21%。我们的经济分析揭示了一个令人担忧的不对称性:攻击者在6000美元的漏洞价值上实现盈利,而防御者则需要6万美元——这引发了关于AI代理是否不可避免地偏袒攻击而非防御的根本性问题。

英文摘要:

Smart contract vulnerabilities have led to billions in losses, yet finding actionable exploits remains challenging. Traditional fuzzers rely on rigid heuristics and struggle with complex attacks, while human auditors are thorough but slow and don't scale. Large Language Models offer a promising middle ground, combining human-like reasoning with machine speed. Early studies show that simply prompting LLMs generates unverified vulnerability speculations with high false positive rates. To address this, we present A1, an agentic system that transforms any LLM into an end-to-end exploit generator. A1 provides agents with six domain-specific tools for autonomous vulnerability discovery, from understanding contract behavior to testing strategies on real blockchain states. All outputs are concretely validated through execution, ensuring only profitable proof-of-concept exploits are reported. We evaluate A1 across 36 real-world vulnerable contracts on Ethereum and Binance Smart Chain. A1 achieves a 63% success rate on the VERITE benchmark. Across all successful cases, A1 extracts up to \$8.59 million per exploit and \$9.33 million total. Using Monte Carlo analysis of historical attacks, we demonstrate that immediate vulnerability detection yields 86-89% success probability, dropping to 6-21% with week-long delays. Our economic analysis reveals a troubling asymmetry: attackers achieve profitability at \$6,000 exploit values while defenders require \$60,000 -- raising fundamental questions about whether AI agents inevitably favor exploitation over defense.

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

↑