An Effective and Cost-Efficient Agentic Framework for Ethereum Smart Contract Auditing
Xiaohui Hu, Wun Yu Chan, Yuejie Shi, Qumeng Sun, Wei-Cheng Wang, Chiachih Wu, Haoyu Wang, Ningyu He

TL;DR
Heimdallr is an automated, cost-effective agentic framework for Ethereum smart contract auditing that leverages function-level code organization, heuristic reasoning, and cascaded verification to detect vulnerabilities efficiently and accurately.
Contribution
The paper introduces Heimdallr, a novel automated auditing framework that overcomes limitations of existing methods by combining code restructuring, heuristic vulnerability detection, and verification, achieving high accuracy with lightweight models.
Findings
Successfully reconstructed 17 out of 20 recent real-world attacks.
Uncovered 4 zero-day vulnerabilities preventing $400M losses.
Reduced analysis time by up to 97.59% and costs by 98.77% compared to baselines.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security · Adversarial Robustness in Machine Learning · Ethics and Social Impacts of AI
