Query-Based and Unnoticeable Graph Injection Attack from Neighborhood Perspective

Chang Liu, Hai Huang, Xingquan Zuo

Graph Neural Networks (GNNs) have emerged as a dominant paradigm for learning on graph-structured data, yet their susceptibility to adversarial perturbations remains a significant concern. Among various attack vectors, Graph Injection Attacks (GIA) represent a particularly realistic threat, as they involve injecting new malicious nodes rather than modifying existing, often immutable, graph data. However, current GIA methods frequently rely on surrogate models or produce easily detectable "noisy" nodes that violate graph homophily. This paper introduces QUGIA (Query-based and Unnoticeable Graph Injection Attack), a novel black-box framework designed to overcome these limitations by leveraging a neighborhood perspective and Bayesian optimization.

The Challenges of Graph Injection Attacks

Existing GIA strategies primarily face two hurdles. First is the Surrogate Dependency. Most state-of-the-art attacks are white-box or transfer-based, requiring the training of a surrogate model to approximate the victim's gradients. If the surrogate's architecture or decision boundaries diverge from the victim's, the attack's effectiveness drops sharply. Second is the Homophily Trap. Real-world graphs often exhibit homophily, where connected nodes share similar features. Standard attacks often inject nodes with random or highly divergent features, creating "discordant" edges. Advanced defense mechanisms, such as GNNGuard, exploit this by calculating cosine similarity between neighbors and pruning edges that fall below a certain threshold, effectively neutralizing the attack.

Methodology: The QUGIA Framework

QUGIA addresses these challenges through a two-phase, surrogate-free approach that operates solely on the output labels of the victim model.

The QUGIA framework consists of two main phases: Edge Generation, which utilizes a neighborhood perspective to maintain homophily, and Node Generation, which employs a Bayesian evolutionary algorithm for feature optimization.

1. Edge Generation: The Neighborhood Perspective

Instead of directly connecting an injected node to a target victim node—which often creates a conspicuous outlier—QUGIA connects the injected node to the neighbors of the victim. This "neighborhood perspective" ensures that the malicious node is integrated into the local cluster structure. Because GNNs rely on message passing, the malicious influence is propagated naturally through the target's immediate environment. This strategy implicitly preserves the graph's homophily, making the injected node appear as a legitimate "friend of a friend" to structural defenders.

2. Node Generation: Bayesian Evolutionary Optimization

To craft effective node features without gradient information, QUGIA treats feature generation as a combinatorial optimization problem. It utilizes a Bayesian evolutionary algorithm where a Dirichlet distribution serves as a prior for feature importance. By querying the victim model and observing the change in output labels, the attacker learns which feature dimensions are most impactful. The algorithm balances "exploitation" (refining known effective features) and "exploration" (searching for new impactful dimensions), gradually evolving the injected node's features to maximize the degradation of the victim model's performance.

Experimental Evaluation

The researchers evaluated QUGIA across six diverse datasets, including citation networks (Cora, Citeseer, Pubmed), robustness benchmarks (GRB-Cora, GRB-Citeseer), and the large-scale OGB-arXiv dataset. The attack was tested against various GNN architectures, including standard models (GCN, GAT) and robust variants (RGAT, GNNGuard).

Key Results and Stealthiness

QUGIA demonstrated superior performance, outperforming state-of-the-art attackers like TDGIA and G2A2C by an average of 5%, with gains reaching up to 10% in specific undefended scenarios. Crucially, the attack proved highly effective against advanced defenders.

Comparison of cosine similarity distributions on the Cora dataset. QUGIA's distribution closely mirrors the clean graph, indicating high stealthiness compared to baseline attacks.

As shown in the homophily analysis, the cosine similarity distribution of graphs perturbed by QUGIA closely aligns with that of the original "clean" graphs. In contrast, traditional attacks often shift the distribution toward lower similarity values, making them easy targets for pruning-based defenders. QUGIA's ability to maintain this distribution while achieving high attack success rates highlights its effectiveness in bypassing current state-of-the-art defenses.

Conclusion

QUGIA represents a significant advancement in graph adversarial learning by demonstrating that effective attacks do not require surrogate models or conspicuous structural changes. By adopting a neighborhood perspective and a query-based Bayesian approach, QUGIA achieves a potent balance between maliciousness and unnoticeability. This work underscores the need for more sophisticated GNN defenses that go beyond simple homophily checks to protect against structurally aware injection attacks.

Summary updated

BibTeX
@inproceedings{liu2025query,
  author = {Chang Liu and Hai Huang and Xingquan Zuo},
  title = {{Query-Based and Unnoticeable Graph Injection Attack from Neighborhood Perspective}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/345},
}
Figure