Visual Malware Classification via Binary-to-Image Deep Learning: A Reproducible Benchmark of Modern CNN Architectures
Malware continues to pose a critical threat to information systems due to rapid evolution, code obfuscation, and the proliferation of polymorphic and metamorphic variants that undermine traditional signature-based and heuristic detection techniques. While visual malware classification using Deep Learning (DL) has been explored, existing studies often rely on limited architectural comparisons, inconsistent experimental settings, or insufficient analysis of performance stability, statistical reliability, and deployment trade-offs. This study presents a rigorous, unified, and reproducible benchmarking framework for visual malware classification by transforming executable binaries into grayscale images and systematically evaluating multiple state-of-the-art Convolutional Neural Network (CNN) architectures. Specifically, EfficientNetB0, ResNet50, DenseNet169, InceptionResNetV2, VGG16, and XceptionNet are evaluated under identical pre-processing, training, and evaluation protocols using the Malimg Dataset for malware family classification, together with a complementary malware-versus-benign evaluation on the EMBER Dataset to assess real-world generalization. The experimental analysis incorporates comprehensive performance metrics, including Accuracy, Precision, Recall, F1-Score, and Area Under the Curve (AUC), along with learning-curve behaviour and cross-validation stability to evaluate classification effectiveness and robustness. Results show that DenseNet169 and EfficientNetB0 consistently outperform other architectures, achieving accuracies of up to 97 percent and 95 percent on Malimg, and AUC values approaching 0.99 on EMBER, with improved resistance to class imbalance and reduced performance volatility. Beyond accuracy comparisons, this study provides architecture-level insights into feature reuse, parameter efficiency, and generalization behaviour, highlighting trade-offs between model complexity, computational cost, and deployment feasibility. By offering a transparent and statistically grounded comparative evaluation within a single controlled pipeline, this work advances visual malware classification through methodological rigor and reproducibility. The findings provide practical guidance for selecting DL architectures in real-world malware detection systems and support future extensions involving ensemble learning, adversarial robustness evaluation, and the integration of dynamic behavioral features.
Authors
- Fahad Burhan Ahmad (ORCID: https://orcid.org/0000-0001-5269-0427)
- Jamal Ahmad Gill
Institutions
- University of Portsmouth (GB)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24560126
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- preprint