HeteroBA: A Structure-Manipulating Backdoor Attack on Heterogeneous Graphs

H. Gao, Xiang Li, Lan Zhao, Gaoxi XiaoarXiv 2025 · DOI

Abstract

Heterogeneous graph neural networks (HGNNs) have recently drawn increasing attention for modeling complex multi-relational data in domains such as recommendation, finance, and social networks. While existing research has been largely focused on enhancing HGNNs' predictive performance, their robustness and security, especially under backdoor attacks, remain underexplored. In this paper, we propose a novel Heterogeneous Backdoor Attack (HeteroBA) framework for node classification tasks on heterogeneous graphs. HeteroBA inserts carefully crafted trigger nodes with realistic features and targeted structural connections, leveraging attention-based and clustering-based strategies to select influential auxiliary nodes for effective trigger propagation, thereby causing the model to misclassify specific nodes into a target label while maintaining accuracy on clean data. Experimental results on three datasets and various HGNN architectures demonstrate that HeteroBA achieves high attack success rates with minimal impact on the clean accuracy. Our method sheds light on potential vulnerabilities in HGNNs and calls for more robust defenses against backdoor threats in multi-relational graph scenarios.

1. Introduction

Graph data is ubiquitous in modern digital infrastructure, powering everything from social networks and financial systems to academic citation indices. Unlike simple homogeneous graphs, heterogeneous graphs contain multiple types of nodes and edges (e.g., an academic graph with "author," "paper," and "institution" nodes). Heterogeneous Graph Neural Networks (HGNNs) are specifically designed to learn from this rich, multi-relational structure and are widely deployed for critical tasks like fraud detection and personalized recommendation.

However, while researchers have focused heavily on optimizing the predictive accuracy of HGNNs, their security vulnerabilities have been largely neglected. Specifically, these models are susceptible to backdoor attacks, where an adversary poisons the training data to ensure the model behaves normally on clean inputs but outputs a specific, malicious prediction when a hidden "trigger" is present. Existing graph backdoor attacks are primarily designed for homogeneous graphs; they often fail to account for the complex message-passing mechanisms of HGNNs or rely solely on feature manipulation, ignoring the graph's structural potential. This paper introduces HeteroBA, the first backdoor attack framework specifically engineered to exploit the unique structural properties of heterogeneous graphs.

2. Methodology: The HeteroBA Framework

HeteroBA (Heterogeneous Backdoor Attack) operates by injecting entirely new "trigger nodes" into the graph rather than merely altering existing features. This approach ensures the attack is both effective and stealthy. The framework is divided into two primary modules: the Feature Generator and the Edge Generator.

Overview of the HeteroBA framework, illustrating the generation of trigger nodes and edges to poison the graph before training the backdoor model.

2.1 Feature Generator (Stealth)

To ensure injected trigger nodes are indistinguishable from legitimate ones, HeteroBA learns the statistical distribution of existing nodes. It utilizes Kernel Density Estimation (KDE) to generate realistic continuous features and empirical probability (Bernoulli sampling) for binary features. This prevents the attack from being detected by simple statistical anomaly filters.

2.2 Edge Generator (Effectiveness)

The trigger node must be strategically connected to the target node and specific "auxiliary nodes" (second-hop neighbors) to propagate the malicious signal effectively. HeteroBA employs a surrogate model (SimpleHGN) and offers two distinct strategies for selecting these auxiliary nodes:

  • Attention-based Strategy (HeteroBA-A): This strategy hijacks the model's internal attention mechanism, selecting auxiliary nodes with the highest attention weights—those that exert the most influence over the target node's final representation.
  • Clustering-based Strategy (HeteroBA-C): This strategy uses node embeddings to identify structurally central, cohesive nodes via cosine similarity, ensuring the trigger integrates seamlessly into dense, influential clusters within the graph.

3. Experimental Evaluation

The authors evaluated HeteroBA on three standard real-world heterogeneous graph datasets: ACM (Papers, authors, subjects), IMDB (Movies, actors, directors), and DBLP (Authors, papers, terms, conferences). To quantify the attack's invisibility, the authors introduced a novel Stealthiness Score metric, which measures how well injected nodes blend in based on feature and structural similarity (using Wasserstein distance and degree differences).

4. Results and Discussion

HeteroBA consistently achieved near-perfect Attack Success Rates (ASR) across all datasets and model architectures (such as HAN and HGT). Notably, on the ACM dataset, the attention-based strategy achieved a 1.0000 ASR.

Attack Success Rate (ASR) performance of HeteroBA-A and HeteroBA-C strategies across different poison set ratios on ACM, DBLP, and IMDB datasets.

Key findings from the experimental results include:

  • Zero Collateral Damage: The Clean Accuracy Drop (CAD) was negligible, meaning the backdoored model maintained its performance on legitimate data, making the attack incredibly difficult to detect through standard validation.
  • Superior Stealth: HeteroBA significantly outperformed adapted homogeneous baselines (like UGBA) in stealthiness. On the ACM dataset, HeteroBA achieved a stealthiness score of 0.8603, compared to less than 0.23 for the baseline.
  • Critical Mass: The attack requires minimal poisoning. As shown in the results, once the poison rate exceeds a small threshold (1% to 5%), the ASR spikes dramatically, indicating a sudden collapse of model security.

5. Conclusion

HeteroBA demonstrates that the very mechanisms that make HGNNs powerful—such as multi-relational attention—can be weaponized by adversaries. By routing malicious signals through influential node types and high-attention neighbors, attackers can achieve high-impact backdoors with minimal data poisoning. This research serves as a critical call to action for the development of robust defense mechanisms, such as attention purifiers and structural anomaly detection, to secure multi-relational graph systems against emerging backdoor threats.

Summary updated

BibTeX
@misc{gao2025heteroba,
  author = {H. Gao and Xiang Li and Lan Zhao and Gaoxi Xiao},
  title = {{HeteroBA: A Structure-Manipulating Backdoor Attack on Heterogeneous Graphs}},
  year = {2025},
  eprint = {2505.21140},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.21140},
  howpublished = {arXiv},
}
Figure