Deteksi Serangan Mirai Pada IoT Menggunakan Recurrent Neural Network (RNN) dengan Optimasi Hyperparameter Berbasis Bayesian Optimization

Authors

  • Muhammad Ilham Mansis Universitas Dinamika Bangsa
  • Riza Pahlevi Universitas Dinamika Bangsa
  • Ronald Naibaho Universitas Dinamika Bangsa
  • Eko Arip Winanto Universitas Dinamika Bangsa

DOI:

https://doi.org/10.61132/prosemnasproit.v2i2.104

Keywords:

Bayesian Optimization, Deteksi Intrusi, Internet of Things, Mirai, Recurrent Neural Network

Abstract

The massive adoption of Internet of Things (IoT) devices is expanding the cyberattacks surface, particularly by the Mirai botnet, which exploits the dynamic characteristics of data traffic. This research proposes a Mirai detection approach based on a Recurrent Neural Network (RNN) optimized using Bayesian Optimization to improve prediction accuracy on sequential data. Unlike previous studies, this research utilizes the latest CIC IoT-DIAD 2024 dataset and applies probabilistic optimization to the hyperparameter space, including RNN units, dropout, and learning rate. The experiment was conducted on 201,021 valid data points, with dimensionality reduction using PCA as the optimal point to represent essential features without redundancy. The results show a significant increase in accuracy from 97.95% to 99.69%, accompanied by an 84% decrease in False Negatives, an 86% decrease in False Positives, and an AUC value of 0.9999. These findings confirm that integrating RNN and Bayesian Optimization not only improves numerical performance but also strengthens the reliability of the intrusion detection system for modern IoT ecosystems with controlled computational loads.

References

Ali, M. N., Imran, M., din, M. S. ud, & Kim, B.-S. (2023). Low Rate DDoS Detection Using Weighted Federated Learning in SDN Control Plane in IoT Network. Applied Sciences, 13(3), 1431. https://doi.org/10.3390/app13031431

Alsadhan, A. A., Al-Atawi, A. A., karamti, H., Jameel, A., Zada, I., & Nguyen, T. N. (2024). Malware Attacks Detection in IoT Using Recurrent Neural Network (RNN). Intelligent Automation & Soft Computing, 39(2), 135–155. https://doi.org/10.32604/iasc.2023.041130

Andika Surya, I. M., Cahyanto, T. A., & Muharom, L. A. (2025). Deep Learning dengan Teknik Early Stopping untuk Mendeteksi Malware pada Perangkat IoT. Jurnal Teknologi Informasi Dan Ilmu Komputer, 12(1), 21–30. https://doi.org/10.25126/jtiik.2025128267

Azarudeen, K., Ghulam, D., Rakesh, G., Sathaiah, B., & Vishal, R. (2024). Intrusion Detection System Using Machine Learning by RNN Method. E3S Web of Conferences, 491, 04012. https://doi.org/10.1051/e3sconf/202449104012

Azmi, A. F., & Voutama, A. (2024). Prediksi Churn Nasabah Bank Menggunakan Klasifikasi Random Forest Dan Decision Tree Dengan Evaluasi Confusion Matrix. Komputa : Jurnal Ilmiah Komputer Dan Informatika, 13(1), 111–119. https://doi.org/10.34010/komputa.v13i1.12639

Bikila, D. D., & Čapek, J. (2025). Machine Learning-Based Attack Detection for the Internet of Things. Future Generation Computer Systems, 166, 107630. https://doi.org/https://doi.org/10.1016/j.future.2024.107630

