Explainable Artificial Intelligence for Real-Time Cyber Threat Detection and Risk Assessment
Keywords:
explainable artificial intelligence; cybersecurity; intrusion detection; real-time analytics; SHAP; LIME; risk assessment; machine learning.Abstract
The growing velocity, diversity, and sophistication of cyberattacks have increased demand for automated detection systems that operate with low latency while producing evidence security analysts can understand and challenge. This study presents an explainable artificial intelligence (XAI) framework for real-time cyber threat detection and risk assessment. The framework integrates streaming telemetry preprocessing, supervised threat classification, local and global explanation mechanisms, and a risk engine that combines predicted threat likelihood with asset impact and contextual severity. The design supports model-agnostic explanations through LIME and featureattribution explanations through SHAP, while retaining a modular interface for alternative classifiers. A controlled simulation demonstrates the evaluation protocol and reporting structure without claiming production or field deployment. In the illustrative experiment, tree-based ensemble models provide the strongest balance of detection quality and operational interpretability. At the same time, explanation outputs identify authentication anomalies, destination-port entropy, flow duration, packet rate, and byte rate as influential indicators. The proposed risk layer converts model probabilities into prioritized risk scores rather than treating every detected anomaly as equally urgent. The study argues that explainability should be evaluated alongside accuracy, false-positive rate, latency, stability, and analyst usefulness. The resulting architecture provides a transparent basis for security operations centers seeking to combine machine-speed detection with human-centered validation and risk-based response
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Well Testing Journal

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
This license requires that re-users give credit to the creator. It allows re-users to distribute, remix, adapt, and build upon the material in any medium or format, for noncommercial purposes only.

