Self-supervised Graph Representation Learning for Black Market Account Detection

Zequan Xu, Lianyun Li, Hui Li, Qihang Sun, Shaofeng Hu, Rongrong Ji

Introduction: The Hidden Infrastructure of Cybercrime

In modern cybercrime ecosystems, a clear division of labor exists between those who execute scams and those who provide the necessary infrastructure. While "fraudsters" are the visible actors interacting with victims, they rely on a foundational layer of Black Market Accounts (BMAs). These accounts provide the essential "ammunition" for illicit activities, including bulk-registered accounts, stolen bank cards, virtual phone numbers, and IP proxies.

The ecosystem of Black Market Accounts (BMAs), Fraudsters, and Normal Users.

Detecting BMAs is significantly more challenging than identifying active fraudsters. BMAs typically do not interact directly with victims, meaning there are no user reports to flag them. Furthermore, their behavioral patterns—such as chatting or transactions—are often designed to camouflage perfectly with normal user activity. Finally, any detection system must operate at the scale of WeChat’s billion-user interaction graph while strictly respecting user privacy by avoiding content analysis.

Methodology: The SGRL Framework

To address these challenges, researchers from Xiamen University and Tencent developed SGRL (Self-supervised Graph Representation Learning). SGRL utilizes an inductive Graph Neural Network (GNN) called the IG-Encoder and splits the detection process into two distinct phases: a Pretraining Phase and a Detection Phase.

Pretraining via Pretext Tasks

Because labeled BMA data is scarce, SGRL employs three self-supervised pretext tasks to learn robust node representations:

  1. Structural Self-Supervision (SSS-Encoder): This task teaches the model to recognize a node based on its local neighborhood structure. It maximizes the mutual information between a node's representation and its surrounding subgraph.
  2. Supervised Structural Supervision (SS-Encoder): This task leverages the limited available BMA labels to contrast BMA neighborhoods against non-BMA neighborhoods, refining the model's ability to distinguish suspicious clusters.
  3. Attribute Supervision (SSA-Encoder): Using an XGBoost model, the system identifies user attributes (e.g., account age, device type) most correlated with fraud. The GNN is then forced to predict these "masked" attributes, learning the underlying relationships between user features and fraudulent behavior.

The final IG-Encoder_detect aggregates these representations to produce a suspiciousness score for every account in the graph.

Key Insights: Local Context and Decoupling

A major finding of the study is that local subgraphs are more informative than global graph summaries for BMA detection. BMA "gangs" often control clusters of accounts that exhibit specific structural patterns. Focusing on local neighborhoods is not only more accurate but also computationally efficient.

Furthermore, by decoupling the representation learning (pretraining) from the detection phase, the system can be trained on a manageable million-scale dataset and subsequently applied to the billion-scale live graph. This architecture allows the system to scale without the prohibitive cost of retraining on the entire global graph.

Experimental Results

SGRL was evaluated on both offline datasets and the live WeChat production environment.

Offline Performance

In offline tests involving a million-scale sample (4 million nodes, 13.4 million edges), SGRL significantly outperformed state-of-the-art models like GCN, GAT, and DCI. It achieved a 16.06% to 58.17% improvement in F1-score and KS statistics. Notably, SGRL demonstrated high label efficiency; its performance remained stable even when the number of available training labels was reduced by 80%.

Real-World Deployment

When deployed on the billion-scale WeChat interaction graph, SGRL achieved a Detection Success Rate (DSR) of 80.40%, representing a 7.27% improvement over the previous production baseline. The system successfully identified several hundred thousand unique BMAs that had previously evaded detection by human experts and traditional rule-based systems.

Conclusion and Future Work

SGRL demonstrates the power of self-supervised learning in high-stakes, large-scale industrial applications where labeled data is a bottleneck. While the current implementation treats all interactions as homogeneous to maintain speed, future work will explore incorporating heterogeneous edges and attention mechanisms to further enhance detection accuracy without compromising the system's lightweight deployment profile.

Summary updated

BibTeX
@inproceedings{xu2022self,
  author = {Zequan Xu and Lianyun Li and Hui Li and Qihang Sun and Shaofeng Hu and Rongrong Ji},
  title = {{Self-supervised Graph Representation Learning for Black Market Account Detection}},
  booktitle = {WSDM},
  year = {2022},
}
Figure