An Explainable AI Framework for Real-Time Cyberattack Detection and Risk Assessment

As cyberattacks become more sophisticated and more common, detection systems must be not only accurate but also quick and easy to interpret. Although deep learning models have proven to be very effective in detecting intrusion and malware, their black-box nature has hindered their adoption in security operations centers (SOCs), where analysts need to explain and take action on alerts in short timeframes. To offer real-time cyberattack detection with quantitative risk assessment, this paper presents an Explainable AI (XAI) framework that integrates a lightweight hybrid deep learning detector with post-hoc and intrinsic explainability methods. The framework combines a Convolutional-Bidirectional Gated Recurrent Unit (CNN-BiGRU) architecture for spatio-temporal traffic representation with an attention layer that highlights salient time steps and integrates SHAP (Shapley Additive explanations) and LIME (Local Interpretable Model-agnostic Explanations) to generate human-readable justifications for every prediction. A dynamic risk-scoring engine then translates detection confidence, feature-level severity, and asset criticality to a normalized risk index that enables prioritized incident response. The framework is tested on three benchmark intrusion detection datasets (CICIDS2017, NSL-KDD, and UNSW-NB15) and a real-time traffic stream generated synthetically. Experimental results reveal that the proposed model achieves a detection accuracy of 98.6%, achieves an F1-score of 0.981, and the average latency of inference is 14.2 milliseconds per flow, and explanation fidelity, based on the two metrics of deletion/insertion and rank-correlation stability, demonstrates that the explanations generated are faithful to the model's behavior. It has been shown that the proposed hybrid framework is suitable for application in real-time network security environments with limited resources, as it outperforms the standalone CNN, LSTM, Random Forest, and CNN-LSTM baselines in terms of detection performance and retains interpretability with only a minor computational cost. It also demonstrates the applicability of the framework for security operations workflows by means of a comprehensive ablation study, ROC and confusion-matrix analysis, and a comparison with the dynamic risk index and static CVSS-style scoring.

Authors

Institutions

Publication Details

Journal
Jordanian Journal of Informatics and Computing
Published
2026-11-06
DOI
https://doi.org/10.63180/jjic.thestap.2027.1.5
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

An Explainable AI Framework for Real-Time Cyberattack Detection and Risk Assessment

Vugar Hacimahmud Abdullayev, Alex Khang, Nazila Ragimova
5 links
Jordanian Journal of Informatics and Computing
Network Security and Intrusion Detection
article

An Explainable AI Framework for Real-Time Cyberattack Detection and Risk Assessment

Vugar Hacimahmud Abdullayev, Alex Khang, Nazila Ragimova
article en

Abstract

As cyberattacks become more sophisticated and more common, detection systems must be not only accurate but also quick and easy to interpret. Although deep learning models have proven to be very effective in detecting intrusion and malware, their black-box nature has hindered their adoption in security operations centers (SOCs), where analysts need to explain and take action on alerts in short timeframes. To offer real-time cyberattack detection with quantitative risk assessment, this paper presents an Explainable AI (XAI) framework that integrates a lightweight hybrid deep learning detector with post-hoc and intrinsic explainability methods. The framework combines a Convolutional-Bidirectional Gated Recurrent Unit (CNN-BiGRU) architecture for spatio-temporal traffic representation with an attention layer that highlights salient time steps and integrates SHAP (Shapley Additive explanations) and LIME (Local Interpretable Model-agnostic Explanations) to generate human-readable justifications for every prediction. A dynamic risk-scoring engine then translates detection confidence, feature-level severity, and asset criticality to a normalized risk index that enables prioritized incident response. The framework is tested on three benchmark intrusion detection datasets (CICIDS2017, NSL-KDD, and UNSW-NB15) and a real-time traffic stream generated synthetically. Experimental results reveal that the proposed model achieves a detection accuracy of 98.6%, achieves an F1-score of 0.981, and the average latency of inference is 14.2 milliseconds per flow, and explanation fidelity, based on the two metrics of deletion/insertion and rank-correlation stability, demonstrates that the explanations generated are faithful to the model's behavior. It has been shown that the proposed hybrid framework is suitable for application in real-time network security environments with limited resources, as it outperforms the standalone CNN, LSTM, Random Forest, and CNN-LSTM baselines in terms of detection performance and retains interpretability with only a minor computational cost. It also demonstrates the applicability of the framework for security operations workflows by means of a comprehensive ablation study, ROC and confusion-matrix analysis, and a comparison with the dynamic risk index and static CVSS-style scoring.

Jordanian Journal of Informatics and ComputingVol. 2027(1)
Azerbaijan State Oil and Industry University (AZ)
Openalex Percentile: Top 16%
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon