Leveraging Explainable Artificial Intelligence in Real-Time Cyberattack Identification: Intrusion Detection System Approach
Source abstract
Abstract
Cyberattacks are part of the continuous race, where research in computer science both contributes to discovering new threats and vulnerabilities and also mitigates them. When new vulnerabilities are not reported but sold to attackers, they are called “zero-days,” and are particularly difficult to identify. Modern intrusion detection systems (IDS) that leverage artificial intelligence (AI) and machine learning (ML) are becoming essential in identifying these cyber threats. This study presents the design of an IDS using ML and Explainable AI (XAI) techniques for real-time classification of various detected cyberattacks. By utilizing frameworks such as Apache Kafka and Spark, along with libraries such as Scikit-learn and SHAP, the system identifies and classifies normal or anomalous network traffic in real-time. The XAI offers the IDS the option to explain the rationale behind each classification. The primary aim of this research is to develop a flexible and scalable IDS that can provide clear explanations for its decisions. The second aim is to compare and analyze different ML models to achieve the best results in terms of accuracy, f1, recall, and precision. Random Forest models proposed in this research article obtained the best results in figuring out the key features identified by the XAI model, which includes Ct_state_ttl, Sttl, Dmean, and Dbytes from the UNSW-NB15 dataset. Finally, this research work introduces different machine learning algorithms with superior performance metrics compared to other real-time classification methods.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Network Security and Intrusion Detection · Advanced Malware Detection Techniques · Anomaly Detection Techniques and Applications
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Departamento de Ingeniería en Sistemas Telemáticos (DIT), ETSI Telecomunicación, Universidad Politécnica de Madrid (UPM), Avda. Complutense 30, 28040 Madrid, Spain
References (27)
Show source-provided references
1. Kovač, A., Dunđer, I., and Seljan, S. (2022, January 23–27). An Overview of Machine Learning Algorithms for Detecting Phishing Attacks on Electronic Messaging Services. Proceedings of the 2022 45th Jubilee International Convention on Information, Communication and Electronic Technology (MIPRO), Opatija, Croatia.10.23919/MIPRO55190.2022.9803517 ↗
2. Mohammadhassani, A., Teymouri, A., Mehrizi-Sani, A., and Tehrani, K. (2020, January 2–4). Performance Evaluation of an Inverter-Based Microgrid Under Cyberattacks. Proceedings of the 2020 IEEE 15th International Conference of System of Systems Engineering (SoSE), Budapest, Hungary.10.1109/SoSE50414.2020.9130524 ↗
3. Detecting Cyberattacks in Industrial Control Systems Using Online Learning Algorithms10.1016/j.neucom.2019.07.031 ↗
4. Evaluation of Cybersecurity Data Set Characteristics for Their Applicability to Neural Networks Algorithms Detecting Cybersecurity Anomalies10.1109/ACCESS.2019.2963407 ↗
5. Deep Learning Approaches for Anomaly-Based Intrusion Detection Systems: A Survey, Taxonomy, and Open Issues10.1016/j.knosys.2019.105124 ↗
6. Survey of Intrusion Detection Systems: Techniques, Datasets and Challenges10.1186/s42400-019-0038-7 ↗
7. Ontology-Based Approach to Real-Time Risk Management and Cyber-Situational Awareness10.1016/j.future.2022.12.006 ↗
8. Moustafa, N., and Slay, J. (2015, January 18–19). UNSW-NB15: A Comprehensive Data Set for Network Intrusion Detection Systems (UNSW-NB15 Network Data Set). Proceedings of the 2015 Military Communications and Information Systems Conference (MilCIS), Cracow, Poland.10.1109/MilCIS.2015.7348942 ↗
9. (2020, August 12). Apache Kafka. Available online: https://kafka.apache.org/documentation/.
10. Armbrust, M., Das, T., Torres, J., Yavuz, B., Zhu, S., Xin, R., Ghodsi, A., Stoica, I., and Zaharia, M. (2018, January 10–15). Structured Streaming: A Declarative API for Real-Time Applications in Apache Spark. Proceedings of the 2018 International Conference on Management of Data, Houston, TX, USA.10.1145/3183713.3190664 ↗
11. Larriva-Novo, X., Villagrá, V.A., Vega-Barbas, M., Rivera, D., and Sanz Rodrigo, M. (2021). An IoT-Focused Intrusion Detection System Approach Based on Preprocessing Characterization for Cybersecurity Datasets. Sensors, 21.10.3390/s21020656 ↗
12. An Effective Intrusion Detection Framework Based on SVM with Feature Augmentation10.1016/j.knosys.2017.09.014 ↗
13. A Review of KDD99 Dataset Usage in Intrusion Detection and Machine Learning between 2010 and 2015
14. (2023, April 25). Performance Comparison of Support Vector Machine, Random Forest, and Extreme Learning Machine for Intrusion Detection|IEEE Journals & Magazine|IEEE Xplore. Available online: https://ieeexplore.ieee.org/abstract/document/8369054/.
15. A Detailed Analysis on NSL-KDD Dataset Using Various Machine Learning Techniques for Intrusion Detection
16. Implementing a Deep Learning Model for Intrusion Detection on Apache Spark Platform10.1109/ACCESS.2020.3019931 ↗
17. Practical Real-Time Intrusion Detection Using Machine Learning Approaches10.1016/j.comcom.2011.07.001 ↗
18. (2023, April 25). Performance Analysis of Intrusion Detection Systems Using a Feature Selection Method on the UNSW-NB15 Dataset|SpringerLink. Available online: https://link.springer.com/article/10.1186/s40537-020-00379-6.
19. (2023, April 25). An Explainable Machine Learning Framework for Intrusion Detection Systems|IEEE Journals & Magazine|IEEE Xplore. Available online: https://ieeexplore.ieee.org/abstract/document/9069273.
20. Le, T.-T.-H., Kim, H., Kang, H., and Kim, H. (2022). Classification and Explanation for Intrusion Detection System Based on Ensemble Trees and SHAP Method. Sensors, 22.10.3390/s22031154 ↗
21. Mane, S., and Rao, D. (2021). Explaining Network Intrusion Detection System Using Explainable AI Framework. arXiv preprint.
22. Sánchez-Zas, C., Larriva-Novo, X., Villagrá, V.A., Rodrigo, M.S., and Moreno, J.I. (2022). Design and Evaluation of Unsupervised Machine Learning Models for Anomaly Detection in Streaming Cybersecurity Logs. Mathematics, 10.10.3390/math10214043 ↗
23. Larriva-Novo, X., Vega-Barbas, M., Villagrá, V.A., Rivera, D., Álvarez-Campana, M., and Berrocal, J. (2020). Efficient Distributed Preprocessing Model for Machine Learning-Based Anomaly Detection over Large-Scale Cybersecurity Datasets. Appl. Sci., 10.10.3390/app10103430 ↗
24. D’Hooge, L., Verkerken, M., Wauters, T., Volckaert, B., and De Turck, F. (2022, January 22–24). Discovering Non-Metadata Contaminant Features in Intrusion Detection Datasets. Proceedings of the 2022 19th Annual International Conference on Privacy, Security & Trust (PST), Fredericton, NB, Canada.10.1109/PST55820.2022.9851974 ↗
25. A Novel Combinatorial Optimization Based Feature Selection Method for Network Intrusion Detection10.1016/j.cose.2020.102164 ↗
26. An Integrated Rule Based Intrusion Detection System: Analysis on UNSW-NB15 Data Set and the Real Time Online Dataset10.1007/s10586-019-03008-x ↗
27. Big Data Analytics Framework for Peer-to-Peer Botnet Detection Using Random Forests10.1016/j.ins.2014.03.066 ↗