An explainable Polymorphic Malware Detection Framework with Transfer Learning in Encrypted Network

Authors

DOI:

https://doi.org/10.21015/vtse.v14i2.2406

Abstract

This study focuses on the security of encrypted network traffic where problem of detecting polymorphic malware is paramount especially when traditional signature-based and machine learning methods fail due to detect code obfuscation and encryption. To overcome this, we propose a novel, comprehensive deep learning framework that employs hybrid feature extraction technique by converting raw traffic (PCAP) into both 2D grayscale images and temporal sequences. The framework is designed to be robust thereby using a Generative Adversarial Network (GAN) during model training and augmenting minority-class malware data to combat imbalance. It also hybridizes pre-trained VGG16 and GoogleNet CNNs extract spatial features from images, while an LSTM subnetwork analyzes temporal behavioral patterns. Detection and prediction are fused for final classification. Enhanced with a GRAD-CAM heatmap for explainability and operator trust, the model provides visual justification for its detections. We evaluate the model on the CICMalDroid 2020 benchmark dataset. The proposed model’s evaluation performance achieves an accuracy of 95%, 98.42% recall, 92.12% precision, a 95.17% F1-score, and a false positive rate of 8.42%. Comparative analysis of the results against recent works revealed that it outperformed several related frameworks. This means the proposed hybrid approach is effective in handling emerging malware challenges.

References

[1] H. Galteland and K. Gjøsteen, “Malware, Encryption, and Rerandomization - Everything Is Under Attack,” Lecture Notes in Computer Science, pp. 233–251, 2017. DOI: https://doi.org/10.1007/978-3-319-61273-7_12

[2] F. A. Aboaoja, A. Ahmad, A. Zainal, Z. Abdullah, and A. Eleyan, “Malware detection issues, challenges, and future directions: A survey,” Applied Sciences, vol. 12, no. 17, p. 8482, 2022. DOI: https://doi.org/10.3390/app12178482

[3] A. Djenna, A. Bouridane, S. Rubab, and I. M. Marou, “Artificial intelligence-based malware detection, analysis and mitigation,” Symmetry, vol. 15, no. 3, p. 677, 2023. DOI: https://doi.org/10.3390/sym15030677

[4] E. Gandotra, D. Bansal, and S. Sofat, “Malware Analysis and Classification: A Survey,” Journal of Information Security, vol. 5, no. 2, pp. 56–64, 2014. DOI: https://doi.org/10.4236/jis.2014.52006

[5] N. Suraneni, “Malware Detection and Analysis,” Culminating Experience Projects, 2022.

[6] D. Desai, “2020: The State of Encrypted Attacks,” Zscaler, 2023.

[7] H. Sato et al., “Plain Source Code Obfuscation as an Effective Attack Method on IoT Malware Image Classification,” in Proc. IEEE 46th Annual Computers, Software, and Applications Conference, pp. 940–945, 2023. DOI: https://doi.org/10.1109/COMPSAC57700.2023.00125

[8] P. Wang et al., “A Survey of Techniques for Encrypted Traffic Classification in a Big Data Environment,” Human-centric Computing and Information Sciences, vol. 11, no. 1, pp. 1–25, 2021.

[9] N. S. Selamat and F. H. M. A., “Polymorphic Malware Detection Based on Supervised Machine Learning,” Journal of Positive School Psychology, vol. 6, no. 3, pp. 8538–8547, 2022.

[10] M. Ashawa et al., “Enhanced Image-Based Malware Classification Using Transformer-Based Convolutional Neural Networks (CNNs),” Electronics, vol. 13, no. 20, p. 4081, 2024. DOI: https://doi.org/10.3390/electronics13204081

[11] R. Gutierrez et al., “Application of Deep Learning Models for Real-Time Automatic Malware Detection,” IEEE Access, vol. 12, pp. 107742–107756, 2024. DOI: https://doi.org/10.1109/ACCESS.2024.3436588

[12] M. Altaiy, I. Yıldız, and B. U. Bahadır, “Malware detection using deep learning algorithms,” Aurum Journal of Engineering Systems Architecture, vol. 7, no. 1, pp. 11–26, 2023. DOI: https://doi.org/10.53600/ajesa.1321170

[13] A. M. Priyatno, Y. Ningsih, Y. A. Vandikac, and Muhammadong, “A Robust Hybrid Approach for Malware Detection: Leveraging CNN and LSTM for Encrypted Traffic Analysis,” Journal of Engineering and Science Application, vol. 1, no. 2, 2024. DOI: https://doi.org/10.69693/jesa.v1i2.10

[14] G. Gomez et al., “Unsupervised detection and clustering of malicious TLS flows,” Security and Communication Networks, vol. 2023, pp. 1–17, 2023. DOI: https://doi.org/10.1155/2023/3676692

[15] U. H. Tayyab et al., “Identification of Malicious PDFs Using Convolutional Neural Networks,” VFAST Transactions on Software Engineering, vol. 10, no. 3, pp. 51–57, 2022. DOI: https://doi.org/10.21015/vtse.v10i3.1114

[16] Canadian Institute for Cybersecurity, “CICMalDroid 2024 Dataset,” 2024.

[17] L. Chen et al., “Adversarial Robustness in Transformer-based Malware Detection,” IEEE Transactions on Information Forensics and Security, vol. 20, pp. 112–128, 2025.

[18] A. Kumar and P. Singh, “Explainable AI for Encrypted Traffic Classification: A Systematic Review,” ACM Computing Surveys, vol. 57, no. 4, pp. 1–36, 2025.

[19] Y. Zhang et al., “FedMal: Federated Learning for Polymorphic Malware Detection in IoT Networks,” ACM Transactions on Privacy and Security, vol. 29, no. 2, pp. 1–25, 2026.

[20] M. Rahman et al., “Lightweight CNN-LSTM Architecture for Real-time Android Malware Detection,” Journal of Network and Computer Applications, vol. 215, p. 103642, 2025.

[21] T. Okada and C. Martinez, “Zero-day Polymorphic Malware Detection using Contrastive Learning,” Computers & Security, vol. 112, p. 102456, 2026.

Downloads

Published

2026-06-20

How to Cite

Onu, O. P., Timothy, M., & Eke, C. I. (2026). An explainable Polymorphic Malware Detection Framework with Transfer Learning in Encrypted Network. VFAST Transactions on Software Engineering, 14(2), 263–280. https://doi.org/10.21015/vtse.v14i2.2406

Issue

Section

Articles