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

一种高效且成本效益高的以太坊智能合约审计代理框架

An Effective and Cost-Efficient Agentic Framework for Ethereum Smart Contract Auditing

Huazhong University of Science and Technology(华中科技大学);Amber Group(安比集团);University of Göttingen(哥廷根大学);National Yang Ming Chiao Tung University(国立阳明交通大学);The Hong Kong Polytechnic University(香港理工大学)

Xiaohui Hu, Wun Yu Chan, Yuejie Shi, Qumeng Sun, Wei-Cheng Wang, Chiachih Wu, Haoyu Wang, Ningyu He

AI总结:

本文提出Heimdallr,一种高效且低成本的智能合约审计代理,通过四个创新技术实现高精度检测,减少分析时间和成本,发现多个零日漏洞并保护大量资金。

摘要:

智能合约的安全性至关重要,但识别复杂的业务逻辑漏洞仍是一个持续的挑战,因为现有解决方案始终无法满足需求:手动审计无法扩展,静态分析工具受到假阳性问题的困扰,而模糊测试器在复杂系统中难以导航深层逻辑状态。即使新兴的基于AI的方法也受到幻觉、上下文限制和对昂贵、专有大型语言模型的依赖。在本文中,我们介绍了Heimdallr,一种自动化审计代理,通过四个核心创新来克服这些障碍。通过在函数级别重新组织代码,Heimdallr在减少上下文开销的同时保留了必要的业务逻辑。然后,它利用启发式推理来检测复杂漏洞,并自动链接功能性漏洞。最后,一个级联验证层验证这些发现,以消除假阳性。值得注意的是,这种方法在轻量级、开源模型如GPToss-120B上实现了高性能,而无需依赖专有系统。我们的评估显示了卓越的性能,Heimdallr在2025年6月后成功重建了17个现实世界攻击,导致总损失3.84亿美元,并发现了4个已确认的零日漏洞,保护了4亿美元的TVL。与包括官方工业工具和学术工具在内的最先进基线相比,Heimdallr最多将分析时间减少97.59%,将财务成本减少98.77%,同时将检测精度提高超过93.66%。值得注意的是,当应用于审计比赛时,Heimdallr可以在极低的成本下达到92.45%的检测率,成本仅为每10000行代码2.31美元。我们提供了生产就绪的审计服务,并发布了有价值的基准供未来工作使用。

英文摘要:

Smart contract security is paramount, but identifying intricate business logic vulnerabilities remains a persistent challenge because existing solutions consistently fall short: manual auditing is unscalable, static analysis tools are plagued by false positives, and fuzzers struggle to navigate deep logic states within complex systems. Even emerging AI-based methods suffer from hallucinations, context constraints, and a heavy reliance on expensive, proprietary Large Language Models. In this paper, we introduce Heimdallr, an automated auditing agent designed to overcome these hurdles through four core innovations. By reorganizing code at the function level, Heimdallr minimizes context overhead while preserving essential business logic. It then employs heuristic reasoning to detect complex vulnerabilities and automatically chain functional exploits. Finally, a cascaded verification layer validates these findings to eliminate false positives. Notably, this approach achieves high performance on lightweight, open-source models like GPToss-120B without relying on proprietary systems. Our evaluations demonstrate exceptional performance, as Heimdallr successfully reconstructed 17 out of 20 real-world attacks post June 2025, resulting in total losses of $384M, and uncovered 4 confirmed zero-day vulnerabilities that safeguarded $400M in TVL. Compared to SOTA baselines including both official industrial tools and academic tools, Heimdallr at most reduces analysis time by 97.59% and financial costs by 98.77% while boosting detection precision by over 93.66%. Notably, when applied to auditing contests, Heimdallr can achieve a 92.45% detection rate at a negligible cost of $2.31 per 10K LOC. We provide production-ready auditing services and release valuable benchmarks for future work.

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

↑