Abstract
Node injection attack on Graph Neural Networks (GNNs) is an emerging and practical attack scenario that the attacker injects malicious nodes rather than modifying original nodes or edges to affect the performance of GNNs. However, existing node injection attacks ignore extremely limited scenarios, namely the injected nodes might be excessive such that they may be perceptible to the target GNN. In this paper, we focus on an extremely limited scenario of single node injection evasion attack, i.e., the attacker is only allowed to inject one single node during the test phase to hurt GNN's performance. The discreteness of network structure and the coupling effect between network structure and node features bring great challenges to this extremely limited scenario. We first propose an optimization-based method to explore the performance upper bound of single node injection evasion attack. Experimental results show that 100%, 98.60%, and 94.98% nodes on three public datasets are successfully attacked even when only injecting one node with one edge, confirming the feasibility of single node injection evasion attack. However, such an optimization-based method needs to be re-optimized for each attack, which is computationally unbearable. To solve the dilemma, we further propose a Generalizable Node Injection Attack model, namely G-NIA, to improve the attack efficiency while ensuring the attack performance. Experiments are conducted across three well-known GNNs. Our proposed G-NIA significantly outperforms state-of-the-art baselines and is 500 times faster than the optimization-based method when inferring.
Introduction
Graph Neural Networks (GNNs) are widely used for critical tasks such as social network analysis, recommendation systems, and fraud detection. However, they are notoriously vulnerable to adversarial attacks. Most existing attack methods involve modifying existing edges or node features, which is often unrealistic as attackers rarely have administrative access to a graph's underlying database.
A more practical approach is the node injection attack, where an attacker adds new, malicious nodes to the graph. To maximize stealth and minimize cost, this paper explores an "extremely limited scenario": can a GNN be compromised by injecting only a single node with a single edge? This represents the ultimate stealth attack—low cost, hard to detect, and requiring minimal authority over the graph structure.
Methodology
The researchers developed two distinct approaches to tackle this challenge:
OPTI: Optimization-based Approach
To find the theoretical upper bound of damage a single node can inflict, the authors developed OPTI. This method treats the malicious node's features and its single edge as variables in a massive optimization problem. To handle the discrete nature of graph edges, they utilized the Gumbel-Top-k trick to make the process differentiable for gradient descent.
G-NIA: Generalizable Node Injection Attack
While OPTI is effective, it is computationally expensive because it must be re-run for every target node. To address this, the authors proposed G-NIA, a trainable attack model. G-NIA learns a general strategy for generating malicious attributes and edges based on the target node's representation and class information. Once trained, G-NIA can generate an attack for a new, unseen node instantly.
A key innovation in G-NIA is joint modeling: it uses the malicious attributes it generates to guide the selection of the best edge, capturing the complex coupling between graph structure and node features.
Key Results and Insights
The authors evaluated their methods on three diverse benchmarks: Reddit (social network), ogbn-products (co-purchasing network), and Citeseer (citation network).
- The Power of One: A single node is often enough to "poison" the message-passing process of a GNN. On the Reddit dataset, OPTI achieved a 100% misclassification rate, while G-NIA reached 99.9%.
- Massive Speedup: G-NIA is approximately 500 times faster than OPTI during the inference phase, generating successful attacks in roughly 0.0025 seconds.
- Black-box Capability: Even when G-NIA does not know the exact architecture of the victim GNN, it still achieves over 90% success on continuous datasets by using a surrogate model.
- Stealthiness: Visualization techniques showed that the malicious nodes generated by G-NIA are statistically similar to original nodes, making them difficult to identify through simple outlier detection.
Conclusion and Future Work
This research demonstrates that GNNs are highly vulnerable to surgical, single-node injections. G-NIA proves that an adversarial model can learn the vulnerabilities of a GNN and apply that knowledge to attack unseen nodes with extreme efficiency.
Future work will focus on improving performance on discrete attribute graphs (like Citeseer) and investigating whether current GNN defense mechanisms, such as adversarial training, can withstand such targeted, low-budget attacks.
Summary updated