Abstract
With the development of Web 3.0 which emphasizes decentralization, blockchain technology ushers in its revolution and also brings numerous challenges, particularly in the field of cryptocurrency. Recently, a large number of criminal behaviors continuously emerge on blockchain, such as Ponzi schemes and phishing scams, which severely endanger decentralized finance. Existing graph-based abnormal behavior detection methods on blockchain usually focus on constructing homogeneous transaction graphs without distinguishing the heterogeneity of nodes and edges, resulting in partial loss of transaction pattern information. Although existing heterogeneous modeling methods can depict richer information through metapaths, the extracted metapaths generally neglect temporal dependencies between entities and do not reflect real behavior. In this paper, we introduce Time-aware Metapath Feature Augmentation (TMFAug) as a plug-and-play module to capture the real metapath-based transaction patterns during Ponzi scheme detection on Ethereum. The proposed module can be adaptively combined with existing graph-based Ponzi detection methods. Extensive experimental results show that our TMFAug can help existing Ponzi detection methods achieve significant performance improvements on the Ethereum dataset, indicating the effectiveness of heterogeneous temporal information for Ponzi scheme detection.
Introduction
Ponzi schemes have migrated from the physical world to the blockchain, where "smart contracts" automate fraud. In Ethereum, these schemes often masquerade as games or high-yield investment programs, resulting in hundreds of millions of dollars in losses. Detecting these schemes is a critical challenge for decentralized finance (DeFi) security.
Problem Statement
Existing detection methods face two primary hurdles:
- Structural Complexity: Most methods use homogeneous graphs, treating all accounts and transactions as identical types. This ignores the vital distinction between human-controlled Externally Owned Accounts (EOA) and code-based Contract Accounts (CA), as well as the difference between standard transactions and internal contract calls.
- The Temporal Gap: Even heterogeneous methods that distinguish account types often ignore the chronological order of events. A Ponzi scheme is fundamentally defined by its timing: new investors must pay in before old investors are paid out. Without temporal constraints, models cannot reliably distinguish fraudulent payouts from legitimate business logic.
Methodology: TMFAug
To address these gaps, we propose Time-aware Metapath Feature Augmentation (TMFAug), a plug-and-play module designed to enhance existing graph-based models.
Time-aware Metapaths
Unlike standard metapaths (e.g., User A $\rightarrow$ Contract $\rightarrow$ User B), TMFAug imposes a strict chronological constraint ($t_1 < t_2 < t_3$). This ensures the model captures sequences that represent the actual flow of funds over time, which is the "smoking gun" for Ponzi behavior. Research shows that 93.8% of time-aware metapaths involving Ponzi accounts follow a specific "Investor $\rightarrow$ Contract $\rightarrow$ Previous Investor" flow.
Symbiotic Relationship Merging
To manage the massive volume of Ethereum data, TMFAug groups similar transaction sequences into "symbiotic relationships" or super metapaths. This reduces computational noise while preserving the frequency and importance of specific fraudulent patterns.
Behavior Refinement
The module breaks down broad patterns into six specific sub-cases, such as distinguishing between a contract paying a new user versus the fraudster’s own account. A "Top-K" filter is then applied to retain only the most statistically significant features, preventing feature explosion.
Experimental Evaluation
The study utilized a real-world Ethereum dataset containing 57,130 accounts and over 2.7 million interaction edges. The evaluation compared TMFAug against 11 baseline methods, including traditional Machine Learning (Random Forest, LightGBM) and Graph Neural Networks (GCN, GAT, SAGE).
Key Results
- Consistent Performance Boost: TMFAug improved the Micro-F1 score of existing methods with a 93.75% success rate.
- GNN Enhancement: For Graph Attention Networks (GAT), TMFAug increased the Micro-F1 score from 84.24 to 87.68.
- Temporal Superiority: When compared to a version of the model that ignored timestamps (MFAug), the time-aware version consistently achieved higher rankings, proving that chronological order is a critical feature for fraud detection.
Conclusion and Future Work
TMFAug demonstrates that incorporating heterogeneous temporal information significantly enhances the detection of Ponzi schemes on Ethereum. However, the current approach relies on expert-defined metapaths. Future research will focus on automated pattern discovery to identify evolving fraud tactics without human intervention and extending the module to other blockchains like Solana and Binance Smart Chain for real-time detection.
Summary updated