NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Graph Learning-Based Blockchain Phishing Account Detection with a Heterogeneous Transaction Graph

Jaehyeon Kim, Sejong Lee, Yushin Kim, Seyoung Ahn, Sunghyun Cho2023

TL;DR

This paper introduces ATGraph, a novel heterogeneous graph structure for detecting phishing accounts on the Ethereum blockchain. By representing transactions as nodes, ATGraph effectively captures the network's heterogeneity and simplifies multi-edge relationships, leading to improved detection performance compared to traditional homogeneous graph approaches.

What Problem Does This Paper Address?

The anonymity offered by blockchain technology, particularly cryptocurrencies like Ethereum, has unfortunately become a breeding ground for cybercrimes, including phishing. These malicious activities threaten users' assets and the overall stability of the blockchain ecosystem. While existing research has explored using graph-based machine learning to detect these fraudulent accounts by analyzing transaction records, these methods often represent transactions as homogeneous graphs. This approach overlooks the inherent heterogeneity of the Ethereum network and struggles with the "multi-edge" nature of transaction data (multiple transactions between the same two accounts), limiting the effectiveness of traditional graph learning algorithms. This paper aims to bridge this gap by proposing a more sophisticated graph representation that better reflects the complexities of blockchain transactions.

Methods

The core of this paper's contribution lies in its novel graph construction method and its application within a graph learning framework.

  • ATGraph Construction: The authors propose "Account-Transaction Graph" (ATGraph), a directed heterogeneous graph structure. Unlike traditional approaches where accounts are nodes and transactions are edges, ATGraph treats transactions as nodes and accounts as nodes. This key shift allows for:
  • Handling Heterogeneity: It explicitly models different types of entities (accounts and transactions) within the graph.
  • Simplifying Multi-Edges: Multiple transactions between two accounts are represented as individual transaction nodes, effectively converting multi-edges into single edges connected to these transaction nodes. This simplifies the graph structure for learning algorithms.
  • Feature Representation: Multi-dimensional edge features (like timestamp and value) are converted into one-dimensional node features for the transaction nodes.
  • Node Feature Extraction: Features for both account and transaction nodes are derived solely from Ethereum transaction records. Account node features include statistical (e.g., in/out value, average value) and topological (in/out-degree) attributes, as well as temporal features (lifetime, average inter-transaction time). Transaction nodes are characterized by their timestamp and value.
  • Graph Learning-Based Classification: The framework employs a supervised learning approach.
  • Graph Learning Layer: This layer takes the ATGraph as input and learns node-level representations using graph learning algorithms (e.g., GCN, GIN, GraphSAGE, network embedding methods like SF and Graph2Vec).
  • Readout Layer: This layer aggregates the node-level representations to generate a single graph-level representation for the entire ATGraph, using a mean operation.
  • MLP Classifier: A Multi-Layer Perceptron takes the graph-level representation and outputs the probability of the account being a phishing account. Cross-entropy loss is used for training.

Datasets

The study utilizes labeled Ethereum accounts from authoritative sources.

  • Phishing Accounts: 1,700 verified phishing accounts.
  • Normal Accounts: 1,659 normal accounts. These accounts were sourced from XBlock. Transaction records for these accounts were then crawled from Etherscan.

  • Total Ethereum Accounts: 111,956

  • Total Ethereum Transactions: 220,714

The paper constructs 3359 ATGraphs and homogeneous transaction graphs for each labeled Ethereum account for evaluation.

Key Insights and Ideas

  • Transactions as Nodes is Key: The most significant insight is that representing transactions as nodes, rather than edges, fundamentally changes how graph learning algorithms can interact with blockchain data. This approach directly addresses the limitations of homogeneous graphs and multi-edges.
  • Heterogeneity Matters: The paper strongly advocates for modeling the inherent heterogeneity of blockchain networks, which homogeneous graphs fail to capture.
  • Network Embedding Limitations: The results highlight that network embedding methods (SF, Graph2Vec), which don't heavily rely on edge features, show the most significant performance improvement when using ATGraph. This suggests that ATGraph's simplified structure is particularly beneficial for algorithms that struggle with complex edge information.
  • Temporal Features are Discriminative: Analysis of node features reveals that phishing accounts have notably shorter lifetimes and shorter average intervals between transactions, indicating a burst of activity for fraudulent purposes.

Key Results

The experimental results demonstrate that using ATGraph as input consistently outperforms homogeneous transaction graphs across various graph learning algorithms.

  • AUROC Improvement: The average AUROC for homogeneous graphs was 0.8110, while for ATGraph it was 0.9085, an improvement of approximately 0.0975.
  • Maximum Improvement: The detection performance with ATGraph surpassed that of homogeneous graphs by up to 0.2 AUROC for certain methods (specifically, network embedding algorithms like SF and Graph2Vec).
  • Overall Outperformance: ATGraph showed superior performance in most graph learning algorithms tested.

Limitations and Future Work

  • Graph Size Trade-off: ATGraph construction leads to a larger number of nodes and edges compared to homogeneous transaction graphs, potentially increasing computation time for graph learning.
  • Account Type Simplification: The current ATGraph model does not differentiate between Ethereum's two main account types: contract accounts and externally owned accounts.
  • Future Directions: The authors suggest designing novel graph learning models specifically tailored for ATGraph, considering various node/edge types to further represent network heterogeneity, and exploring more effective ways to handle the increased graph size.

Summary updated

BibTeX
@misc{kim2023graph,
  author = {Jaehyeon Kim and Sejong Lee and Yushin Kim and Seyoung Ahn and Sunghyun Cho},
  title = {{Graph Learning-Based Blockchain Phishing Account Detection with a Heterogeneous Transaction Graph}},
  year = {2023},
  doi = {10.3390/s23010463},
}
Figure