An Explainable Hybrid CNN–Transformer Architecture for Visual Malware Classification
Sensors · 24.07.2025 · 25 (15) · 4581
DOI: 10.3390/s25154581 ↗Kurz gefasst
Fachartikel in der Zeitschrift Sensors, online erschienen am 24.07.2025. Verfasst von Mohammed Alshomrani und 3 weiteren Autor:innen. Beteiligte Einrichtung: Department of Computer Science, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah 21589, Saudi Arabia. Die Arbeit wurde bisher 22-mal zitiert (Crossref) und nennt 55 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).
Abstract (Originalsprache)
Malware continues to develop, posing significant challenges for traditional signature-based detection systems. Visual malware classification, which transforms malware binaries into grayscale images, has emerged as a promising alternative for recognizing patterns in malicious code. This study presents a hybrid deep learning architecture that combines the local feature extraction capabilities of ConvNeXt-Tiny (a CNN-based model) with the global context modeling of the Swin Transformer. The proposed model is evaluated using three benchmark datasets—Malimg, MaleVis, VirusMNIST—encompassing 61 malware classes. Experimental results show that the hybrid model achieved a validation accuracy of 94.04%, outperforming both the ConvNeXt-Tiny-only model (92.45%) and the Swin Transformer-only model (90.44%). Additionally, we extended our validation dataset to two more datasets—Maldeb and Dumpware-10—to strengthen the empirical foundation of our work. The proposed hybrid model achieved competitive accuracy on both, with 98% on Maldeb and 97% on Dumpware-10. To enhance model interpretability, we employed Gradient-weighted Class Activation Mapping (Grad-CAM), which visualizes the learned representations and reveals the complementary nature of CNN and Transformer modules. The hybrid architecture, combined with explainable AI, offers an effective and interpretable approach for malware classification, facilitating better understanding and trust in automated detection systems. In addition, a real-time deployment scenario is demonstrated to validate the model’s practical applicability in dynamic environments.
Schlagwörter
Stichwörter der Autor:innen
Autor:innen und Institutionen
- Department of Computer Science, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah 21589, Saudi Arabia.
- Department of Information Systems, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah 21589, Saudi Arabia.
- Department of Information Technology, Faculty of Computing and Information Technology, King Abdulaziz University, Jeddah 21589, Saudi Arabia.
ORCID-Profile: Aiiad Albeshri, Abdulaziz A Alsulami, Badraddin Alturki
Zitieren
APA
Alshomrani, M., Albeshri, A., Alsulami, A. A., & Alturki, B. (2025). An Explainable Hybrid CNN–Transformer Architecture for Visual Malware Classification. Sensors, 25(15), 4581. https://doi.org/10.3390/s25154581
Vancouver
Alshomrani M, Albeshri A, Alsulami AA, Alturki B. An Explainable Hybrid CNN–Transformer Architecture for Visual Malware Classification. Sensors. 2025;25(15):4581. doi:10.3390/s25154581
BibTeX
@article{Alshomrani2025,
author = {Alshomrani, Mohammed and Albeshri, Aiiad and Alsulami, Abdulaziz A and Alturki, Badraddin},
title = {An Explainable Hybrid CNN–Transformer Architecture for Visual Malware Classification},
journal = {Sensors},
year = {2025},
volume = {25},
number = {15},
pages = {4581},
doi = {10.3390/s25154581}
}
EUVIMED