DRAINCLoG: Detecting Rogue Accounts with Illegally-obtained NFTs using Classifiers Learned on Graphs

Hanna Kim, Jian Cui, Eugene Jang, Chanhee Lee, Yongjae Lee, Jin-Woo Chung, Seungwon Shin

TL;DR

DRAINCLoG is the first dedicated detection system designed to identify "NFT drainers"—phishing accounts that steal and rapidly liquidate high-value digital assets. By utilizing Graph Neural Networks (GNNs) across two distinct graph structures, the system models both the transaction history of individual NFTs and the social relationships between accounts to spot malicious behavior with high precision.

What Problem Does This Paper Address?

While cryptocurrency phishing has been heavily studied, the rise of Non-Fungible Tokens (NFTs) has birthed a new breed of cybercriminal: the NFT drainer. In just one year, drainers stole over $100 million worth of NFTs using sophisticated phishing sites and malicious smart contract exploits (such as tricking users into signing setApprovalForAll transactions).

Existing cryptocurrency phisher detection systems fail when applied to NFTs. Traditional crypto assets are fungible and typically liquidated via mixing services. NFTs, however, are unique, have highly dynamic values, and follow distinct transaction types (mint, sale, gift, burn). Drainers don't use mixers; instead, they rapidly offload stolen assets on public marketplaces at bargain prices. Prior to this paper, no work had comprehensively analyzed these unique trading behaviors or built a specialized detection pipeline for them.

Fig. 2: The process of draining NFTs using phishing attacks: (1) spreading phishing websites, (2) draining NFTs from victims, and (3) cashing out drained NFTs.

Methods

The authors introduce DRAINCLoG (Detecting Rogue Accounts with Illegally-obtained NFTs using Classifiers Learned on Graphs). The system uses a dual-graph architecture to capture the multifaceted nature of the NFT ecosystem:

  1. NFT-User Graph (Transaction Context): This bipartite-style graph models the relationships between users and individual NFTs. A customized GNN with a multi-head attention mechanism aggregates the ownership and transaction history of every NFT a user interacts with, capturing features like holding times and price anomalies.
  2. User Graph (Social Context): This graph models direct user-to-user interactions. Because the type of transfer matters deeply, the authors employ a Relational Graph Convolutional Network (R-GCN) to treat "sales" and "gifts" as distinct edge types, mapping out how drainers interact with victims and accomplices.

Finally, the high-level representations from both graph extractors are combined with 19-dimensional engineered user node features and fed into a Support Vector Machine (SVM) classifier to flag drainer accounts.

Fig. 5: The overall architecture of DRAINCLoG. First, NFT transaction records and user accounts obtain attributes through feature engineering and are used to construct an NFT-User graph and a User graph. The transaction context extractor and social context extractor are trained to extract information from each graph, respectively. The user features and the representations from two extractors are concatenated and fed into the classifier.

Datasets

The authors compiled a massive, real-world dataset from the Ethereum blockchain spanning the entirety of 2022:

  • NFT Transaction Data: 127.8 million transaction records involving 80.7 million unique NFTs and over 4.6 million unique accounts.
  • Ground-Truth Drainer Accounts: 1,135 unique, verified drainer accounts meticulously gathered and cross-referenced from five distinct security sources: Twitter, ScamSniffer, Etherscan, CryptoScamDB, and Chainabuse.

Key Insights and Ideas

  • The "Gift" Gateway: Unlike regular users who buy or mint assets, 75.1% of drainers acquire their NFTs exclusively through "gift-in" transactions—the blockchain footprint of an unauthorized phishing transfer.
  • Rapid Fire Sales: Drainers are in a race against time before marketplaces ban them. The data reveals that drainers sell more than 80% of stolen NFTs within a single day of acquiring them.
  • Bargain Pricing: To ensure immediate liquidation, drainers list stolen NFTs at "bargain prices," averaging 37% to 39% below the asset's market value.
  • The Affiliate Network: 82.5% of drainers do not sell stolen assets directly. Instead, they quickly pass them to "affiliated accounts" to obscure the asset trail, creating highly localized, anomalous clusters in the user interaction graph.
Fig. 4: CDFs of (a) active timespan, (b) gift-in ratio, and (c) out-in ratio, where the y-axis denotes proportion of users. CDFs of holding times of different user types (regular users, affiliated users, and drainers) based on out-transaction types: (d) sell and (e) gift-out, where the y-axis denotes proportion of NFTs. We include an enlarged graph for holding times smaller than a day.

Key Results

Evaluated against highly imbalanced, real-world datasets (ranging from 1:10 to 1:1000 drainer-to-normal-user ratios), DRAINCLoG significantly outperformed standard feature-based and graph-based baselines (like Node2Vec and standard GCNs):

  • On a moderate imbalance dataset ($D_1$), DRAINCLoG achieved a precision of 0.989 and an F1-score of 0.763.
  • Even under extreme real-world imbalance ($D_3$, 1:1000), it maintained a precision of 0.448 and a recall of 0.631, drastically reducing false positives compared to other methods.

The authors also subjected DRAINCLoG to four severe evasion attacks (e.g., drainers minting noise NFTs or sending Ether to victims to mimic a legitimate sale). While advanced attacks initially degraded performance, the authors demonstrated a proactive defense: retraining the classifier with just 3% of adversarial examples successfully restored high detection recall.

Limitations and Future Work

A primary limitation is layered evasion. If a sophisticated drainer passes stolen NFTs through a complex, cyclic web of multiple auxiliary accounts (similar to wash trading), DRAINCLoG's single-account focus can struggle to differentiate them from legitimate multi-wallet power users.

Additionally, the current model overlooks fine-grained temporal dynamics. The authors note that during an actual attack, a drainer steals all of a victim's NFTs simultaneously, whereas benign multi-wallet transfers happen over hours or days. Future iterations will integrate exact block timestamps into the graph edge attributes to capture this synchronous influx of stolen assets.

Summary updated

BibTeX
@inproceedings{kim2024drainclog,
  author = {Hanna Kim and Jian Cui and Eugene Jang and Chanhee Lee and Yongjae Lee and Jin-Woo Chung and Seungwon Shin},
  title = {{DRAINCLoG: Detecting Rogue Accounts with Illegally-obtained NFTs using Classifiers Learned on Graphs}},
  booktitle = {Ndss},
  year = {2024},
}
Figure