Introduction
The Web3 ecosystem, particularly the Ethereum blockchain, has seen a surge in sophisticated "drainer" scams. These malicious actors do not merely use simple phishing; they actively mimic legitimate service providers to deceive users and obscure the flow of stolen funds. Traditional detection methods often fail to keep pace with these dynamic behaviors. ScamSweeper is a novel detection framework designed to identify these sophisticated scams by analyzing the temporal evolution of transaction networks.
The Web3 Scam Challenge
Detecting fraud in Web3 presents three primary hurdles: the massive scale of Ethereum transactions, the noise created by power-law activity distributions, and the temporal evolution of scam behavior. Fraudsters typically follow a sequence: mimicking a service, defrauding victims, and rapidly moving funds through multiple transfers to obscure their trail.
Existing tools often focus on static phishing nodes or de-anonymization, failing to capture the unique "mimicry" and "obscuration" behaviors that define modern Web3 scams. ScamSweeper addresses these gaps by treating the transaction history as a dynamic graph rather than a static snapshot.
The ScamSweeper Framework
The authors propose a multi-stage framework that integrates specialized sampling with advanced deep learning architectures to process the Ethereum transaction graph efficiently.
Core Components:
- STRWalk (Structure Temporal Random Walk): A custom sampling algorithm that weights edges based on time, prioritizing transactions closer to the start of an account's activity. This effectively prunes the massive Ethereum graph into information-rich subgraphs.
- Directed Graph Encoder: Utilizing a Graph Attention Network (GAT), this stage learns the structural features of sampled subgraphs while accounting for transaction direction—a vital factor in identifying fund flows.
- Variational (Transposed) Transformer: The core innovation of ScamSweeper. Unlike traditional Transformers, this "transposed" approach focuses on how specific features evolve across time steps, capturing the "dynamic signature" of an account as it transitions from mimicry to profit-taking.
Key Insights and Results
Analysis of the Ethereum dataset (blocks 1 to 18 million) revealed that normal, phishing, and Web3 scam accounts possess distinct degree signatures. Web3 scams, in particular, show a much higher propensity for "out-degree" propagation as they move stolen funds out of the initial scam account.
Experimental results demonstrate that ScamSweeper sets a new benchmark for malicious account detection:
- Web3 Scam Detection: Achieved a weighted F1-score of 0.70, a 17.29% to 48.94% improvement over existing baselines like SIEGE and Ethident.
- Phishing Detection: Achieved an F1-score of 0.94, outperforming state-of-the-art models like BERT4ETH by at least 17.5%.
- Temporal Importance: Ablation studies confirmed that the temporal sequence (how the graph changes over time) is more critical for detection than the static graph structure itself.
Conclusion and Future Work
ScamSweeper effectively distinguishes "mimic" scam accounts from legitimate services and traditional phishing. While highly effective, future iterations may need to model more advanced obfuscation techniques, such as privacy mixers (e.g., Tornado Cash) or cross-chain bridges. Adapting this framework for real-time "mempool" monitoring remains a promising direction for stopping scams before transactions are finalized.
Summary updated