Beyond Accuracy: A Leakage-Controlled and Operationally Grounded Evaluation of Machine Learning for IoT Botnet Detection in Resource-Constrained Organisations

Authors

Thivyah A/P Vijayan

Faculty of Artificial Intelligence & Frontier Technologies, UNITAR International University, Petaling Jaya, Selangor (Malaysia)

Farhad Nadi

Faculty of Artificial Intelligence & Frontier Technologies, UNITAR International University, Petaling Jaya, Selangor (Malaysia)

Mohd Fahmi Bin Mohd Nordin

Faculty of Artificial Intelligence & Frontier Technologies, UNITAR International University, Petaling Jaya, Selangor (Malaysia)

Article Information

DOI: 10.47772/IJRISS.2026.101000400

Subject Category: Social science

Volume/Issue: 10/10 | Page No: 5665-5679

Publication Timeline

Submitted: 2026-10-21

Accepted: 2026-10-26

Published: 2026-11-03

Abstract

Internet of Things (IoT) devices are widely deployed in households, small and medium-sized enterprises (SMEs) and public bodies, many of which lack the specialist capacity to investigate intrusion alarms. Studies on benchmark datasets frequently report near-perfect detection accuracy, yet such figures may not reflect performance in practice. This study aimed to evaluate machine learning detectors for IoT botnet traffic under leakage controls and in terms of the alarm workload they would impose. Random Forest, Decision Tree and radial-basis Support Vector Machine classifiers were trained on the official UNSW-NB15 and Bot-IoT partitions after identifier and label-derived attributes had been removed, with features selected by Mutual Information, alarm thresholds chosen on a validation hold-out and duplicate-aware cross-validation. Performance was assessed with bootstrap confidence intervals, McNemar tests, permutation importance and a base-rate analysis of alarm precision. In UNSW-NB15, 38.6% of test flows duplicated a training flow on the selected features. When the excluded attributes were restored, the Decision Tree classified every test flow correctly on both datasets, confirming target leakage. Without leakage, Random Forest performed best on UNSW-NB15 (F1-score 0.902; area under the receiver operating characteristic curve 0.973) but misclassified 20.2% of benign flows. A validation-chosen threshold reduced this false-positive rate to 2.2% while still detecting 80.6% of attacks, falling to 57.7% for test flows absent from training on these features; at an attack prevalence of 1%, only about 27% of alarms would be genuine. Bot-IoT was nearly perfectly separable, but its 107 benign test flows allowed only an imprecise false-positive estimate (Random Forest: 4.7%; 95% confidence interval 2.0%–10.5%). These findings indicate that reported accuracy is a poor guide to the operational value of IoT intrusion detection. Evaluations and product claims should report false-positive rates and alarm precision at realistic prevalence, and such detectors are better suited to triage than to autonomous response.

Keywords

IoT botnet detection, machine learning, false alarms, data leakage, resource-constrained organisations

Downloads

References

1. Alaba, F. A., Othman, M., Hashem, I. A. T., & Alotaibi, F. (2017). Internet of Things security: A survey. Journal of Network and Computer Applications, 88, 10–28. [Google Scholar] [Crossref]

2. https://doi.org/10.1016/j.jnca.2017.04.002 [Google Scholar] [Crossref]

3. Alahmadi, B. A., Axon, L., & Martinovic, I. (2022). 99% false positives: A qualitative study of SOC analysts' perspectives on security alarms. In Proceedings of the 31st USENIX Security Symposium (pp. 2783–2800). USENIX Association. [Google Scholar] [Crossref]

4. https://www.usenix.org/conference/usenixsecurity22/presentation/alahmadi [Google Scholar] [Crossref]

5. Aljohani, R., Bushnag, A., & Alessa, A. (2024). AI-based intrusion detection for a secure Internet of Things (IoT). Journal of Network and Systems Management, 32(3), Article 56. [Google Scholar] [Crossref]

6. https://doi.org/10.1007/s10922-024-09829-5 [Google Scholar] [Crossref]

