Graph neural network stealing attack works with limited queries

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

Cryptography and SecurityArtificial IntelligenceMachine Learning

Summary

Graph neural networks (GNNs) are often offered as online services, but attackers can try to copy these models by sending queries to them. Existing attacks usually assume easy access to detailed model information, which is unrealistic. The authors propose a new method called Dagger that works under strict limits, like only getting final answers and having few queries available. Dagger uses a two-step approach to learn structural relationships and balance the data it receives, resulting in a more accurate stolen model using fewer queries.

What this means in practice

  • For machine learning security teams: Test defenses by simulating realistic model stealing attacks that require few queries and minimal information from black-box GNN APIs.
  • For api service providers: Evaluate the risk of intellectual property theft from exclusive GNN models under strict query and output constraints using more practical attack scenarios.

Authors

Ying Song, Xiaowei Jia, Balaji Palanisamy

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$\times$ fewer queries than the strongest baseline.