Manuscript Offprint

arXiv:2609.37972

Dagger: Decoupling-based Model Stealing Attack against Graph Neural Networks

Ying Song, Xiaowei Jia, Balaji Palanisamy

Ying Song

University of Pittsburgh

yis121@pitt.edu

Xiaowei Jia

Rutgers University

xiaowei.jia@rutgers.edu

Balaji Palanisamy

University of Pittsburgh

bpalan@pitt.edu

Abstract—As Graph Neural Networks (GNNs) are widely deployed as Machine Learning-as-a-Service (MLaaS) APIs, model stealing attacks have emerged as a critical security threat. By querying a victim model's black-box API, an adversary can construct a functionally equivalent surrogate model, compromising proprietary intellectual property and downstream security. Existing GNN stealing attacks, however, rely on overly permissive assumptions, such as soft-label outputs, large query budgets, full-graph query access, and prior knowledge of victim backbones that rarely hold in real-world deployments. In this work, we formalize a strictly constrained black-box, hard-label and backbone-agnostic threat model for GNN stealing attacks under a tight query budget. Given these realistic restrictions, we identify four fundamental challenges: sparse local structures and isolated nodes that degrade victim label quality, insufficient supervision signals, systematic imbalance with incomplete class coverage, and backbone mismatch. To address these interlocking barriers, we propose Dagger, a novel two-phase decoupling-based attack framework. Specifically, in Phase 1, Dagger pre-trains a surrogate using decoupled information propagation to preserve structural context over sparse local subgraphs while handling isolated nodes, combined with manifold-level node mixup to synthesize continuous supervision signals and smooth decision boundaries. In Phase 2, Dagger freezes the encoder and fine-tunes the classifier head via class-balanced sampling paired with logit adjustment to rectify severe query imbalance without requiring extra victim queries. Extensive experiments across four benchmark graphs and four GNN backbones demonstrate that Dagger consistently outperforms state-of-the-art GNN stealing attacks, achieving up to 18.16% higher fidelity while only utilizing 12.23×12.23 \times fewer queries than the strongest baseline. Furthermore, Dagger consistently bypasses state-of-the-art query-monitoring and backdoor-based watermarking defenses, underscoring the urgent need for defense paradigms tailored to such realistic GNN stealing threats.

Keywords—Graph Neural Network, Model Stealing Attack

I. INTRODUCTION

Graph Neural Networks (GNNs) have showcased remarkable performance across diverse real-world applications, ranging from drug discovery [2] and fraud detection [12] to recommendation systems [25]. Since training proprietary GNNs demands expensive data curation, computational resources and domain expertise, model providers increasingly commercialize their models via black-box Machine Learning-as-a-Service (MLaaS) APIs. However, their economic value renders GNNs attractive targets for model stealing attacks, where adversaries issue queries to extract functionally equivalent surrogate models, compromising proprietary intellectual property. Moreover, such stolen GNNs can serve as a springboard for subsequent adversarial attacks, such as backdoor injection and privacy inference attacks, thereby threatening broader system security.

Despite a growing body of work on model stealing attacks against GNNs [1], [5], [16], [18], [23], [24], [29], existing methods suffer from five critical limitations that severely hinder their practical applicability. (1) Over-reliance on rich information leakage: prior works assume APIs return full posterior probability or node embeddings [16], [18], [23], whereas model providers often restrict outputs to hard labels due to strict security and privacy policies in reality. (2) Topological over-privilege: current hard-label attacks still perform queries implicitly on the full graph or multi-hop neighborhoods beyond legitimate access [1], [5], [24], granting structural information that would be unavailable in a realistic black-box setting. (3) Large query budgets and detection risks: even data-free attacks that avoid using any real data still resort to synthetic data generation techniques, such as generative adversarial network (GAN)-based graph generation [29]. These approaches always incur high computational overhead, training instability, and statistically anomalous query patterns that can be readily detected by query-monitoring defenses [9]. (4) Victim backbone dependency: the vast majority of GNN stealing attacks heavily depend on specific victim architectures or assume prior knowledge of the target backbone, which rarely holds in real-world deployments. Under a true black-box setting, backbone misalignment may severely degrade surrogate performance due to divergent information propagation dynamics. (5) Evaluation inconsistency: while prior works claim to operate under restricted black-box threat models [23], [24], their open-source implementations implicitly grant the adversary access to the full graph during inference. This privilege inflates reported attack performance, suggesting that the practical severity of GNN stealing attacks under strict black-box constraints has been systematically underestimated and motivating a rigorous re-examination under a more faithful threat model.

