ScamSweeper: Detecting Illegal Accounts in Web3 Scams via Transactions Analysis

Xiaoqi Li, Wenkai Li, Zhijie Liu, Meikang Qiu, Zhiquan Liu, Sen Nie, Zongwei Li, Shi Wu, Yuqing Zhang

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.

The lifecycle of a Web3 scam involving mimicry and profit extraction.

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.

The multi-stage ScamSweeper architecture, illustrating the flow from graph construction to temporal feature learning and classification.

Core Components:

  1. 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.
  2. 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.
  3. 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

BibTeX
@article{li2026scamsweeper,
  author = {Xiaoqi Li and Wenkai Li and Zhijie Liu and Meikang Qiu and Zhiquan Liu and Sen Nie and Zongwei Li and Shi Wu and Yuqing Zhang},
  title = {{ScamSweeper: Detecting Illegal Accounts in Web3 Scams via Transactions Analysis}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2026},
  doi = {10.1109/tifs.2025.3646027},
}
Figure