Towards Effective, Stealthy, and Persistent Backdoor Attacks Targeting Graph Foundation Models

Jiayi Luo, Qingyun Sun, Lingjuan Lyu, Ziwei Zhang, Haonan Yuan, Xingcheng Fu, Jianxin Li

TL;DR

This paper introduces GFM-BA, a novel framework for launching stealthy and persistent backdoor attacks against Graph Foundation Models (GFMs). By developing three key modules, GFM-BA effectively bypasses the challenges of limited downstream task knowledge, domain variability, and fine-tuning erasure, posing a significant security threat to the widespread adoption of GFMs.

What Problem Does This Paper Address?

Graph Foundation Models (GFMs) are powerful tools that learn generalizable representations from diverse graph data, enabling their adaptation to various downstream tasks. This pre-training and adaptation paradigm has led to impressive performance gains. However, this also opens up a new attack surface: backdoor attacks. Unlike traditional Graph Neural Networks (GNNs), attacking GFMs is particularly challenging due to three main reasons:

  1. Effectiveness: Attackers often lack knowledge of the specific downstream task during the GFM's pre-training phase. This makes it difficult to ensure that a malicious trigger reliably causes the model to misclassify inputs into a desired target class.
  2. Stealthiness: GFMs are designed to generalize across different domains, meaning node features can vary significantly. Crafting triggers that remain inconspicuous and effective across these diverse domains is a major hurdle.
  3. Persistence: When users fine-tune a pre-trained GFM for their specific downstream task, the model's parameters are updated. This process can inadvertently erase the injected backdoor, rendering the attack ineffective.

The paper aims to address these challenges by proposing a method to inject backdoors into GFMs that are effective, stealthy, and persistent, even after downstream fine-tuning.

Methods

The proposed GFM-BA framework tackles the three core challenges with specialized modules:

  1. Label-Free Trigger Association Module (Effectiveness): To overcome the lack of downstream task knowledge, this module associates triggers with a set of prototype embeddings derived from the GFM's pre-training data. Instead of directly mapping triggers to specific labels, it maps them to these representative embeddings. During the attack phase, the attacker can then infer the desired target label by observing the model's behavior with different prototype embeddings, allowing for targeted misclassification without prior knowledge. This is achieved using Farthest Point Sampling (FPS) to select diverse prototype embeddings.
  2. Node-Adaptive Trigger Generator (Stealthiness): To ensure triggers are stealthy across different domains, this module dynamically generates node-specific triggers. Instead of using a universal trigger, it creates personalized triggers conditioned on the target node's features and the chosen target embedding. This adaptive approach helps maintain feature similarity between the trigger node and its neighbors, preserving graph homophily and reducing the likelihood of detection.
  3. Persistent Backdoor Anchoring Module (Persistence): To combat backdoor forgetting during downstream fine-tuning, this module anchors the backdoor to fine-tuning-insensitive parameters of the pre-trained GFM. The authors analyze parameter update magnitudes during fine-tuning and identify parameters that change minimally. By strategically embedding the backdoor logic within these stable parameter regions, the attack's effectiveness is preserved even after the model undergoes adaptation. This involves using graph mixup to simulate downstream variations and identifying sensitive parameters.

Datasets

The experiments were conducted on five widely used node-level classification datasets:

  • Citation Networks: Cora, CiteSeer, PubMed
  • Amazon Co-purchase Datasets: Computers, Photos

These datasets are standard benchmarks for evaluating Graph Foundation Models. The paper does not introduce new datasets but uses existing ones for comprehensive evaluation.

Key Insights and Ideas

  • GFMs are vulnerable: The paper convincingly demonstrates that GFMs, despite their generalization capabilities, are susceptible to sophisticated backdoor attacks that traditional GNN defenses might miss.
  • Decoupling trigger from label: The "label-free trigger association" is a crucial innovation. By linking triggers to prototype embeddings rather than fixed labels, attackers gain flexibility and can infer target labels post-pre-training, a significant advantage over prior methods.
  • Personalized triggers are key to stealth: The node-adaptive trigger generator highlights that a one-size-fits-all trigger is easily detectable. Dynamically generating triggers based on local graph context is essential for stealth.
  • Anchoring to stable parameters: The insight that not all model parameters are equally affected by fine-tuning is critical for persistence. Targeting these "insensitive" parameters ensures the backdoor survives downstream adaptation.
  • GFM-BA is a comprehensive attack: The paper doesn't just address one challenge but provides a holistic solution that simultaneously targets effectiveness, stealthiness, and persistence, making it a potent threat.

Key Results

GFM-BA demonstrated strong performance across various victim GFMs (GCOPE, MDGPT, SAMGPT) and datasets:

  • Effectiveness: GFM-BA consistently achieved the highest Attack Success Rate (ASR), particularly in the target-controlled scenario, showing improvements of 66.67% to 90.80% over baselines.
  • Stealthiness: The model maintained high accuracy on clean, non-triggered inputs. Even after edge-based purification (a defense mechanism), GFM-BA achieved significantly higher ASRs than baselines, outperforming them by an average of 36.81% on GCOPE, 19.98% on MDGPT, and 36.73% on SAMGPT.
  • Persistence: Unlike baseline methods that showed a performance drop after fine-tuning, GFM-BA maintained a high ASR, indicating its backdoor logic was deeply embedded and resistant to forgetting. For instance, on the Cora dataset, GFM-BA showed only a 1.34% drop in ASR after fine-tuning, while baselines dropped significantly.

Limitations and Future Work

  • Focus on static graphs: The authors acknowledge that their current work focuses on static graphs. Future research could explore the application of these attacks to dynamic, temporal, and heterogeneous graph structures.
  • Raising awareness: The paper aims to highlight the security risks associated with GFMs and promote research into robust and trustworthy graph learning techniques. The authors hope their work will contribute to the development of more secure GFMs and their responsible deployment.

Summary updated

BibTeX
@misc{luo2025towards,
  author = {Jiayi Luo and Qingyun Sun and Lingjuan Lyu and Ziwei Zhang and Haonan Yuan and Xingcheng Fu and Jianxin Li},
  title = {{Towards Effective, Stealthy, and Persistent Backdoor Attacks Targeting Graph Foundation Models}},
  year = {2025},
  eprint = {2511.17982},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.17982},
}
Figure