Machine Learning Applied to Cyberattack Prediction
DOI:
https://doi.org/10.56394/aris2.v5i2.65Keywords:
Machine Learning;, Vulnerabilities, Cyber-Attack, ai-driven detection systemsAbstract
This article summarizes the development of machine learning models to classify network traffic by extracting features from network packets. These models are helpful in intrusion detection and prevention systems (IDPS), which can improve the identification of malicious packets and reduce false positives. Including these models in IDPS systems makes them more efficient and robust. The article summarizes the laboratory work developed in the master's dissertation in data science at Universidade Lusófona of Lísbon. In this work, you can find a summary of the extraction phases at the data source, transformations, preprocessing, feature selection, and selection of the model trained and tested with the data set under analysis.
During the laboratory, 11 models were trained and tested. Still, for this article, we present more information about the models that had the best results: Random Forest, XGBoost, and Decision Tree. Three scenarios were created for the same dataset, which allowed us to study the behavior of the models under different scenarios. The first scenario refers to a binary classification problem, with two classes, that is, class 0 representing Normal Traffic and class 1 representing Attack Attempt. The second scenario refers to simple multiclass classification (different attack types), and the third and last scenario refers to balanced multiclass classification with the smote algorithm.
Ultimately, we propose reflecting on each scenario developed, highlighting two fundamental points. The first is the importance of a precise definition of the problem, which directly influences the transformations applied to the data and the selection of relevant attributes. The second point refers to the fact that achieving high accuracy rates in training and testing the model is not enough — it is crucial to consider the risk of data leakage. Variables that compromise the model's integrity, making its application in real production environments unfeasible, must be carefully identified and excluded.
References
[1]. José Arnaud, Paulo Matos “Artificial Intelligence as a Support Tool to Cybersecurity Activities”. ARIS2 – Advanced Research on Information Systems Security, vol. 2, n.º 1, pp. 2–12. 2022. DOI: https://doi.org/10.56394/aris2.v2i1.9
[2]. Dr. Nimisha. M.N, “ARTIFICIAL INTELLIGENCE IN CYBERSECURITY: A STUDY”. International Journal of Research Culture Society, vol. 7, n.º 10, pp. 69–72.2023.
[3]. Kandala kalyana Srinivas, D. Vijay Sai, , N.Saketh, I. Neelima, B.Alekhya, “Artificial Intelligence Techniques for Prevention of Cyber Attacks and Detection of Security Threats”. International Journal of Engineering Research and Applications (IJERA), vol. 12, n.º 6, série V, pp. 37–44. 2022.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Avelino Cosme, Nuno Mateus Coelho

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

