DDoS Detection Using a Hybrid CNN–RNN Model Enhanced with Multi-Head Attention for Cloud Infrastructure
Source abstract
Abstract
Cloud infrastructure supports modern services across different sectors, such as business, education, lifestyle, government and so on. With the high demand for cloud computing, the security of network communication is also an important consideration. Distributed denial-of-service (DDoS) attacks pose a significant threat. Therefore, detection and mitigation are critically important for reliable operation of cloud-based systems. Intrusion detection systems (IDS) play a vital role in detecting and preventing attacks to avoid damage to reliability. This article presents DDoS detection using a convolutional neural network (CNN) and recurrent neural network (RNN) model enhancement with a multi-head attention mechanism for cloud infrastructure protection enhances the contextual relevance and accuracy of the DDoS detection. Preprocessing techniques were applied to optimize model performance, such as information gained to identify important features, normalization, and synthetic minority oversampling technique (SMOTE) to address class imbalance issues. The results were evaluated using confusion metrics. Based on the performance indicators, our proposed method achieves an accuracy of 97.78%, precision of 98.66%, recall of 94.53%, and F1-score of 96.49%. The hybrid model with multi-head attention achieved the best results among the other deep learning models. The model parameter size was moderately lightweight at 413,057 parameters with an inference time in a cloud environment of less than 6 milliseconds, making it suitable for application to cloud infrastructure.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Network Security and Intrusion Detection · Smart Grid Security and Resilience · Advanced Technologies in Various Fields
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Robotics and AI, School of Engineering, King Mongkut’s Institute of Technology Ladkrabang, Bangkok 10520, Thailand
Department of IoT and Information Engineering, School of Engineering, King Mongkut’s Institute of Technology Ladkrabang, Bangkok 10520, Thailand
References (40)
Show source-provided references
1. StormWall (2025, August 20). DDoS Attack Report 2024. StormWall Blog. Available online: https://stormwall.network/resources/blog/ddos-attack-statistics-2024.
2. Sharafaldin, I., Lashkari, A.H., Hakak, S., and Ghorbani, A.A. (2019, January 1–3). Developing Realistic Distributed Denial of Service (DDoS) Attack Dataset and Taxonomy. Proceedings of the International Carnahan Conference on Security Technology (ICCST), Chennai, India.10.1109/CCST.2019.8888419 ↗
3. Shafi, M., Lashkari, A.H., Rodriguez, V., and Nevo, R. (2024). Toward Generating a New Cloud-Based Distributed Denial of Service (DDoS) Dataset and Cloud Intrusion Traffic Characterization. Information, 15.10.3390/info15040195 ↗
4. Improving Distributed Denial of Service Attack Detection Using Supervised Machine Learning10.1016/j.measen.2023.100911 ↗
5. Liu, C., and Zhong, S. (2024, January 13–14). DDoS Attack Detection Method Based on Machine Learning. Proceedings of the 15th International Conference on Software Engineering and Service Science, Changsha, China.10.1109/ICSESS62520.2024.10719386 ↗
6. Enhancing the Efficiency of Gaussian Naïve Bayes Machine Learning Classifier in the Detection of DDoS in Cloud Computing10.1109/ACCESS.2023.3328951 ↗
7. A Machine Learning-Based Classification and Prediction Technique for DDoS Attacks10.1109/ACCESS.2022.3152577 ↗
8. CNN-AttBiLSTM mechanism: A DDoS attack detection method based on attention mechanism and CNN-BiLSTM10.1109/ACCESS.2023.3334916 ↗
9. DDoS attack detection using CNN-BiLSTM with attention mechanism10.1016/j.teler.2025.100211 ↗
10. Detection of DDoS attacks with feed forward based deep neural network model10.1016/j.eswa.2020.114520 ↗
11. Robust Network Intrusion Detection Scheme Using Long-Short Term Memory Based Convolutional Neural Networks10.1007/s11036-020-01623-2 ↗
12. A deep learning approach for proactive multi-cloud cooperative intrusion detection system10.1016/j.future.2019.03.043 ↗
13. Abdelaty, M., Hayward, S.S., Doriguzzi-Corin, R., and Siracusa, D. (2021, January 4–6). GADoT: GAN-based adversarial training for robust DDoS attack detection. Proceedings of the IEEE Conference on Communications and Network Security (CNS), Virtual.10.1109/CNS53000.2021.9705040 ↗
14. A Robust DDoS Intrusion Detection System Using Convolutional Neural Network10.1016/j.compeleceng.2024.109277 ↗
15. DCNNBiLSTM: An Efficient Hybrid Deep Learning-Based Intrusion Detection System10.1016/j.teler.2023.100053 ↗
16. Yaser, A.L., Mousa, H.M., and Hussein, M. (2022). Improved DDoS Detection Utilizing Deep Neural Networks and Feedforward Neural Networks as Autoencoder. Future Internet., 14.10.3390/fi14080240 ↗
17. A long short-term memory (LSTM)-based distributed denial of service (DDoS) detection and defense system design in public cloud network environment10.1016/j.cose.2022.102725 ↗
18. DDoS Attack Detection via Multi-scale Convolutional Neural Network
19. Hybrid Deep Learning Network Intrusion Detection System Based on Convolutional Neural Network and Bidirectional Long Short-Term Memory
20. Detection and mitigation of TCP based DDoS attacks in cloud environments using a self-attention and intersample attention transformer model10.1007/s11227-025-06940-5 ↗
21. A new DDoS attacks intrusion detection model based on deep learning for cybersecurity10.1016/j.cose.2022.102748 ↗
22. DDoSBERT: Fine-tuning variant text classification bidirectional encoder representations from transformers for DDoS detection10.1016/j.comnet.2025.111150 ↗
23. Distributed Denial of Service Attack Detection for the Internet of Things Using Hybrid Deep Learning Model10.1109/ACCESS.2023.3327620 ↗
24. CNN-BiLSTM: A Hybrid Deep Learning Approach for Network Intrusion Detection System in Software-Defined Networking with Hybrid Feature Selection10.1109/ACCESS.2023.3340142 ↗
25. Elubeyd, H., and Kaplan, D.Y. (2023). Hybrid Deep Learning Approach for Automatic DoS/DDoS Attacks Detection in Software-Defined Networks. Appl. Sci., 13.10.3390/app13063828 ↗
26. A generalized machine learning model for DDoS attacks detection using hybrid feature selection and hyperparameter tuning10.1016/j.comnet.2021.108498 ↗
27. Hybrid deep learning models with spotted hyena optimization for cloud computing enabled intrusion detection system
28. An Intrusion Detection Model Based on Feature Reduction and Convolutional Neural Networks10.1109/ACCESS.2019.2904620 ↗
29. Sogüt, E., and Erdem, O.A. (2023). Multi-Model Proposal for Classification and Detection of DDoS Attacks on SCADA Systems. Appl. Sci., 13.10.3390/app13105993 ↗
30. Entropy based earlier detection and mitigation of DDoS attack using stochastic method in SDN_IOT10.1016/j.measen.2025.101873 ↗
31. Near real-time security system applied to SDN environments in IoT networks using convolutional neural network10.1016/j.compeleceng.2020.106738 ↗
32. Intrusion detection approach for cloud and IoT environments using deep learning and Capuchin Search Algorithm10.1016/j.advengsoft.2022.103402 ↗
33. Normalization: A Preprocessing Stage10.17148/IARJSET.2015.2305 ↗
34. SMOTE: Synthetic Minority Over-sampling Technique10.1613/jair.953 ↗
35. O’Shea, K., and Nash, R. (2015). An Introduction to Convolutional Neural Networks. arXiv, Available online: https://arxiv.org/abs/1511.08458.
36. Long Short-Term Memory10.1162/neco.1997.9.8.1735 ↗
37. Cho, K., van Merrienboer, B., Bahdanau, D., and Bengio, Y. (2014). On the Properties of Neural Machine Translation: Encoder-Decoder Approaches. arXiv, Available online: https://arxiv.org/abs/1409.1259.10.3115/v1/W14-4012 ↗
38. Cordonnier, J.B., and Martin, A.L. (2021, January 4). Multi-Head Attention: Collaborate Instead of Concatenate. Proceedings of the International Conference on Learning Representations (ICLR), Vienna, Austria. Available online: https://arxiv.org/abs/2006.16362.
39. Mienye, I.D., and Swart, T.G. (2024). A Comprehensive Review of Deep Learning: Architectures, Recent Advances, and Applications, Information. Information, 15.10.3390/info15120755 ↗
40. Xie, Y., Wang, J., Li, H., Dong, A., Kang, Y., Zhu, J., Wang, Y., and Yang, Y. (2024). Deep Learning CNN-GRU Method for GNSS Deformation Monitoring Prediction. Appl. Sci., 14.10.3390/app14104004 ↗