GRAPHTEXTACK: A Realistic Black-Box Node Injection Attack on LLM-Enhanced GNNs

Jiaji Ma, Puja Trivedi, Danai KoutraarXiv 2025 · DOI

Abstract

Modern graph learning increasingly relies on Text-Attributed Graphs (TAGs) processed by Large Language Model (LLM) enhanced Graph Neural Networks (GNNs). While powerful, these models introduce unique vulnerabilities. We present GRAPHTEXTACK, the first realistic, black-box node injection attack designed for this paradigm. By jointly optimizing graph structure and textual content via an evolutionary framework, GRAPHTEXTACK achieves superior disruption with high efficiency. Our evaluations across five benchmarks demonstrate that joint multi-modal attacks significantly outperform traditional uni-modal methods.

Introduction

The integration of LLMs with GNNs has set new standards for learning on Text-Attributed Graphs (TAGs), such as citation networks or e-commerce platforms. In these systems, LLMs extract semantic features from node text, while GNNs model structural relationships. However, this dual-modality architecture creates a complex attack surface. Most existing adversarial attacks are limited: they are often uni-modal (targeting only text or structure), assume white-box access to model weights, or require modifying existing data—actions often restricted in real-world deployments.

Comparison of GRAPHTEXTACK against existing adversarial attack methods across key operational dimensions.

We address these limitations by proposing a black-box node injection attack. This scenario mimics real-world threats where an adversary introduces new malicious nodes (e.g., bot accounts) to subvert system predictions without internal model knowledge.

Methodology: The GRAPHTEXTACK Framework

GRAPHTEXTACK utilizes an Evolutionary Optimization strategy to navigate the discrete and non-differentiable search space of node injection.

The framework simultaneously evolves the connectivity (edges) and semantic features (text) of injected nodes. To maintain stealthiness, text features are not random; they are generated via Class-Conditioned Sampling from the empirical distribution of target classes, ensuring malicious nodes blend in with legitimate data.

Multi-Objective Fitness Function

The evolutionary process is guided by a fitness function that balances two critical objectives:

  1. Local Prediction Shift: Maximizing the change in predicted labels for the injected node's immediate neighbors.
  2. Global Influence: Using PageRank to ensure the injected node is structurally positioned to maximize its impact across the graph.

Experimental Evaluation

We evaluated GRAPHTEXTACK on five TAG benchmarks: Cora, PubMed, WikiCS, ogbn-arxiv, and ogbn-products. The attack was compared against 12 baseline methods, including structural attacks (e.g., PRBCD) and textual attacks (e.g., BERT-Attack).

Key Results

As shown in the performance summary, GRAPHTEXTACK consistently achieves the highest accuracy degradation across all datasets and injection budgets. For example, on the Cora dataset, it reduced model accuracy from approximately 81% to 62% with only a 5% node injection budget.

Classification accuracy under various node injection budgets (r) across five benchmarks, comparing GRAPHTEXTACK (Ours) to 12 baselines.

Our findings highlight several key insights:

  • Synergistic Disruption: Jointly perturbing structure and text is mathematically and empirically more effective than the sum of independent uni-modal attacks. LLM-enhanced models exhibit resilience to single-modality attacks, often relying on the unaffected modality to maintain performance.
  • Efficiency: By directly querying the black-box model and avoiding gradient-heavy surrogate training, GRAPHTEXTACK remains computationally efficient even on large-scale graphs like ogbn-products. In runtime analysis, it significantly outperformed baselines like GANI and PSO.
  • Ablation Success: Removing components like crossover, mutation, or specific fitness objectives led to a noticeable drop in performance, validating the multi-objective design.

Conclusion

GRAPHTEXTACK exposes a critical vulnerability in state-of-the-art LLM-enhanced GNNs. By demonstrating that a realistic, black-box, multi-modal attack can significantly degrade performance, we underscore the need for more robust defense mechanisms. Future research should focus on joint adversarial training techniques that account for the synergistic nature of structural and textual perturbations in graph-based systems.

Summary updated

BibTeX
@misc{ma2025graphtextack,
  author = {Jiaji Ma and Puja Trivedi and Danai Koutra},
  title = {{GRAPHTEXTACK: A Realistic Black-Box Node Injection Attack on LLM-Enhanced GNNs}},
  year = {2025},
  eprint = {2511.12423},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.12423},
}
Figure