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

Transferable Graph Backdoor Attack

Shuiqiao Yang, Bao Gia Doan, Paul Montague, Olivier Y. de Vel, Tamas Abraham, Seyit Camtepe, Damith C. Ranasinghe, Salil S. Kanhere · DOI

Abstract

Graph Neural Networks (GNNs) are increasingly used for critical relational data tasks, yet they remain vulnerable to adversarial manipulations. This paper introduces TRAP (Transferable GRAPh backdoor attack), a black-box method that compromises GNNs through sample-specific edge perturbations. By leveraging surrogate models and meta-gradients, TRAP generates triggers that are highly transferable across diverse GNN architectures, posing a significant threat to the security of graph-based machine learning pipelines.

Introduction

Graph Neural Networks (GNNs) have become the standard for analyzing complex relational data, with applications ranging from malware detection to molecular classification. However, like other deep learning architectures, GNNs are susceptible to "backdoor attacks." In these scenarios, a model is trained on poisoned data to behave normally on standard inputs but execute a malicious action—such as misclassification—when a specific "trigger" is present.

Prior GNN backdoor attacks suffer from two primary limitations:

  1. Rigidity: Many attacks rely on fixed subgraph "patches" as triggers, which are easily detectable by structural analysis.
  2. Knowledge Requirements: Most effective attacks are "white-box," requiring full access to the target model's parameters, which is unrealistic in many deployment scenarios.
Comparison of different graph backdoor trigger types, highlighting the shift from fixed subgraphs to structure perturbation.

TRAP addresses these gaps by introducing an adaptive, stealthy attack that requires zero knowledge of the victim's specific model architecture.

Methodology: The TRAP Framework

The core of the TRAP attack lies in its use of a surrogate model and meta-gradients to generate sample-specific triggers.

The Surrogate Strategy

Since the attacker lacks access to the target model, they train a "surrogate" GNN (typically a Graph Convolutional Network, or GCN). This surrogate serves as a proxy to identify structural changes—specifically adding or deleting edges—that most effectively alter the model's predictions.

Gradient-Based Perturbations

Rather than inserting a predefined subgraph, TRAP calculates a "gradient-based score matrix." This matrix identifies the specific edges within a graph that, if modified, would maximally influence the GNN's message-passing process. Because these gradients are unique to each individual graph, the resulting triggers are sample-specific, lacking a fixed pattern for defenders to identify.

The TRAP framework: using a surrogate GNN to generate gradient-based score matrices for dataset poisoning.

Poisoning and Training

The attacker injects a small percentage (e.g., 5%) of these perturbed graphs, labeled with a target malicious class, into the training set. When a victim trains their model on this poisoned dataset, the backdoor is unknowingly integrated into the final model.

Experimental Evaluation

The effectiveness of TRAP was evaluated across four diverse datasets: FRANKENSTEIN (molecular), Fingerprint (image-to-graph), PROTEINS (macromolecular), and WinMal (malware API call graphs).

Key Results

TRAP demonstrated superior performance compared to existing baselines like Subgraph Backdoor and GTA:

  • High Success Rates: On the FRANKENSTEIN dataset, TRAP achieved an Attack Success Rate (ASR) exceeding 95% on a GCN model.
  • Cross-Architecture Transferability: Triggers generated using a GCN surrogate successfully compromised GAT, GIN, and GraphSAGE models. This transferability stems from the shared "message-passing" fundamentals across most GNN architectures.
  • Minimal Impact on Utility: The Clean Accuracy Drop (CAD)—the reduction in performance on unpoisoned data—was typically less than 2%, ensuring the attack remains stealthy.

Discussion and Insights

The most significant insight from this research is the inherent transferability of graph backdoor triggers. If a perturbation disrupts information flow in a surrogate model, it is highly likely to do so in other GNNs. Furthermore, by avoiding fixed subgraphs, TRAP's triggers resemble natural noise, making them resistant to standard graph-cleansing techniques.

This research underscores a critical supply-chain risk: organizations utilizing third-party or public graph data are vulnerable to TRAP, even if their internal model architectures are proprietary and secure.

Conclusion

TRAP represents a significant advancement in graph backdoor attacks, emphasizing the need for new defense mechanisms. Future work should focus on developing robust detection methods capable of identifying non-patterned, gradient-based structural perturbations in graph data.

Summary updated

BibTeX
@inproceedings{yang2022transferable,
  author = {Shuiqiao Yang and Bao Gia Doan and Paul Montague and Olivier Y. de Vel and Tamas Abraham and Seyit Camtepe and Damith C. Ranasinghe and Salil S. Kanhere},
  title = {{Transferable Graph Backdoor Attack}},
  booktitle = {RAID},
  year = {2022},
  doi = {10.1145/3545948.3545976},
}
Figure