7. Antonakakis, M., April, T., Bailey, M., Bernhard, M., Bursztein, E., Cochran, J., Durumeric, Z., Halderman, J. A., Invernizzi, L., Kallitsis, M., Kumar, D., Lever, C., Ma, Z., Mason, J., Menscher, D., Seaman, C., Sullivan, N., Thomas, K., & Zhou, Y. (2017). Understanding the Mirai botnet. In Proceedings of the 26th USENIX Security Symposium (pp. 1093–1110). USENIX Association. https://www.usenix.org/conference/usenixsecurity17/technical-sessions/presentation/antonakakis [Google Scholar] [Crossref]

8. Apruzzese, G., Laskov, P., & Schneider, J. (2023). SoK: Pragmatic assessment of machine learning for network intrusion detection. In 2023 IEEE 8th European Symposium on Security and Privacy (EuroS&P) (pp. 592–614). IEEE. https://doi.org/10.1109/EuroSP57164.2023.00042 [Google Scholar] [Crossref]

9. Arp, D., Quiring, E., Pendlebury, F., Warnecke, A., Pierazzi, F., Wressnegger, C., Cavallaro, L., & Rieck, K. (2022). Dos and don'ts of machine learning in computer security. In Proceedings of the 31st USENIX Security Symposium (pp. 3971–3988). USENIX Association. [Google Scholar] [Crossref]

10. https://www.usenix.org/conference/usenixsecurity22/presentation/arp [Google Scholar] [Crossref]

11. Axelsson, S. (2000). The base-rate fallacy and the difficulty of intrusion detection. ACM Transactions on Information and System Security, 3(3), 186–205. https://doi.org/10.1145/357830.357849 [Google Scholar] [Crossref]

12. Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32. [Google Scholar] [Crossref]

13. https://doi.org/10.1023/A:1010933404324 [Google Scholar] [Crossref]

14. Chawla, N. V., Bowyer, K. W., Hall, L. O., & Kegelmeyer, W. P. (2002). SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 16, 321–357. [Google Scholar] [Crossref]

15. https://doi.org/10.1613/jair.953 [Google Scholar] [Crossref]

16. Dietterich, T. G. (1998). Approximate statistical tests for comparing supervised classification learning algorithms. Neural Computation, 10(7), 1895–1923. https://doi.org/10.1162/089976698300017197 [Google Scholar] [Crossref]

17. El-Sofany, H., El-Seoud, S. A., Karam, O. H., & Bouallegue, B. (2024). Using machine learning algorithms to enhance IoT system security. Scientific Reports, 14(1), Article 12077. [Google Scholar] [Crossref]

18. https://doi.org/10.1038/s41598-024-62861-y [Google Scholar] [Crossref]

19. Engelen, G., Rimmer, V., & Joosen, W. (2021). Troubleshooting an intrusion detection dataset: The CICIDS2017 case study. In 2021 IEEE Security and Privacy Workshops (SPW) (pp. 7–12). IEEE. [Google Scholar] [Crossref]

20. https://doi.org/10.1109/SPW53761.2021.00009 [Google Scholar] [Crossref]

21. Flood, R., Engelen, G., Aspinall, D., & Desmet, L. (2024). Bad design smells in benchmark NIDS datasets. In 2024 IEEE 9th European Symposium on Security and Privacy (EuroS&P) (pp. 658–675). IEEE. https://doi.org/10.1109/EuroSP60621.2024.00042 [Google Scholar] [Crossref]

22. Gelgi, M., Guan, Y., Arunachala, S., Samba Siva Rao, M., & Dragoni, N. (2024). Systematic literature review of IoT botnet DDOS attacks and evaluation of detection techniques. Sensors, 24(11), Article 3571. https://doi.org/10.3390/s24113571 [Google Scholar] [Crossref]

23. Hussain, F., Hussain, R., Hassan, S. A., & Hossain, E. (2020). Machine learning in IoT security: Current solutions and future challenges. IEEE Communications Surveys & Tutorials, 22(3), 1686–1721. [Google Scholar] [Crossref]