To uncover the true vulnerabilities of GNNs under realistic MLaaS deployments, we formalize a strictly constrained black-box, hard-label, and backbone-agnostic threat model for GNN stealing attacks under a tight query budget. Specifically, each query is strictly executed on the local subgraph induced by the adversary's query node set, preventing access to the global topological context. Under this threat model, we identify four fundamental challenges that existing methods fail to address.

• Sparse local structures and isolated nodes: queries over induced subgraphs frequently collapse into sparse topologies or isolated nodes, particularly on sparse or small-scale graphs. Standard GNNs, which rely on multi-hop neighborhood aggregation, degrade significantly under such degenerative structures, producing unreliable victim predictions that corrupt the surrogate’s training signals.

• Insufficient supervision signals: Discrete hard labels discard inter-class confidence distributions, leaving the surrogate with insufficient supervision to learn smooth decision boundaries under a strict query budget. Unreliable victim predictions further propagate label noise into surrogate training, severely distorting the surrogate's decision boundaries across class margins.

• Systematic imbalance and incomplete class coverage: Structural dominance in sparse subgraphs yields systematic biases, where majority classes receive a disproportionate share of labels while the minority remain severely under-represented or even uncovered by victim predictions.

• Victim Backbone Mismatch: The misalignment between the unknown victim and surrogate backbones further amplifies the aforementioned issues.

To tackle these interlocking challenges, we propose a novel decoupling-based model stealing attack against graph neural networks (Dagger). This framework consists of two phases, namely Decoupling-based Surrogate Pre-training and Imbalance-aware Classifier Tuning. In the first phase, motivated by APPNP [4] to decouple feature transformation from graph propagation, we pretrain a topology-adaptive surrogate using a decoupled architecture to preserve structural context over sparse local subgraphs while maintaining meaningful representations for isolated nodes. To compensate for hard-label coarseness and incomplete class coverage, we perform manifold-level node mixup, which interpolates hidden representations across class boundaries. In the second phase, to rectify severe query-induced class imbalance, we freeze the surrogate encoder and only fine-tune the classifier head through class-balanced sampling paired with logit adjustment [14], providing complementary calibrations at both gradient and prediction levels to improve surrogate fidelity on minority classes without requiring extra victim queries.

We evaluate Dagger across four representative benchmark graph datasets and four victim GNN backbones, demonstrating both superior stealing effectiveness and query efficiency. Notably, with 12.23×12.23 \times fewer queries than the strongest baseline [24], Dagger still achieves up to 18.16% higher fidelity. With the same query budget, Dagger outperforms the rest baselines by up to 45.27% in fidelity, particularly on sparse and class-imbalanced graphs. Furthermore, we assess Dagger against two state-of-the-art defense paradigms: a query-monitoring detector [9] and a backdoor-based watermarking mechanism [26]. Since Dagger issues queries via real local subgraphs, its query patterns exhibit no distribution-level anomalies. Additionally, the strict yet realistic constraints prevent watermark triggers from being transferred to the surrogate. The experimental validation confirms that Dagger consistently bypasses both defenses, underscoring the urgent need for defense mechanisms tailored to realistic GNN stealing threats.

We summarize our contributions as follows:

• Realistic Threat Formalization: We systematically uncover five critical bottlenecks of existing stealing methods and formalize a strictly constrained black-box, hard-label, and backbone-agnostic threat model for GNN stealing attacks under a tight query budget.

• Novel Decoupled Framework: We propose Dagger, a two-phase decoupling-based attack framework that leverages decoupled information propagation to handle structural sparsity, applies manifold-level node mixup to enhance representation diversity and class coverage, and employs class-balanced sampling paired with logit adjustment to resolve severe query imbalance.

• Extensive Empirical Validation: We conduct comprehensive evaluations across diverse graph datasets, victim backbones, and defense mechanisms. The empirical results confirm Dagger’s superior effectiveness and efficiency, while demonstrating its resistance to both query-monitoring and watermarking defenses.

References (51)