Unveiling the black box: A multi-layer framework for explaining reinforcement learning-based cyber agents
Abstract
Reinforcement Learning (RL) agents are increasingly used to simulate sophisticated cyberattacks, but their decision-making processes remain opaque, hindering trust, debugging, and defensive preparedness. In high-stakes cybersecurity contexts, explainability is essential for understanding how adversarial strategies are formed and evolve over time. In this paper, we propose a unified, multi-layer explainability framework for RL-based attacker agents that reveals both strategic (Markov Decision Process (MDP)-level) and tactical (policy-level) reasoning. At the MDP-level, we model cyberattacks as a Partially Observable Markov Decision Process (POMDP) to expose exploration-exploitation dynamics and phase-aware behavioural shifts. At the policy-level, we analyse the temporal evolution of Q-values and use Prioritised Experience Replay (PER) to surface critical learning transitions and evolving action preferences. Evaluated across CyberBattleSim environments of increasing complexity, our framework offers interpretable insights into agent behaviour at scale. Unlike previous explainable RL methods, which are predominantly post-hoc, domain-specific, or limited in depth, our approach is both agent- and environment-agnostic, supporting use cases such as red-team simulation, RL policy debugging, phase-aware threat modelling and anticipatory defence planning. By transforming black-box learning into interpretable behavioural signals, our framework provides diagnostic insight into agent learning dynamics, with the potential to support developers and defenders in analysing and understanding autonomous cyber threats.
Fields of Study & Subjects
Adversarial Robustness in Machine Learning
Explainable Artificial Intelligence (XAI)
Information and Cyber Security
Publication details
- Journal / source
- Journal of Information Security and Applications
- Publisher
- Elsevier BV
- Volume
- 101
- Pages
- 104507–104507
- Publication date
- 2 June 2026
- Language
- EN