Leveraging Random Forest to Detect Botnet Attacks in IoT Environments

Authors

  • Hussien Alrakah
  • Yagoub Abbker Adam
  • Mohammed Abdalraheem
  • Phiros Mansur
  • Shaik Rizwan
  • Ibrahim Al-Shourbaji Mr.

DOI:

https://doi.org/10.22399/ijcesen.3717

Keywords:

Botnet, IoT, Detection, Machine learning, Cyber-security

Abstract

Because of their secrecy and capacity to manage vast networks of hacked devices, botnet assaults have grown into a more serious and severe threat to Internet of Things (IoT) devices. The identification of botnet attacks is extremely difficult due to their spread nature and covert activity. IoT devices usually operate with insufficient security safeguards and are vulnerable to these types of assaults.  In recent years, machine learning (ML) techniques have shown a lot of promise for identifying and stopping various kinds of cyberattacks.  This study accurately detects botnet attacks in Internet of Things environments using a Random Forest (RF)-based approach.  The RF model is evaluated on two publicly available datasets designed specifically for botnet discovery.  Experimental results show that RF outperforms several other popular models in terms of F1-score, recall, accuracy, and precision.  These outcomes show how resilient and effective the RF algorithm is as a practical and reliable method of enhancing IoT device security.

References

[1] Lampropoulos, G., Siakas, K., & Anastasiadis, T. (2018). Internet of Things (IoT) in industry: Contemporary application domains, innovative technologies and intelligent manufacturing. People, 6(7).

[2] Wójcicki, K., Biegańska, M., Paliwoda, B., & Górna, J. (2022). Internet of Things in industry: Research profiling, application, challenges and opportunities—A review. Energies, 15(5), 1806.

[3] Asghari, P., Rahmani, A. M., & Javadi, H. H. S. (2019). Internet of Things applications: A systematic review. Computer Networks, 148, 241–261.

[4] Gulati, K., Boddu, R. S. K., Kapila, D., Bangare, S. L., Chandnani, N., & Saravanan, G. (2022). A review paper on wireless sensor network techniques in Internet of Things (IoT). Materials Today: Proceedings, 51, 161–165.

[5] Kumar, R., Rani, S., & Awadh, M. A. (2022). Exploring the application sphere of the Internet of Things in Industry 4.0: A review, bibliometric and content analysis. Sensors, 22(11), 4276.

[6] Wazzan, M., Algazzawi, D., Bamasaq, O., Albeshri, A., & Cheng, L. (2021). Internet of Things botnet detection approaches: Analysis and recommendations for future research. Applied Sciences, 11(12), 5713.

[7] Pour, M. S., Mangino, A., Friday, K., Rathbun, M., Bou-Harb, E., Iqbal, F., ... & Erradi, A. (2019). Data-driven curation, learning and analysis for inferring evolving IoT botnets in the wild. In Proceedings of the 14th International Conference on Availability, Reliability and Security (pp. 1–10).

[8] Alqahtani, M., Mathkour, H., & Ben Ismail, M. M. (2020). IoT botnet attack detection based on optimized extreme gradient boosting and feature selection. Sensors, 20(21), 6336.

[9] Pavaiyarkarasi, R., Manimegalai, T., Satheeshkumar, S., Dhivya, K., & Ramkumar, G. (2022). A productive feature selection criterion for Bot-IoT recognition based on random forest algorithm. In 2022 IEEE 11th International Conference on Communication Systems and Network Technologies (CSNT) (pp. 539–545).

[10] Elsayed, N., ElSayed, Z., & Bayoumi, M. (2023). IoT botnet detection using an economic deep learning model. arXiv preprint arXiv:2302.02013.

[11] Nguyen, H. T., Ngo, Q. D., Nguyen, D. H., & Le, V. H. (2020). PSI-rooted subgraph: A novel feature for IoT botnet detection using classifier algorithms. ICT Express, 6(2), 128–138.

[12] Alani, M. M. (2022). BotStop: Packet-based efficient and explainable IoT botnet detection using machine learning. Computer Communications, 193, 53–62.

[13] Joshi, C., Ranjan, R. K., & Bharti, V. (2022). A fuzzy logic-based feature engineering approach for botnet detection using ANN. Journal of King Saud University–Computer and Information Sciences, 34(9), 6872–6882.