24. https://doi.org/10.1109/COMST.2020.2986444 [Google Scholar] [Crossref]

25. Kapoor, S., & Narayanan, A. (2023). Leakage and the reproducibility crisis in machine-learning-based science. Patterns, 4(9), Article 100804. https://doi.org/10.1016/j.patter.2023.100804 [Google Scholar] [Crossref]

26. Kaufman, S., Rosset, S., Perlich, C., & Stitelman, O. (2012). Leakage in data mining: Formulation, detection, and avoidance. ACM Transactions on Knowledge Discovery from Data, 6(4), 1–21. [Google Scholar] [Crossref]

27. https://doi.org/10.1145/2382577.2382579 [Google Scholar] [Crossref]

28. 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 [Google Scholar] [Crossref]

29. Layeghy, S., & Portmann, M. (2023). Explainable cross-domain evaluation of ML-based network intrusion detection systems. Computers and Electrical Engineering, 108, Article 108692. [Google Scholar] [Crossref]

30. https://doi.org/10.1016/j.compeleceng.2023.108692 [Google Scholar] [Crossref]

31. Lemaître, G., Nogueira, F., & Aridas, C. K. (2017). Imbalanced-learn: A Python toolbox to tackle the curse of imbalanced datasets in machine learning. Journal of Machine Learning Research, 18(17), 1–5. [Google Scholar] [Crossref]

32. https://jmlr.org/papers/v18/16-365.html [Google Scholar] [Crossref]

33. Liu, S., Fauzi, F., & Kok, V. J. (2025). A systematic literature review: Classifying IoT botnet data features based on its lifecycle. IEEE Access, 13, 65040–65065. [Google Scholar] [Crossref]

34. https://doi.org/10.1109/ACCESS.2025.3559635 [Google Scholar] [Crossref]

35. McNemar, Q. (1947). Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika, 12(2), 153–157. https://doi.org/10.1007/BF02295996 [Google Scholar] [Crossref]

36. Moustafa, N., & Slay, J. (2015). UNSW-NB15: A comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set). In 2015 Military Communications and Information Systems Conference (MilCIS) (pp. 1–6). IEEE. https://doi.org/10.1109/MilCIS.2015.7348942 [Google Scholar] [Crossref]

37. Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., & Duchesnay, É. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12, 2825–2830. https://jmlr.org/papers/v12/pedregosa11a.html [Google Scholar] [Crossref]

38. Pokhrel, S., Abbas, R., & Aryal, B. (2021). IoT security: Botnet detection in IoT using machine learning (arXiv:2104.02231). arXiv. https://doi.org/10.48550/arXiv.2104.02231 [Google Scholar] [Crossref]

39. Saito, T., & Rehmsmeier, M. (2015). The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. PLOS ONE, 10(3), Article e0118432. https://doi.org/10.1371/journal.pone.0118432 [Google Scholar] [Crossref]

40. Sarhan, M., Layeghy, S., & Portmann, M. (2022). Towards a standard feature set for network intrusion detection system datasets. Mobile Networks and Applications, 27(1), 357–370. [Google Scholar] [Crossref]

41. https://doi.org/10.1007/s11036-021-01843-0 [Google Scholar] [Crossref]

42. Sommer, R., & Paxson, V. (2010). Outside the closed world: On using machine learning for network intrusion detection. In 2010 IEEE Symposium on Security and Privacy (pp. 305–316). IEEE. [Google Scholar] [Crossref]

43. https://doi.org/10.1109/SP.2010.25 [Google Scholar] [Crossref]

44. Wakili, A. A., Guni, S., Khan, S. A., Yu, W., & Jung, W. (2025). Advancing machine learning strategies for power consumption-based IoT botnet detection. Sensors, 25(24), Article 7553. [Google Scholar] [Crossref]

45. https://doi.org/10.3390/s25247553 [Google Scholar] [Crossref]

46. Wilson, E. B. (1927). Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22(158), 209–212. https://doi.org/10.1080/01621459.1927.10502953 [Google Scholar] [Crossref]

Metrics

Views & Downloads

Similar Articles