Borisenko, B. B., Erokhin, S. D., Fadeev, A. S., & Martishin, I. D. (2021). Intrusion Detection Using Multilayer Perceptron and Neural Networks with Long Short-Term Memory. 2021 Systems of Signal Synchronization, Generating and Processing in Telecommunications (SYNCHROINFO, 1–6. https://doi.org/10.1109/SYNCHROINFO51390.2021.9488416

BSSN. (2025). Laporan Hasil Monitoring Bulanan: Juli 2025. https://idsirtii.or.id/halaman/tentang/laporan-hasil-monitoring.html

Dahiya, P., & Bhattacharya, S. (2024). MiraiBotGuard: Federated Learning for Intelligent Defense Against Mirai Threats. 2024 2nd International Conference on Device Intelligence, Computing and Communication Technologies (DICCT), 1–6. https://doi.org/10.1109/DICCT61038.2024.10533028

Holubenko, V., Gaspar, D., Leal, R., & Silva, P. (2025). Autonomous intrusion detection for IoT: a decentralized and privacy preserving approach. International Journal of Information Security, 24(1), 7. https://doi.org/10.1007/s10207-024-00926-9

Isa, I. G. T., & Junedi, B. (2022). Hyperparameter Tuning Epoch dalam Meningkatkan Akurasi Data Latih dan Data Validasi pada Citra Pengendara. Prosiding Sains Nasional Dan Teknologi, 12(1), 231–237. https://doi.org/10.36499/psnst.v12i1.6697

Jin, H., Jeon, G., Aneka Choi, H. W., Jeon, S., & Seo, J. T. (2024). A threat modeling framework for IoT-Based botnet attacks. Heliyon, 10(20), e39192. https://doi.org/https://doi.org/10.1016/j.heliyon.2024.e39192

Kasongo, S. M. (2023). A deep learning technique for intrusion detection system using a Recurrent Neural Networks based framework. Computer Communications, 199, 113–125. https://doi.org/https://doi.org/10.1016/j.comcom.2022.12.010

Muhammad Dzaki Arkaan Nasir. (2024). Optimasi Model Bilstm Untuk Analisis Sentimen Ulasan Film Menggunakan Hyperparameter Tuning Random Search. Doctoral Dissertation, Universitas Islam Indonesia.

Palla, T. G., & Tayeb, S. (2021). Intelligent Mirai Malware Detection in IoT Devices. 2021 IEEE World AI IoT Congress (AIIoT), 0420–0426. https://doi.org/10.1109/AIIoT52608.2021.9454215

Rabbani, M., Gui, J., Nejati, F., Zhou, Z., Kaniyamattam, A., Mirani, M., Piya, G., Opushnyev, I., Lu, R., & Ghorbani, A. A. (2024). Device Identification and Anomaly Detection in IoT Environments. IEEE Internet of Things Journal, 12(10), 13625–13643. https://doi.org/10.1109/JIOT.2024.3522863

Rahman, R. A., Risma, P., Oktarina, Y., & Yudha, H. M. (2024). Prediksi Temperatur Lingkungan dengan Recurrent Neural Network Menggunakan Data Historis Iradiasi Matahari. Journal of Applied Smart Electrical Network and Systems, 5(1), 16–21. https://doi.org/10.52158/jasens.v5i1.862

Saravanan, V., Madiajagan, M., Rafee, S. M., Sanju, P., Rehman, T. B., & Pattanaik, B. (2023). IoT-based blockchain intrusion detection using optimized recurrent neural network. Multimedia Tools and Applications, 83(11), 31505–31526. https://doi.org/10.1007/s11042-023-16662-6

Shahira, F., Negara, B. S., Yanto, F., & Sanjaya, S. (2025). Optimasi Hyperparameter Deep Learning untuk Deteksi X-Ray Paru-Paru Menggunakan Bayesian Optimization. Journal of Information Engineering and Educational Technology, 9(1), 53–63. https://doi.org/10.26740/jieet.v9n1.p53-63

Sharma, H., Kumar, P., & Sharma, K. (2024). Recurrent Neural Network based Incremental model for Intrusion Detection System in IoT. Scalable Computing: Practice and Experience, 25(5), 3778–3795. https://doi.org/10.12694/scpe.v25i5.3004

Simamora, F. P., Purba, R., & Pasha, M. F. (2025). Optimisasi Hyperparameter BiLSTM Menggunakan Bayesian Optimization untuk Prediksi Harga Saham. Jambura Journal of Mathematics, 7(1), 8–13. https://doi.org/10.37905/jjom.v7i1.27166

Suwaryo, S. R. N., Nawangsih, I., & Rejeki, S. (2021). Deteksi Serangan Pada Intrusion Detection System (IDS) Untuk Klasifikasi Serangan Dengan Algoritma Naïve Bayes, C.45 Dan K-NN Dalam Meminimalisasi Resiko Terhadap Pengguna. Jurnal Sistem Informasi Universitas Suryadarma, 8(2), 171–180. https://doi.org/10.35968/jsi.v8i2.732

Vajrobol, V., Gupta, B. B., Gaurav, A., & Chuang, H.-M. (2024). Adversarial learning for Mirai botnet detection based on long short-term memory and XGBoost. International Journal of Cognitive Computing in Engineering, 5, 153–160. https://doi.org/https://doi.org/10.1016/j.ijcce.2024.02.004

Downloads

Published

2025-12-30

How to Cite

Muhammad Ilham Mansis, Riza Pahlevi, Ronald Naibaho, & Eko Arip Winanto. (2025). Deteksi Serangan Mirai Pada IoT Menggunakan Recurrent Neural Network (RNN) dengan Optimasi Hyperparameter Berbasis Bayesian Optimization. Prosiding Seminar Nasional Ilmu Teknik, 2(2), 812–821. https://doi.org/10.61132/prosemnasproit.v2i2.104