Node Injection for Class-specific Network Poisoning

Ansh Kumar Sharma, Rahul Kukreja, Mayank Kharbanda, Tanmoy Chakraborty · DOI

Abstract

Graph Neural Networks (GNNs) are increasingly utilized in critical domains such as fraud detection and recommendation systems, yet they remain vulnerable to adversarial manipulation. While previous research has focused on edge perturbations or global accuracy degradation, this paper introduces NICKI (Node Injection for Class-specific Network Poisoning). NICKI is a novel framework designed to misclassify an entire target class into a specific base class by injecting camouflaged fake nodes. By leveraging a generative approach for stealth and a differentiable selection process for optimization, NICKI demonstrates significant effectiveness in poisoning GNN training data while remaining indistinguishable from legitimate network structures.

1. Introduction

Graph Neural Networks (GNNs) have become the standard for analyzing structured data. However, their reliance on graph topology and node features creates a unique attack surface. Most existing adversarial research focuses on perturbation attacks, where an attacker modifies existing edges or features. In real-world scenarios, such as social networks or financial systems, attackers rarely possess the administrative privileges required to alter existing user profiles.

A more practical threat model is node injection, where an attacker creates new, malicious accounts. Current node injection methods typically aim for either "global" degradation (reducing overall model accuracy) or "target-specific" attacks (aiming at a single node). NICKI addresses a more strategic gap: class-specific network poisoning. In this scenario, an attacker seeks to systematically hide a specific category of behavior—such as fraud—by forcing the GNN to classify all "Fraudulent" nodes as "Legitimate."

2. The NICKI Framework

NICKI operates through a two-stage process designed to balance attack potency with topological stealth.

2.1 The Hiding Module (Pre-processing)

To prevent injected nodes from being flagged by anomaly detection algorithms, NICKI employs a "Hiding Module." This module ensures that fake nodes mimic the statistical properties of the target network's "base class" (the class the attacker wishes to impersonate).

  • Feature Generation: A Conditional Variational Autoencoder (CVAE) is used to generate realistic node features based on the distribution of the base class.
  • Structural Mimicry: For connectivity, the framework utilizes the Barabási–Albert model to sample node degrees that follow a natural power-law distribution, ensuring the injected nodes do not appear as suspicious outliers in the graph's degree distribution.

2.2 The Attack Framework

The core of NICKI is a bi-level optimization problem that determines the optimal connections for the injected nodes to maximize misclassification.

  • Inference Stage: A Graph Autoencoder (GAE) learns the latent representations of the graph, including the initial state of the injected nodes.
  • Generator Stage: Multi-Layer Perceptrons (MLPs) generate scores for potential edges and features.
  • Top-m Selector: Because edge selection is a discrete process, NICKI utilizes a differentiable "Relaxed Subset Sampling" technique (the Gumbel-Softmax trick). This allows the model to use gradient descent to identify which connections will most effectively pull target class nodes across the decision boundary into the base class.

3. Experimental Evaluation

The authors evaluated NICKI across four diverse benchmark datasets:

  • Cora & Citeseer: Standard citation networks with binary features.
  • PolBlogs: A featureless network of political blogs, testing the attack's structural effectiveness.
  • Reddit: A large-scale social media dataset with continuous features, testing scalability.

4. Key Results and Insights

4.1 Attack Effectiveness

NICKI significantly outperformed state-of-the-art baselines like AFGSM and NIPA. On the Cora dataset, the classification accuracy of the target class plummeted from 82% to approximately 40%, representing a 42% margin of success. This demonstrates that the attack can effectively "blind" a GNN to an entire category of nodes.

4.2 Stealth and Robustness

Topological analysis, including Gini coefficients and triangle counts, confirmed that the poisoned graphs were nearly indistinguishable from clean graphs. Furthermore, NICKI demonstrated high transferability; attacks optimized against a standard Graph Convolutional Network (GCN) remained effective when the defender utilized Graph Attention Networks (GAT) or GraphSAGE. Notably, NICKI bypassed specialized defenders like GNNGuard, as its camouflaged nodes were perceived as high-quality, legitimate connections rather than malicious noise.

4.3 The Role of Homophily

A critical insight of the study is NICKI's exploitation of GNN homophily. By making injected nodes appear similar to the base class, the attack leverages the GNN’s inherent tendency to group similar nodes together. The model effectively "learns" the wrong decision boundaries during the poisoning phase because the malicious data is structurally integrated into the training set.

5. Discussion and Limitations

While highly effective, NICKI reveals a fundamental stealth-power trade-off: increasing the camouflage of a node slightly reduces its raw ability to distort the decision boundary. Additionally, the attack assumes that injected nodes will eventually be labeled as the "base class" by human annotators or automated systems—a likely outcome given the camouflage, but one the attacker does not control directly.

6. Conclusion

NICKI represents a significant advancement in adversarial graph learning, moving beyond simple perturbations to strategic, class-wide poisoning. By combining generative modeling for stealth with differentiable optimization for edge selection, it highlights a critical vulnerability in how GNNs are trained and defended in real-world applications.

Summary updated

BibTeX
@article{sharma2023node,
  author = {Ansh Kumar Sharma and Rahul Kukreja and Mayank Kharbanda and Tanmoy Chakraborty},
  title = {{Node Injection for Class-specific Network Poisoning}},
  journal = {Neural Networks},
  year = {2023},
  doi = {10.1016/j.neunet.2023.07.025},
}
Figure