An AI-Enabled Intrusion Detection Framework for Secure Internet of Things Networks
Keywords:
Internet of Things security, intrusion detection, deep learning, CNN-BiLSTM, attention mechanism, anomaly detection, edge computing, adaptive mitigation, botnet detection, and network security.Abstract
The Internet of Things (IoT) is creating a cyber-attack surface that is much larger than what traditional intrusion detection systems (IDS) are intended to protect. In this environment, signature-based and enterprise-grade detection tools are not effective against botnets such as Mirai, which are attacking large numbers of resource-constrained IoT endpoints and using a variety of communication protocols. This paper suggests an Artificial Intelligence–Aided Intrusion Detection Framework (AIDF), which integrates a distributed, protocol-aware traffic acquisition pipeline, a hybrid Convolutional Neural Network–Bidirectional Long Short-Term Memory–Attention (CNN-BiLSTM-Attention) detection engine, and a software-defined mitigation layer, followed by an ongoing retraining feedback loop. The framework is tested on a composite benchmark of 1,048,000 network flow events that were labeled by a combination of three publicly available IoT traffic data sets, representing nine device categories and 11 traffic classes, such as DDoS, DoS, reconnaissance, Mirai-family botnets, spoofing, and brute-force attacks. AIDF results in 98.6% accuracy, a 0.980 F1-score, and a 1.4% false positive rate, which are significantly better than the best single-model baseline (CNN-only) by 4.0%, 5.4%, and 3.7%, respectively. The ablation experiments isolate the contribution of each architectural part and demonstrate that the two most important features of the protocol and continuous retraining, respectively, are the key drivers of detection quality, with their contribution to detection quality being higher than that of the choice of neural architecture alone. When deployed to the edge, the framework's inference latency is still in the sub-50-millisecond range-within the budget of real-time mitigation at the constrained IoT gateways. These results have confirmed AIDF as an empirical, deployable model for protecting a diverse IoT network for a constantly changing threat surface.
References
[1] Sicari, S., Rizzardi, A., Grieco, L. A., & Coen-Porisini, A. (2015). Security, privacy and trust in Internet of Things: The road ahead. Computer Networks, 76, 146–164. https://doi.org/10.1016/j.comnet.2014.11.008
[2] Frustaci, M., Pace, P., Aloi, G., & Fortino, G. (2018). Evaluating Critical Security Issues of the IoT World: Present and Future Challenges. IEEE Internet of Things Journal, 5(4), 2483–2495. https://doi.org/10.1109/jiot.2017.2767291
[3] Enck, W., & Benzel, T. (2019). Selected Papers From the 2018 USENIX Security Symposium. IEEE Security &Amp; Privacy, 17(4), 7–8. https://doi.org/10.1109/msec.2019.2915397
[4] Kolias, C., Kambourakis, G., Stavrou, A., & Voas, J. (2017). DDoS in the IoT: Mirai and Other Botnets. Computer, 50(7), 80–84. https://doi.org/10.1109/mc.2017.201
[5] Moustafa, N., & Slay, J. (2016). The evaluation of Network Anomaly Detection Systems: Statistical analysis of the UNSW-NB15 data set and the comparison with the KDD99 data set. Information Security Journal: A Global Perspective, 25(1-3), 18–31. https://doi.org/10.1080/19393555.2015.1125974
[6] Doshi, R., Apthorpe, N., & Feamster, N. (2018). Machine Learning DDoS Detection for Consumer Internet of Things Devices. 2018 IEEE Security and Privacy Workshops (SPW), 29–35. https://doi.org/10.1109/spw.2018.00013
[7] Hasan, T., Hossain, A., Ansari, M., & Syed, T. (2025). Enhanced Intrusion Detection in IIoT Networks: A Lightweight Approach with Autoencoder-Based Feature Learning. Proceedings of the 10th International Conference on Internet of Things, Big Data and Security, 207–214. https://doi.org/10.5220/0013203700003944
[8] Giri, R., Salama, A., Saatchi, R., & Bagheri, M. (2026). Performance and Structural Symmetry Evaluation of Machine Learning-Driven Intrusion Detection Systems in Software-Defined Networks. Symmetry, 18(9), 1433. https://doi.org/10.3390/sym18091433
[9] Hasan, M., Islam, Md. M., Zarif, M. I. I., & Hashem, M. M. A. (2019). Attack and anomaly detection in IoT sensors in IoT sites using machine learning approaches. Internet of Things, 7, 100059. https://doi.org/10.1016/j.iot.2019.100059
[10] Pektaş, A., & Acarman, T. (2018). A deep learning method to detect network intrusion through flow‐based features. International Journal of Network Management, 29(3). Portico. https://doi.org/10.1002/nem.2050
[11] Vinayakumar, R., Soman, K. P., & Poornachandran, P. (2017). Applying deep learning approaches for network traffic prediction. 2017 International Conference on Advances in Computing, Communications and Informatics (ICACCI), 2353–2358. https://doi.org/10.1109/icacci.2017.8126198
[12] Ferrag, M. A., Maglaras, L., Moschoyiannis, S., & Janicke, H. (2020). Deep learning for cyber security intrusion detection: Approaches, datasets, and comparative study. Journal of Information Security and Applications, 50, 102419. https://doi.org/10.1016/j.jisa.2019.102419
[13] Meidan, Y., Bohadana, M., Mathov, Y., Mirsky, Y., Shabtai, A., Breitenbacher, D., & Elovici, Y. (2018). N-BaIoT—Network-Based Detection of IoT Botnet Attacks Using Deep Autoencoders. IEEE Pervasive Computing, 17(3), 12–22. https://doi.org/10.1109/mprv.2018.03367731
[14] Ogab, M., Zaidi, S., Bourouis, A., & Calafate, C. T. (2025). Intrusion Detection Systems for the Internet of Drones Security Using Multi-Teacher Knowledge Distillation. IEEE Access, 13, 210134–210152. https://doi.org/10.1109/access.2025.3642632
[15] Mothukuri, V., Khare, P., Parizi, R. M., Pouriyeh, S., Dehghantanha, A., & Srivastava, G. (2022). Federated-Learning-Based Anomaly Detection for IoT Security Attacks. IEEE Internet of Things Journal, 9(4), 2545–2554. https://doi.org/10.1109/jiot.2021.3077803
[16] Bull, P., Austin, R., Popov, E., Sharma, M., & Watson, R. (2016). Flow Based Security for IoT Devices Using an SDN Gateway. 2016 IEEE 4th International Conference on Future Internet of Things and Cloud (FiCloud), 157–163. https://doi.org/10.1109/ficloud.2016.30
[17] Neto, E. C. P., Dadkhah, S., Ferreira, R., Zohourian, A., Lu, R., & Ghorbani, A. A. (2023). CICIoT2023: A Real-Time Dataset and Benchmark for Large-Scale Attacks in IoT Environment. Sensors, 23(13), 5941. https://doi.org/10.3390/s23135941
[18] Moustafa, N. (2021). A new distributed architecture for evaluating AI-based security systems at the edge: Network TON_IoT datasets. Sustainable Cities and Society, 72, 102994. https://doi.org/10.1016/j.scs.2021.102994
[19] Koroniotis, N., Moustafa, N., Sitnikova, E., & Turnbull, B. (2019). Towards the development of realistic botnet dataset in the Internet of Things for network forensic analytics: Bot-IoT dataset. Future Generation Computer Systems, 100, 779–796. https://doi.org/10.1016/j.future.2019.05.041
[20] Shafiq, M., Tian, Z., Bashir, A. K., Du, X., & Guizani, M. (2021). CorrAUC: A Malicious Bot-IoT Traffic Detection Method in IoT Network Using Machine-Learning Techniques. IEEE Internet of Things Journal, 8(5), 3242–3254. https://doi.org/10.1109/jiot.2020.3002255