arXiv:2610.26240cs.CROct 2026

Manuscript Offprint

arXiv:2610.26240

Q-MALDetect: Quantum Image-Based Malware Detection and Adversarial Robustness Analysis

Walid El Maouaki, Mohammad Izen, Nouhaila Innan, Alberto Marchisio, Muhammad Shafique

Walid El Maouaki†, Mohammad Izen†, Nouhaila Innan†§, Alberto Marchisio†§‡*, Muhammad Shafique†§

† eBrain Lab, Division of Engineering, New York University Abu Dhabi, PO Box 129188, Abu Dhabi, UAE

§ Center for Quantum and Topological Systems (CQTS), NYUAD Research Institute, NYUAD, Abu Dhabi, UAE

† SDU Microelectronics, Institute of Mechanical and Electrical Engineering, University of Southern Denmark, Odense, Denmark

Emails: {walid.el.maouaki, mi2527, nouhaila.innan, muhammad.shafique}@nyu.edu, chisio@sdu.dk

Abstract—Quantum machine-learning (QML) models are increasingly considered for security applications, yet their adversarial robustness in malware analysis remains insufficiently understood. This paper presents Q-MALDetect, a hybrid convolutional and variational-quantum detector for byte-image representations of x86-64 Executable and Linkable Format (ELF) binaries, and evaluates it under feature-space and a range of Grad-CAM-guided, executable-aware evasion attacks. The model achieves 97.2% training accuracy, but its robustness deteriorates as attack strength increases, with the strongest evaluated feature-space attack reaching a 78.7% attack success rate (ASR). Among executable-aware attacks, Grad-CAM-guided no-operation (NOP) insertion produces the highest conditional ASR of 32.9%. Dynamic adversarial training is the most effective evaluated defense, reducing feature-space ASR to as low as 5.0%, executable-aware ASR to 7.7%, and the sequential-attack ASR to 34.0%. In contrast, convolutional-autoencoder preprocessing increases executable-aware ASR to 39.7%, coinciding with a rise in Grad-CAM attribution mass within the mutable .text region from 35.2% to 45.7%. Ablation results reveal no monotonic relationship between qubit count and robustness, while the encoding interface modifies the learned attack surface without neutralizing the strongest attack. These findings demonstrate that the effectiveness of attacks and defenses depends strongly on the perturbation constraints and evaluation conditions. Reliable deployment of QML malware detectors therefore requires assessment against both feature-space and executable-aware attacks rather than reliance on clean accuracy or generic denoising alone.

Index Terms—Quantum machine learning, malware detection, ELF binaries, adversarial robustness, hybrid quantum-classical neural networks, adversarial training.

I. INTRODUCTION

Linux malware has become a critical security concern because servers, embedded platforms, and IoT devices commonly rely on Executable and Linkable Format (ELF) instances. Static malware detectors based on deep learning can process binaries quickly and can avoid the cost of dynamic sandbox execution. A widely adopted approach converts executable bytes into images and applies convolutional neural networks (CNNs), allowing models to learn discriminative byte-layout patterns without hand-crafted features [1]. However, CNNs are vulnerable to adversarial examples, i.e., small, carefully chosen perturbations can cause high-confidence misclassification [2], [3]. In malware detection, this threat is especially subtle because arbitrary feature-space perturbations may not correspond to a valid executable. Recent ELF-focused work, such as ADVeRL-ELF, has shifted toward problem-space attacks that maintain both executability and malicious behavior while evading detection [4].

Quantum machine learning (QML) offers a new design space for security analytics because parameterized quantum circuits can act as trainable feature maps with representations that differ from classical neural networks. Prior studies have investigated the robustness of quanvolutional and hybrid quantum-classical models [5]–[7]. Yet most QML robustness studies use canonical image data, while adversarial malware research focuses predominantly on classical models. Consequently, it remains unclear how a hybrid QML malware detector behaves when exposed to both unconstrained feature-space perturbations and executable-aware binary mutations.

This paper addresses that question through a vulnerability study of Q-MALDetect, a hybrid convolutional and variational-quantum ELF classifier built on established hybrid QML detector designs [8]–[10]; the contribution is a joint feature-space and executable-aware robustness evaluation of the complete pipeline. This study asks four questions: (i) whether the hybrid model fits the clean data to a high-recall operating point; (ii) which feature-space and executable-aware attacks are effective, and under what conditions; (iii) whether adversarial training and CAE preprocessing provide consistent protection; and (iv) how perturbation budget, qubit count, encoding interface, and simulated hardware noise affect the observed attack surface.

The main contributions are:

  • We formulate a critical-domain robustness evaluation for a hybrid quantum-classical ELF malware detector and separate clean classification, feature-space sensitivity, and executable-aware evasion.

• We benchmark a spectrum of attacks that combines FGSM, PGD, and an FGSM-initialized PGD variant with two Grad-CAM-guided NOP-insertion attacks. The latter attacks use attribution to align a constrained mutation budget with model-sensitive executable regions; one selects NOP actions randomly and one tests whether tabular Q-learning improves on it.

∗^{*}This work has been carried out while at NYUAD.

  • We compare two standard defenses, dynamic adversarial training and CAE preprocessing, and identify an asymmetric defense outcome: the CAE attenuates additive feature-space perturbations but can increase Grad-CAM-guided problem-space ASR by shifting attribution toward the mutable .text region.

• We evaluate adversarial training and ablations over perturbation budget, qubit count, and encoding strategy, showing that quantum-interface choices materially affect attack success.

References (35)