Understanding Machine Learning Model Behavior for Intrusion Detection Across Attacks
Abstract
With the growing volume and variety of network traffic driven by various applications such as real-time communications and cloud services, combined with the increasing sophistication and frequency of malicious attempts, network administrators are facing greater challenges in securing their networks against malware. Over the past two decades, advances in machine learning and deep learning have led to a growing number of proposals for intelligent Network Intrusion Detection Systems (NIDS) that leverage these models to detect the unauthorized entry of security threats into the network. Existing studies focus on improving model accuracies, without a closer analysis of the underlying characteristics of the data. In this work, we analyze the effectiveness of NIDS mechanisms in different scenarios using different machine learning models. By examining classification performance across various data distributions -including scenarios with and without normal traffic and cases addressing class imbalance- we identify patterns in model behaviors and their correlation with attack characteristics. In our experiments, we have observed, (i) the kNN algorithm achieved the fastest training and testing times while maintaining adequate accuracy, (ii) XGBoost performed best in detecting the most commonly occurring attacks, (iii) MLP provided the highest improvement in minority class labels when resampling was applied in the dataset, and (iv) notably, while Reconnaissance attacks were consistently detected even with limited samples, detection of DoS attacks remained challenging with all models. We believe NIDS systems could benefit from the insights raised in this work based on the interplay between attack behaviors, data distributions, and model characteristics.
Keywords
References
- Alkashto, H., & Elewi, A. (2024). Integration of blockchain and machine learning for safe and efficient autonomous car systems: A survey. Turkish Journal of Engineering, 8(2), 282-299
- Ayas, M. Ş. (2021). A brief review on attack design and detection strategies for networked cyber-physical systems. Turkish Journal of Engineering, 5(1), 1-7.
- Bace, R., & Mell, P. (2001). Intrusion detection systems, special publication, National Institute of Standards and Technology (NIST), 16.
- Moustafa, N., & Slay, J. (2015, November). UNSW-NB15: A comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set). In 2015 Military Communications and Information Systems Conf. (MilCIS)(pp. 1-6). IEEE.
- Basholli, F., Daberdini, A., & Basholli, A. (2023). Possibility of protection against unauthorized interference in telecommunication systems. Engineering Applications, 2(3), 265-278.
- Liao, H. J., Lin, C. H. R., Lin, Y. C., & Tung, K. Y. (2013). Intrusion detection system: A comprehensive review. Journal of Network and Computer Applications, 36(1), 16-24.
- Khraisat, A., Gondal, I., Vamplew, P., & Kamruzzaman, J. (2019). Survey of intrusion detection systems: techniques, datasets and challenges. Cybersecurity, 2(1), 1-22.
- Singh, A. P., Singh, M., Bhatia, K., Pathak, H. (2024). Encrypted malware detection methodology without decryption using deep learning-based approaches. Turkish Journal of Engineering, 8(3), 498-509.
Details
Primary Language
English
Subjects
Information Security Management, Computer System Software, Computer Software
Journal Section
Research Article
Publication Date
October 8, 2025
Submission Date
January 5, 2025
Acceptance Date
May 7, 2025
Published in Issue
Year 2025 Volume: 9 Number: 4
APA
Özbek, M. E., & Gelal Soyak, E. (2025). Understanding Machine Learning Model Behavior for Intrusion Detection Across Attacks. Turkish Journal of Engineering, 9(4), 768-778. https://doi.org/10.31127/tuje.1613468
AMA
1.Özbek ME, Gelal Soyak E. Understanding Machine Learning Model Behavior for Intrusion Detection Across Attacks. TUJE. 2025;9(4):768-778. doi:10.31127/tuje.1613468
Chicago
Özbek, Mehmet Erdi, and Ece Gelal Soyak. 2025. “Understanding Machine Learning Model Behavior for Intrusion Detection Across Attacks”. Turkish Journal of Engineering 9 (4): 768-78. https://doi.org/10.31127/tuje.1613468.
EndNote
Özbek ME, Gelal Soyak E (October 1, 2025) Understanding Machine Learning Model Behavior for Intrusion Detection Across Attacks. Turkish Journal of Engineering 9 4 768–778.
IEEE
[1]M. E. Özbek and E. Gelal Soyak, “Understanding Machine Learning Model Behavior for Intrusion Detection Across Attacks”, TUJE, vol. 9, no. 4, pp. 768–778, Oct. 2025, doi: 10.31127/tuje.1613468.
ISNAD
Özbek, Mehmet Erdi - Gelal Soyak, Ece. “Understanding Machine Learning Model Behavior for Intrusion Detection Across Attacks”. Turkish Journal of Engineering 9/4 (October 1, 2025): 768-778. https://doi.org/10.31127/tuje.1613468.
JAMA
1.Özbek ME, Gelal Soyak E. Understanding Machine Learning Model Behavior for Intrusion Detection Across Attacks. TUJE. 2025;9:768–778.
MLA
Özbek, Mehmet Erdi, and Ece Gelal Soyak. “Understanding Machine Learning Model Behavior for Intrusion Detection Across Attacks”. Turkish Journal of Engineering, vol. 9, no. 4, Oct. 2025, pp. 768-7, doi:10.31127/tuje.1613468.
Vancouver
1.Mehmet Erdi Özbek, Ece Gelal Soyak. Understanding Machine Learning Model Behavior for Intrusion Detection Across Attacks. TUJE. 2025 Oct. 1;9(4):768-7. doi:10.31127/tuje.1613468
Cited By
Scalable Intrusion Detection in IoT Networks: A Big Data Analytics Approach
Turkish Journal of Engineering
https://doi.org/10.31127/tuje.1793847