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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Visual Malware Classification via Binary-to-Image Deep Learning: A Reproducible Benchmark of Modern CNN Architectures

Fahad Burhan Ahmad, Jamal Ahmad Gill
Zenodo (CERN European Organization for Nuclear Research)
Advanced Malware Detection Techniques
preprint

Visual Malware Classification via Binary-to-Image Deep Learning: A Reproducible Benchmark of Modern CNN Architectures

Fahad Burhan Ahmad, Jamal Ahmad Gill
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
University of Portsmouth (GB)
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon