Towards Effective Detection of Ponzi schemes on Ethereum with Contract Runtime Behavior Graph
Ruichao Liang, Jing Chen, Cong Wu, Kun He, Yueming Wu, Weisong Sun, Ruiying Du, Qingchuan Zhao, Yang Liu
TL;DR
This work tackles the challenge of detecting Ponzi schemes in Ethereum smart contracts, highlighting the limitations of static, rule-based, and transaction-based approaches. It introduces PonziGuard, a runtime-behavior driven detector that builds a contract runtime behavior graph (CRBG) by combining static analysis, transaction sequence generation, and dynamic taint analysis, and then applies graph neural networks for classification. The approach demonstrates strong performance on a ground-truth dataset (e.g., precision 96.9%, recall 98.2%, F1 97.5%) and proves effective on Ethereum Mainnet, identifying 805 Ponzi contracts (including 0-day schemes) and recovering about 281,700 Ether (~$500M) in losses. Key contributions include the CRBG representation, a tailored taint-driven runtime collection, data pruning/joining strategies, and interpretability analyses that reveal the critical role of investment and reward flows in Ponzi behavior. The results indicate that runtime-driven, graph-based detection can achieve robust Ponzi identification with scalable real-world applicability, albeit with notable but manageable overhead from the instrumented EVM.
Abstract
Ponzi schemes, a form of scam, have been discovered in Ethereum smart contracts in recent years, causing massive financial losses. Existing detection methods primarily focus on rule-based approaches and machine learning techniques that utilize static information as features. However, these methods have significant limitations. Rule-based approaches rely on pre-defined rules with limited capabilities and domain knowledge dependency. Using static information like opcodes for machine learning fails to effectively characterize Ponzi contracts, resulting in poor reliability and interpretability. Moreover, relying on static information like transactions for machine learning requires a certain number of transactions to achieve detection, which limits the scalability of detection and hinders the identification of 0-day Ponzi schemes. In this paper, we propose PonziGuard, an efficient Ponzi scheme detection approach based on contract runtime behavior. Inspired by the observation that a contract's runtime behavior is more effective in disguising Ponzi contracts from the innocent contracts, PonziGuard establishes a comprehensive graph representation called contract runtime behavior graph (CRBG), to accurately depict the behavior of Ponzi contracts. Furthermore, it formulates the detection process as a graph classification task on CRBG, enhancing its overall effectiveness. The experiment results show that PonziGuard surpasses the current state-of-the-art approaches in the ground-truth dataset. We applied PonziGuard to Ethereum Mainnet and demonstrated its effectiveness in real-world scenarios. Using PonziGuard, we identified 805 Ponzi contracts on Ethereum Mainnet, which have resulted in an estimated economic loss of 281,700 Ether or approximately $500 million USD. We also found 0-day Ponzi schemes in the recently deployed 10,000 smart contracts.