[14] Kalakoti, R., Nõmm, S., & Bahsi, H. (2022). In-depth feature selection for the statistical machine learning-based botnet detection in IoT networks. IEEE Access, 10, 94518–94535.

[15] Jeelani, F., Rai, D. S., Maithani, A., & Gupta, S. (2022). The detection of IoT botnet using machine learning on IoT-23 dataset. In 2022 2nd IEEE International Conference on Innovative Practices in Technology and Management (ICIPTM) (pp. 634–639).

[16] Soe, Y. N., Santosa, P. I., & Hartanto, R. (2019). DDoS attack detection based on simple ANN with SMOTE for IoT environment. In 2019 IEEE 4th International Conference on Informatics and Computing (ICIC) (pp. 1–5).

[17] Aamir, M., & Zaidi, S. M. A. (2019). DDoS attack detection with feature engineering and machine learning: The framework and performance evaluation. International Journal of Information Security, 18, 761–785.

[18] Bahşi, H., Nõmm, S., & La Torre, F. B. (2018). Dimensionality reduction for machine learning-based IoT botnet detection. In 2018 15th International Conference on Control, Automation, Robotics and Vision (ICARCV) (pp. 1857–1862).

[19] Dietz, C., Castro, R. L., Steinberger, J., Wilczak, C., Antzek, M., Sperotto, A., & Pras, A. (2018). IoT-botnet detection and isolation by access routers. In 2018 9th IEEE International Conference on the Network of the Future (NOF) (pp. 88–95).

[20] Schonlau, M., & Zou, R. Y. (2020). The random forest algorithm for statistical learning. The Stata Journal, 20(1), 3–29.

[21] Zhang, C., & Ma, Y. (Eds.). (2012). Ensemble machine learning: Methods and applications. Springer.

[22] Boulesteix, A. L., Janitza, S., Kruppa, J., & König, I. R. (2012). Overview of random forest methodology and practical guidance with emphasis on computational biology and bioinformatics. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 2(6), 493–507.

[23] 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.

[24] Abbasi, F., Naderan, M., & Alavi, S. E. (2021). Anomaly detection in Internet of Things using feature selection and classification based on logistic regression and artificial neural network on N-BaIoT dataset. In 2021 5th International Conference on Internet of Things and Applications (IoT) (pp. 1–7).

[25] 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. Preprints.org, 2023050443.

[26] Thereza, N., & Ramli, K. (2023). Development of intrusion detection models for IoT networks utilizing CICIoT2023 dataset. In 2023 3rd International Conference on Smart Cities, Automation & Intelligent Computing Systems (ICON-SONICS) (pp. 66–72).

[27] Arshad, A., Jabeen, M., Ubaid, S., Raza, A., Abualigah, L., Aldiabat, K., & Jia, H. (2023). A novel ensemble method for enhancing Internet of Things device security against botnet attacks. Decision Analytics Journal, 8, 100307.

[28] Saied, M., Guirguis, S., & Madbouly, M. (2023). A comparative analysis of using ensemble trees for botnet detection and classification in IoT. Scientific Reports, 13(1), 21632.

[29] Akash, N. S., Rouf, S., Jahan, S., Chowdhury, A., & Uddin, J. (2022). Botnet detection in IoT devices using random forest classifier with independent component analysis. Journal of Information and Communication Technology, 21(2), 201–232.

[30] Wang, Z., Chen, H., Yang, S., Luo, X., Li, D., & Wang, J. (2023). A lightweight intrusion detection method for IoT based on deep learning and dynamic quantization. PeerJ Computer Science, 9, e1569.

[31] Sakthipriya, N., Govindasamy, V., & Akila, V. (2023). A comparative analysis of various dimensionality reduction techniques on N-BaIoT dataset for IoT botnet detection. In 2023 2nd International Conference on Paradigm Shifts in Communications, Embedded Systems, Machine Learning and Signal Processing (PCEMS) (pp. 1–6).

Downloads

Published

2025-09-05

How to Cite

Hussien Alrakah, Yagoub Abbker Adam, Mohammed Abdalraheem, Phiros Mansur, Shaik Rizwan, & Ibrahim Al-Shourbaji. (2025). Leveraging Random Forest to Detect Botnet Attacks in IoT Environments. International Journal of Computational and Experimental Science and Engineering, 11(3). https://doi.org/10.22399/ijcesen.3717

Issue

Section

Research Article