Manuscript Offprint

arXiv:2610.40701

FGSM Attack Transferability from Simulation to Quantum Hardware in Network Intrusion Detection

Zeeshan Ajmal, Kimmo Halunen, Marc Maußner, Volker Reers, Arif Ali Khan

Zeeshan Ajmal¹, Kimmo Halunen¹, Marc Maußner², Volker Reers³, Arif Ali Khan¹

¹Faculty of Information Technology and Electrical Engineering (ITEE)

University of Oulu, Finland

{zeeshan.ajmal, kimmo.halunen, arif.khan}@oulu.fi

²infoteam Software AG, Germany

marc.maussner@infoteam.de

³Qseidon GmbH, Germany

volker.reers@qseidon.de

Abstract—Quantum computers are now available through cloud platforms, and recent work has proposed using them to detect network intrusions. It is not yet clear how easily such systems can be attacked. We train a hybrid variational quantum classifier (VQC) on the Friday DDoS subset of CICIDS2017 and test it against two attacks: label flipping during training and FGSM evasion at prediction time. We run the tests in simulation and on IBM hardware, the Fez superconducting processor (Heron r2). We find that two models with similar accuracy can differ greatly in how easily they are attacked. A model that decides with little confidence loses half its detections to a very small change in the input, while a model trained to decide with more confidence needs a much larger change before it fails. Attacks built in simulation against the more confident model also work on real hardware, and the device classifies every unaltered attack sample correctly. Simulated device noise does not reduce accuracy, but it does reduce the model's confidence and makes attacks easier, so accuracy alone does not show how exposed a model is. Label flipping has no measurable effect until 15% of attack labels are changed. These results show that device noise should not be treated as a defense and that reported weaknesses in these classifiers depend partly on how they were trained.

Index Terms—FGSM, Adversarial Transferability, Variational Quantum Classifiers, NISQ Hardware, Network Intrusion Detection

I. INTRODUCTION

In 1982, Feynman argued that classical computers cannot efficiently simulate quantum mechanical systems and that a quantum computer would be fundamentally more capable of such tasks [1]. That argument has since extended beyond physics simulation to machine learning and cybersecurity [2]. Quantum computers could accelerate machine learning by processing high-dimensional data in superposition, potentially discovering patterns that classical computers struggle with. In cybersecurity, quantum computers are being explored for network intrusion detection, anomaly detection, and cryptanalysis [3], [4]. Quantum computers are now accessible through cloud platforms and researchers have begun training quantum machine learning models on real security tasks.

Variational quantum classifiers (VQCs) are among the most practical quantum machine learning approaches for current hardware [5]. A VQC encodes classical data into quantum states, processes it through a trainable circuit, and produces a prediction via measurement. Current quantum computers operate in the noisy intermediate-scale quantum (NISQ) era [6], characterized by 50 to 1000 qubits with significant decoherence and gate errors.

Several studies have proposed VQC-based intrusion detection systems and reported accuracy comparable to classical methods on standard datasets [3], [4], [7]. However, classical machine learning systems are well known to be vulnerable to adversarial attacks at both training time and inference time [8], [9]. Whether these vulnerabilities carry over to hybrid VQC systems on real security data has not been studied.

This gap matters for two reasons. First, the security of a hybrid VQC depends on how much an attacker needs to know. An attacker with access to model gradients can target the decision boundary directly, while one limited to blind perturbation of the encoded inputs cannot. The size of that difference determines how much gradient secrecy is worth as a defense. It is also unclear how much the defender's own training choices affect this, since a classifier that decides close to its boundary is easier to push across it than one that does not. Second, prior adversarial studies on quantum classifiers have used simulators [10]–[12]. Prior work has documented discrepancies between simulated and real quantum processors in variational algorithm optimization [13], showing that simulator behavior can diverge significantly from real hardware. Whether attacks crafted in simulation remain effective on real quantum hardware is an open question with direct consequences for how these systems should be tested before deployment.

We train a VQC on the CICIDS2017 Friday DDoS subset [14], apply FGSM (Fast Gradient Sign Method, a gradient-guided attack) [8] evasion and label-flipping poisoning attacks, compare gradient-guided against untargeted perturbations and measure how the trained decision confidence affects vulnerability, and validate results on the IBM Fez processor. Three research questions guide the study:

  • RQ1: At what rate does label-flipping poisoning degrade a VQC-based intrusion detector?

  • RQ2: How much does gradient guidance increase evasion success over untargeted perturbation of the same inputs,

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. Accepted for publication at IEEE QAI 2026.

and how does the trained decision confidence affect this?

  • RQ3: Do adversarial examples crafted in simulation remain effective on real quantum hardware, and does simulated device noise change that exposure?

This paper contributes a simulation-to-hardware transfer measurement for an intrusion detection VQC, evidence that decision margin rather than accuracy predicts adversarial exposure, and a controlled comparison showing that simulated device noise raises attack success while leaving accuracy unchanged.

References (25)