Title: Network security attack classification: leveraging machine learning methods for enhanced detection and defence

Authors: Irfan Ali Kandhro; Ali Orangzeb Panhwar; Shafique Ahmed Awan; Raja Sohail Ahmed Larik; Abdul Ahad Abro

Addresses: Department of Computer Science, Sindh Madresstual Islam University, Karachi, Sindh, Pakistan ' Department of Computer Science, Shaheed Zulfikar Ali Bhutto Institute of Science and Technology, Gharo Sindh, Pakistan ' Department of Computer Science and IT, Benazir Bhutto Shaheed University, Lyari Karachi, Pakistan ' School of Computer Science and Engineering, Nanjing University of Science and Technology, Nanjing, 210094, China ' Department of Computer Science, Faculty of Engineering Science and Technology, İqra University, Karachi, Pakistan

Abstract: The rapid growth and advancement of information exchange over the internet and mobile technologies have resulted in a significant increase in malicious network attacks. Machine learning (ML) algorithms have emerged as crucial tools in network security for accurately classifying and detecting these attacks, enabling effective defence strategies. In this paper, we employed ML methods such as logistic regression (LG), random forest (RF), decision tree (DT), k-nearest neighbours (KNN), and support vector machines (SVM) for building an intrusion detection system using the publicly available NSL-KDD dataset. Our proposed method utilised feature engineering and selection techniques to extract relevant features. We trained classification models and optimised their parameters using cross-validation and grid search techniques. The models exhibited robustness in identifying unseen attacks, enabling proactive defence strategies. In this paper, we contribute to the field of network security by showcasing the efficacy of machine learning methods, empowering organisations to enhance their defences and respond to threats promptly. Future research can explore advanced models and real-time monitoring techniques to develop dynamic defence mechanisms.

Keywords: attacks classification; network security; cyber security; machine learning; adversarial attacks.

DOI: 10.1504/IJESDF.2025.143478

International Journal of Electronic Security and Digital Forensics, 2025 Vol.17 No.1/2, pp.138 - 148

Received: 30 Aug 2023
Accepted: 26 Oct 2023

Published online: 23 Dec 2024 *

Full-text access for editors Full-text access for subscribers Purchase this article Comment on this article