Abstract
Graph Neural Networks (GNNs) are increasingly deployed in security-critical applications, yet their vulnerability to backdoor attacks remains under-explored. This paper investigates the first systematic study of subgraph-based backdoor attacks on GNNs for graph classification. By injecting a specific subgraph trigger into a small fraction of training data, an attacker can manipulate model predictions at test time while maintaining high accuracy on clean samples. We evaluate various trigger configurations and propose a certified defense based on randomized smoothing. Our results across real-world datasets like Bitcoin and Twitter demonstrate high attack success rates, highlighting a significant security gap in current GNN deployments.
Introduction
Graph Neural Networks (GNNs) have become the standard for analyzing complex relational data, such as detecting fraudulent Bitcoin transactions or identifying fake users on social media. As these models move into critical security pipelines, they become prime targets for malicious actors. While adversarial examples—perturbing data at test time—have been studied extensively, the concept of a backdoor attack has remained largely unexplored in the graph domain. In a backdoor attack, a model is corrupted during training to respond to a specific hidden trigger, behaving normally on clean data but failing predictably when the trigger is present.
Subgraph-Based Backdoor Attacks
The challenge with graphs is that, unlike images, they lack a fixed coordinate system. Graphs vary in size and topology, making it difficult to define a static "patch" as a trigger. This research introduces a subgraph-based backdoor attack specifically designed for GNNs.
Attack Methodology
The attack involves three primary steps:
- Trigger Selection: The attacker chooses a small subgraph pattern (the trigger).
- Poisoning: A small fraction of the training dataset is poisoned. For each poisoned graph, the attacker randomly selects a set of nodes and replaces their existing connections with the chosen trigger pattern, changing the label to a target class.
- Trigger Synthesis: Three generation methods were evaluated: Erdős-Rényi (ER) for random edges, Small World (SW) for high clustering, and Preferential Attachment (PA) for power-law distributions.
To counter these threats, the authors proposed a defense based on Randomized Subsampling. By creating multiple subsampled versions of a graph and using a majority vote for classification, the defense provides a "certified trigger size"—a mathematical guarantee that the prediction remains stable unless the trigger exceeds a specific size.
Experimental Evaluation
The study evaluated the attack on three real-world datasets:
- Bitcoin: Transaction graphs for detecting illicit flows.
- Twitter: Ego-networks classified as fake or genuine.
- COLLAB: A scientific collaboration multi-class benchmark.
Key Results and Insights
Empirical results demonstrate that GNNs are highly susceptible to these attacks. On the Twitter dataset, poisoning only 5% of the training data resulted in an Attack Success Rate (ASR) of 90% with a trigger size 30% of the average graph size, while clean data accuracy dropped by only 3%.
Several critical insights emerged from the data:
- Randomness and Stealth: Erdős-Rényi (ER) triggers were more effective than SW or PA triggers. Because ER patterns are distinct from natural graph structures, GNNs more easily identify them as a unique signal for the target label.
- Density Sensitivity: Attacks are least effective when the trigger's edge density matches the average density of the clean graphs, as the trigger becomes harder for the model to distinguish from background noise.
- Architecture Agnosticism: The vulnerability appears fundamental to GNN learning, as the attack was successful across various architectures, including GIN, SAGPool, and HGP-SL.
Conclusion and Future Work
While the proposed certified defense offers a baseline for protection, its effectiveness diminishes as trigger sizes increase. Furthermore, the computational overhead of randomized smoothing remains a challenge for real-time applications. Future research must focus on developing methods to detect backdoors in pre-trained models without original training data and designing GNN architectures that are inherently robust to structural poisoning. As GNNs continue to proliferate in sensitive domains, addressing these vulnerabilities is paramount.
Summary updated