CFP last date
21 December 2026
Reseach Article

ML-based Intrusion Detection on UNSW-NB15

by Niaz Morshed
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 187 - Number 155
Year of Publication: 2026
Authors: Niaz Morshed
10.5120/ijcae04de6503f89

Niaz Morshed . ML-based Intrusion Detection on UNSW-NB15. International Journal of Computer Applications. 187, 155 ( Nov 2026), 10-17. DOI=10.5120/ijcae04de6503f89

@article{ 10.5120/ijcae04de6503f89,
author = { Niaz Morshed },
title = { ML-based Intrusion Detection on UNSW-NB15 },
journal = { International Journal of Computer Applications },
issue_date = { Nov 2026 },
volume = { 187 },
number = { 155 },
month = { Nov },
year = { 2026 },
issn = { 0975-8887 },
pages = { 10-17 },
numpages = {9},
url = { https://ijcaonline.org/archives/volume187/number155/ml-based-intrusion-detection-on-unsw-nb15/ },
doi = { 10.5120/ijcae04de6503f89 },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Journal Article
%1 2026-11-25T01:50:11.903554+05:30
%A Niaz Morshed
%T ML-based Intrusion Detection on UNSW-NB15
%J International Journal of Computer Applications
%@ 0975-8887
%V 187
%N 155
%P 10-17
%D 2026
%I Foundation of Computer Science (FCS), NY, USA
Abstract

Machine learning (ML)-based network intrusion detection systems (NIDS) are typically compared by accuracy on public benchmarks, but such scores reveal little about how a detector performs when traffic, attacks, or the monitoring pipeline change. This paper presents a leakage-aware and resilience-oriented evaluation of four detectors (logistic regression, random forest, XGBoost and a multilayer perceptron) on the official UNSW-NB15 partition. A data audit reveals that 42.2% of training records are exact duplicates and 10.4% of test flows also occur in training. Random forest and XGBoost reach the highest F1 scores (89.43% and 89.37%), yet at the default decision threshold they generate alarms for approximately 27% of normal traffic, and thresholds calibrated to a 1% false-positive rate on validation data yield 2.4% to 4.9% on the test set. A single rule on the source time-to-live (TTL) value reaches 76.63% accuracy, and TTL is 2.8 times as influential as the next-ranked feature. When each attack family is removed from training, detection at a 1% false-alarm budget falls from 90.1% to 75.1% on average; for Generic attacks it falls from 99.8% to 51.3%, and to 23.3% without TTL features. Under simulated telemetry loss, tree ensembles degrade gracefully while the linear model loses up to 36.5 F1 points. These findings support reporting operating-point, novelty and degradation metrics alongside headline accuracy.

References
  1. G. Apruzzese, P. Laskov, and J. Schneider, "SoK: Pragmatic Assessment of Machine Learning for Network Intrusion Detection," in 2023 IEEE 8th European Symposium on Security and Privacy (EuroS&P), 2023, pp. 592-614, doi: 10.1109/EuroSP57164.2023.00042.
  2. D. Arp, E. Quiring, F. Pendlebury, A. Warnecke, F. Pierazzi, C. Wressnegger, L. Cavallaro, and K. Rieck, "Dos and Don'ts of Machine Learning in Computer Security," in 31st USENIX Security Symposium (USENIX Security 22), 2022, pp. 3971-3988.
  3. S. Axelsson, "The base-rate fallacy and the difficulty of intrusion detection," ACM Transactions on Information and System Security, vol. 3, no. 3, pp. 186-205, 2000, doi: 10.1145/357830.357849.
  4. Bhavika and N. Duhan, "Intrusion Detection in the Era of Machine Learning: A Critical Survey of Algorithms and Evaluation Practices," International Journal of Computer Applications, vol. 187, no. 21, pp. 50-57, 2025, doi: 10.5120/ijca2025925297.
  5. L. Breiman, "Random Forests," Machine Learning, vol. 45, no. 1, pp. 5-32, 2001, doi: 10.1023/A:1010933404324.
  6. A. L. Buczak and E. Guven, "A Survey of Data Mining and Machine Learning Methods for Cyber Security Intrusion Detection," IEEE Communications Surveys & Tutorials, vol. 18, no. 2, pp. 1153-1176, 2016, doi: 10.1109/COMST.2015.2494502.
  7. T. Chen and C. Guestrin, "XGBoost: A Scalable Tree Boosting System," in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016, pp. 785-794, doi: 10.1145/2939672.2939785.
  8. D. Chicco and G. Jurman, "The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation," BMC Genomics, vol. 21, no. 1, Art. no. 6, 2020, doi: 10.1186/s12864-019-6413-7.
  9. T. G. Dietterich, "Approximate Statistical Tests for Comparing Supervised Classification Learning Algorithms," Neural Computation, vol. 10, no. 7, pp. 1895-1923, 1998, doi: 10.1162/089976698300017197.
  10. G. Engelen, V. Rimmer, and W. Joosen, "Troubleshooting an Intrusion Detection Dataset: the CICIDS2017 Case Study," in 2021 IEEE Security and Privacy Workshops (SPW), 2021, pp. 7-12, doi: 10.1109/SPW53761.2021.00009.
  11. R. Geirhos, J.-H. Jacobsen, C. Michaelis, R. Zemel, W. Brendel, M. Bethge, and F. A. Wichmann, "Shortcut learning in deep neural networks," Nature Machine Intelligence, vol. 2, no. 11, pp. 665-673, 2020, doi: 10.1038/s42256-020-00257-z.
  12. S. M. Kasongo and Y. Sun, "Performance Analysis of Intrusion Detection Systems Using a Feature Selection Method on the UNSW-NB15 Dataset," Journal of Big Data, vol. 7, no. 1, Art. no. 105, 2020, doi: 10.1186/s40537-020-00379-6.
  13. S. Kaufman, S. Rosset, C. Perlich, and O. Stitelman, "Leakage in data mining: Formulation, detection, and avoidance," ACM Transactions on Knowledge Discovery from Data, vol. 6, no. 4, Art. no. 15, 2012, doi: 10.1145/2382577.2382579.
  14. D. Kus, E. Wagner, J. Pennekamp, K. Wolsing, I. B. Fink, M. Dahlmanns, K. Wehrle, and M. Henze, "A False Sense of Security? Revisiting the State of Machine Learning-Based Industrial Intrusion Detection," in Proceedings of the 8th ACM on Cyber-Physical System Security Workshop (CPSS '22), 2022, pp. 73-84, doi: 10.1145/3494107.3522773.
  15. I. Linkov and A. Kott, "Fundamental Concepts of Cyber Resilience: Introduction and Overview," in Cyber Resilience of Systems and Networks, A. Kott and I. Linkov, Eds. Cham: Springer, 2019, pp. 1-25, doi: 10.1007/978-3-319-77492-3_1.
  16. S. M. Lundberg and S.-I. Lee, "A Unified Approach to Interpreting Model Predictions," in Advances in Neural Information Processing Systems 30 (NIPS 2017), 2017.
  17. S. M. Lundberg, G. Erion, H. Chen, A. DeGrave, J. M. Prutkin, B. Nair, R. Katz, J. Himmelfarb, N. Bansal, and S.-I. Lee, "From local explanations to global understanding with explainable AI for trees," Nature Machine Intelligence, vol. 2, no. 1, pp. 56-67, 2020, doi: 10.1038/s42256-019-0138-9.
  18. Q. McNemar, "Note on the sampling error of the difference between correlated proportions or percentages," Psychometrika, vol. 12, no. 2, pp. 153-157, 1947, doi: 10.1007/BF02295996.
  19. N. Moustafa and J. Slay, "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), 2015, pp. 1-6, doi: 10.1109/MilCIS.2015.7348942.
  20. N. Moustafa and J. Slay, "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, vol. 25, no. 1-3, pp. 18-31, 2016, doi: 10.1080/19393555.2015.1125974.
  21. N. Moustafa, G. Creech, and J. Slay, "Big Data Analytics for Intrusion Detection System: Statistical Decision-Making Using Finite Dirichlet Mixture Models," in Data Analytics and Decision Support for Cybersecurity, I. Palomares Carrascosa, H. K. Kalutarage, and Y. Huang, Eds. Cham: Springer, 2017, pp. 127-156, doi: 10.1007/978-3-319-59439-2_5.
  22. N. Moustafa, J. Slay, and G. Creech, "Novel Geometric Area Analysis Technique for Anomaly Detection Using Trapezoidal Area Estimation on Large-Scale Networks," IEEE Transactions on Big Data, vol. 5, no. 4, pp. 481-494, 2019, doi: 10.1109/TBDATA.2017.2715166.
  23. F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and É. Duchesnay, "Scikit-learn: Machine Learning in Python," Journal of Machine Learning Research, vol. 12, no. 85, pp. 2825-2830, 2011.
  24. F. Pendlebury, F. Pierazzi, R. Jordaney, J. Kinder, and L. Cavallaro, "TESSERACT: Eliminating Experimental Bias in Malware Classification across Space and Time," in 28th USENIX Security Symposium (USENIX Security 19), 2019, pp. 729-746.
  25. M. Ring, S. Wunderlich, D. Scheuring, D. Landes, and A. Hotho, "A survey of network-based intrusion detection data sets," Computers & Security, vol. 86, pp. 147-167, 2019, doi: 10.1016/j.cose.2019.06.005.
  26. R. Ross, V. Pillitteri, R. Graubart, D. Bodeau, and R. McQuaid, "Developing Cyber-Resilient Systems: A Systems Security Engineering Approach," NIST Special Publication 800-160, Vol. 2, Rev. 1, National Institute of Standards and Technology, 2021, doi: 10.6028/NIST.SP.800-160v2r1.
  27. M. Sarhan, S. Layeghy, N. Moustafa, and M. Portmann, "NetFlow Datasets for Machine Learning-Based Network Intrusion Detection Systems," in Big Data Technologies and Applications (BDTA 2020, WiCON 2020), Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering, vol. 371. Cham: Springer, 2021, pp. 117-135, doi: 10.1007/978-3-030-72802-1_9.
  28. M. Sarhan, S. Layeghy, and M. Portmann, "Towards a Standard Feature Set for Network Intrusion Detection System Datasets," Mobile Networks and Applications, vol. 27, no. 1, pp. 357-370, 2022, doi: 10.1007/s11036-021-01843-0.
  29. R. Sommer and V. Paxson, "Outside the Closed World: On Using Machine Learning for Network Intrusion Detection," in 2010 IEEE Symposium on Security and Privacy, 2010, pp. 305-316, doi: 10.1109/SP.2010.25.
  30. M. Tavallaee, E. Bagheri, W. Lu, and A. A. Ghorbani, "A detailed analysis of the KDD CUP 99 data set," in 2009 IEEE Symposium on Computational Intelligence for Security and Defense Applications, 2009, pp. 1-6, doi: 10.1109/CISDA.2009.5356528.
  31. UNSW Canberra, "The UNSW-NB15 Dataset," [Online]. Available: https://research.unsw.edu.au/projects/unsw-nb15-dataset (accessed Oct. 9, 2026).
  32. R. Vinayakumar, M. Alazab, K. P. Soman, P. Poornachandran, A. Al-Nemrat, and S. Venkatraman, "Deep Learning Approach for Intelligent Intrusion Detection System," IEEE Access, vol. 7, pp. 41525-41550, 2019, doi: 10.1109/ACCESS.2019.2895334.
  33. N. B. Sharif, A. A. Susom, B. D. Sarker, S. Badjie and S. A. Ashraf, "Explainable Ethereum Fraud Detection for Secure Sustainable Digital Infrastructure," 2026 6th International Conference on Soft Computing for Security Applications (ICSCSA), Salem, India, 2026, pp. 539-544, doi: 10.1109/ICSCSA69367.2026.11708292.
  34. S. Badjie, A. A. Susom, B. D. Sarker, N. B. Sharif and S. A. Ashraf, "Ensembles or Graph Neural Networks? Detecting Illicit Bitcoin Transactions Under Temporal Drift," 2026 6th International Conference on Soft Computing for Security Applications (ICSCSA), Salem, India, 2026, pp. 557-561, doi: 10.1109/ICSCSA69367.2026.11707854.
  35. A. A. Susom, M. F. Ahammed, M. R. Labu, B. D. Sarker, S. Badjie and S. A. Ashraf, "FORTIS: A Hybrid Ensemble Model for Industrial Cybersecurity and Intrusion Detection," 2026 6th International Conference on Soft Computing for Security Applications (ICSCSA), Salem, India, 2026, pp. 1590-1596, doi: 10.1109/ICSCSA69367.2026.11708544.
  36. B. D. Sarker, M. F. Ahammed, M. R. Labu, S. Badjie, A. A. Susom and R. Hasan, "SecureEnsembleNet: Intelligent Cyber Threat Detection with Ensemble Learning," 2026 7th International Conference On Computational Vision and Bio Inspired Computing (ICCVBIC), Lalitpur, Nepal, 2026, pp. 950-955, doi: 10.1109/ICCVBIC71195.2026.11689560.
  37. M. Das, A. A. Susom, M. A. Bhuiyan, A. Al Maimun and R. Hasan, "Deep Learning for Cancer Type Identification from RNA-Seq Gene Expression: A Comparison with ML," 2026 International Conference on Modern Sustainable Systems (CMSS), Shah Alam, Malaysia, 2026, pp. 1404-1407, doi: 10.1109/CMSS69636.2026.11688231.
  38. D. Nandy, M. O. Bouraima, S. P. Koneru, M. B. N. Shahin, A. Biswas and M. J. Islam, "Resilient Digital Twin Estimation for Smart Manufacturing Systems under Sensor Data Loss," 2026 9th International Conference on Inventive Computation Technologies (ICICT), Kirtipur, Nepal, 2026, pp. 264-270, doi: 10.1109/ICICT68280.2026.11511027.
  39. M. O. Bouraima, M. B. N. Shahin, D. Nandy, M. J. Islam, S. P. Koneru and A. Biswas, "Trustworthy AI for Predictive Analytics under Missing Data," 2026 9th International Conference on Inventive Computation Technologies (ICICT), Kirtipur, Nepal, 2026, pp. 2141-2148, doi: 10.1109/ICICT68280.2026.11510904.
  40. U. Ahmed, M. R. Chowdhury, M. S. Mia, A. Chowdhury, N. Bakchi and M. I. Hossain, "Leakage-Aware Benchmarking for Trustworthy Supply Chain Risk Prediction," 2026 10th International Conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC), Kirtipur, Nepal, 2026, pp. 1137-1143, doi: 10.1109/I-SMAC70384.2026.11747631.
  41. J. Shekh, D. Nandy, M. B. Nuruzzaman Shahin, M. Jakaria Islam, A. Biswas and M. F. Ahmed, "Explainable AI and SHAP-based Modeling for Workplace Risk and Safety Analytics," 2026 International Conference on Computer Networks and Inventive Communication Technologies (ICCNCT), Erode, India, 2026, pp. 1774-1781, doi: 10.1109/ICCNCT68477.2026.11590467.
  42. Hossain, M., & Uddin, M. B. (2025). Digital twins and federated learning for industrial internet of things. Int. J. Sci. Res. Arch, 16(1), 729-736.
  43. M. B. Uddin, M. Hossain, T. Mahmud and S. Das, "Blockchain Integration in IoMT for Secure Healthcare: Challenges, Integration, and Solutions," 2025 6th International Conference on Inventive Research in Computing Applications (ICIRCA), Coimbatore, India, 2025, pp. 597-604, doi: 10.1109/ICIRCA65293.2025.11089683.
  44. S. P. Koneru, M. Omanda Bouraima, R. Rahman and M. Hossain, "Object Detection in Unstructured Driving Environments Using NASNetMobile and InceptionV3," 2025 9th International Conference on Electronics, Communication and Aerospace Technology (ICECA), Coimbatore, India, 2025, pp. 1945-1949, doi: 10.1109/ICECA66444.2025.11382875.
  45. Md Hossain & Nakul Bakchi & Md Imran Hossain & Suman Das & Md Faysal Ahmed, 2026. "Blockchain-Driven Federated Learning for Secure Industrial Predictive Maintenance," International Journal of Innovative Science and Research Technology (IJISRT), vol. 11(06), pp. 2442-2448.
Index Terms

Computer Science
Information Sciences

Keywords

Intrusion detection UNSW-NB15 data leakage shortcut learning cyber resilience zero-day attacks explainable AI