Q-MALDetect: Quantum Image-Based Malware Detection and Adversarial Robustness Analysis
Walid El Maouaki, Mohammad Izen, Nouhaila Innan, Alberto Marchisio, Muhammad Shafique
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.
Create a lesson
Metadata
- Categories
- cs.CR, quant-ph
- Comments
- 8 pages, 10 figures, 1 table. Accepted at the 2026 IEEE 2nd International Conference on Quantum Artificial Intelligence (QAI 2026), Nottingham, UK
Related papers
Passing NPCR Without Diffusion: Exact Signatures, a Detection Benchmark and an Audit of Published Image Ciphers
Shared title terminologycs.CRMua'ad Alfarajat
Smoothing and Learning for Movement-Robust RSS-Based Spoofing Detection
Shared title terminologycs.CRUsama Mir
Benchmarking Classical and Quantum Machine Learning for Intrusion Detection Across Multiple Datasets
Shared title terminologycs.CRTaha M. Mahmoud, Naima Kaabouch
Exposing Vulnerability Monoculture Through Systemic Adversarial Robustness
Shared title terminologycs.CRLeo Elmecker-Plakolm, Lukasz Szpruch, Avishek Joey Bose et al.
Mal-AAEGAN: Adversarial Autoencoder with Double-Critic WGAN-GP for Malware Generation
Shared title terminologycs.CRNam Hoang Thanh, Trung Pham Duy, Lam Bui Thu
Signature Knowledge Shielding: Protecting Antivirus Detection Knowledge through Robust Embedding Matching
Shared title terminologycs.CRJieshuai Yang, Zhi Wang, Yan Jia et al.