[Paper Review] Malware Detection Using Frequency Domain-Based Image Visualization and Deep Learning
This paper proposes a novel malware detection approach that visualizes Windows executable binaries as grayscale images using the Discrete Cosine Transform (DCT) domain frequency counts of bi-grams (N=2) of bytes, then applies deep learning—specifically shallow and transfer learning-based CNNs like ResNet—for classification. The method achieves 96% binary classification accuracy on a new large-scale dataset, MaleX, and demonstrates strong generalization and robustness through ensemble feature fusion and error-driven joint metric design.
We propose a novel method to detect and visualize malware through image classification. The executable binaries are represented as grayscale images obtained from the count of N-grams (N=2) of bytes in the Discrete Cosine Transform (DCT) domain and a neural network is trained for malware detection. A shallow neural network is trained for classification, and its accuracy is compared with deep-network architectures such as ResNet that are trained using transfer learning. Neither dis-assembly nor behavioral analysis of malware is required for these methods. Motivated by the visual similarity of these images for different malware families, we compare our deep neural network models with standard image features like GIST descriptors to evaluate the performance. A joint feature measure is proposed to combine different features using error analysis to get an accurate ensemble model for improved classification performance. A new dataset called MaleX which contains around 1 million malware and benign Windows executable samples is created for large-scale malware detection and classification experiments. Experimental results are quite promising with 96% binary classification accuracy on MaleX. The proposed model is also able to generalize well on larger unseen malware samples and the results compare favorably with state-of-the-art static analysis-based malware detection algorithms.
Motivation & Objective
- To address the challenge of high-precision, low-computational malware detection without requiring disassembly or behavioral analysis.
- To explore whether frequency-domain representations of malware binaries can yield more discriminative visual patterns than spatial-domain byteplots for deep learning.
- To create a large-scale, balanced dataset (MaleX) to support data-driven malware detection and classification research.
- To develop a joint feature metric that combines DCT-based and byteplot image features to improve ensemble model performance.
- To evaluate the generalization capability of deep learning models on unseen, larger malware samples using transfer learning and fine-tuning strategies.
Proposed method
- Convert raw binary bytes of Windows executables into grayscale images by computing the frequency count of bi-grams (N=2) in the Discrete Cosine Transform (DCT) domain.
- Train a shallow 3C2D convolutional neural network (CNN) for binary malware classification using the DCT-based image representations.
- Apply transfer learning with pre-trained ResNet-18 and ResNet-50 architectures fine-tuned on the DCT-based images to improve classification accuracy.
- Extract global GIST descriptors from both byteplot and DCT-based images to compare with learned deep features.
- Design a joint feature metric using error analysis to optimally combine DCT-based and byteplot image features into an ensemble model.
- Use a large, balanced dataset (MaleX) with 864,669 malware and 179,725 benign samples for training, validation, and testing across all models.
Experimental results
Research questions
- RQ1Can frequency-domain representations of malware binaries, derived from DCT-transformed bi-gram counts, produce visually coherent and discriminative patterns suitable for deep learning-based classification?
- RQ2How does the performance of a shallow CNN trained on DCT-based images compare to transfer learning-based deep networks like ResNet on malware detection tasks?
- RQ3To what extent can combining features from DCT-based images and byteplot images improve classification accuracy through an ensemble model?
- RQ4How well does the proposed model generalize to larger, previously unseen malware samples, particularly in terms of AUC and accuracy on out-of-distribution test sets?
- RQ5What is the contribution of the proposed joint feature metric in improving the fusion of heterogeneous features (DCT vs. byteplot) for malware detection?
Key findings
- The proposed DCT-based image visualization method achieved a binary classification accuracy of 96% on the MaleX dataset, significantly outperforming traditional hand-crafted features.
- The shallow 3C2D CNN achieved 83.60% accuracy on the test set, demonstrating strong generalization despite a relatively small training set (161,752 malicious samples).
- Transfer learning with ResNet-50 achieved the highest test accuracy of 86.20%, indicating that deeper architectures benefit from hierarchical feature learning in malware image representations.
- The joint feature metric successfully combined DCT-based and byteplot image features, resulting in improved classification performance, as validated by error analysis and ensemble modeling.
- The ROC curve for the shallow CNN model showed an AUC of 0.9706 on the test set, indicating strong discriminative power and low false positive rates.
- The model outperformed standard classifiers (k-NN and Random Forest) using GIST features, confirming the superiority of deep features over hand-crafted ones in this context.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.