A Hybrid Shallow CNN-LSTM Model for Enhanced Malware Classification

Authors

  • Sani Aliyu Department of Informatics, Kaduna State University, Nigeria
  • Ahmed Abubakar Aliyu Department of Secure Computing, Kaduna State University, Nigeria
  • Muhammad Aminu Ahmad Department of Secure Computing, Kaduna State University, Nigeria
  • Mohammed Ibrahim Department of Secure Computing, Kaduna State University, Nigeria
  • Saadatu Abdulkadir Department of Informatics, Kaduna State University, Nigeria
  • Abubakar Mu’azu Ahmed Department of Informatics, Kaduna State University, Nigeria

DOI:

https://doi.org/10.56892/bima.v9i1A.1259

Keywords:

Convolutional Neural Network, Cyber Security, Malware, Long-Short-Term Memory.

Abstract

The cybersecurity field faces significant challenges in detecting and classifying malware due to the continuous propagation of more complex and varied malware. Imbalanced datasets where benign samples outweigh malware samples, which create significant problems within this domain resulting in biased model performance. This study developed a hybrid shallow CNN with LSTM integration to overcome the problem of malware classification. This method combines CNN’s spatial feature extraction capabilities with LSTM’s sequential pattern recognition to analyze malware’s static and dynamic properties effectively. The methodology involved evaluating the model on a dataset with significant class imbalances through the adoption of SMOTE. The model evaluation relied on several key performance metrics, including accuracy, precision, recall, and the F1-score. The study also compared the developed model with existing models to demonstrate its superior performance The hybrid CNN-LSTM model proved effective by obtaining 99.44% accuracy for balanced datasets while sustaining 99.22% accuracy for imbalanced datasets. The results confirm that reducing class imbalance improves the accuracy of machine learning models for malware classification. The model demonstrated better performance than earlier research works, as shown through its higher accuracy rate. This research develops malware detection techniques and delivers a reliable solution for real-world cybersecurity applications.

 

 

Downloads

Published

2025-03-30

How to Cite

Aliyu, S. ., Abubakar Aliyu, A., Aminu Ahmad, M. ., Ibrahim, M. ., Abdulkadir, S., & Mu’azu Ahmed, A. . (2025). A Hybrid Shallow CNN-LSTM Model for Enhanced Malware Classification. BIMA JOURNAL OF SCIENCE AND TECHNOLOGY (2536-6041), 9(1A), 337-348. https://doi.org/10.56892/bima.v9i1A.1259