NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Inroads into Autonomous Network Defence using Explained Reinforcement Learning

Myles Foley, Mia Wang, Zoe M, Chris Hicks, Vasilios Mavroudis

Abstract

Autonomous network defense faces significant challenges due to the diversity of cyber-attack strategies and the "black box" nature of many artificial intelligence models. This paper introduces a hierarchical Deep Reinforcement Learning (DRL) framework that utilizes specialized subagents to counter specific adversary profiles. By employing a controller to identify attacker types early in an episode, the system can deploy the most effective defensive policy. Our results show a performance improvement of up to 170% over standard DRL baselines. Additionally, we apply explainability techniques to verify that the agents' decisions are rooted in logical security principles, such as monitoring adversary access levels.

Introduction

The field of cybersecurity is characterized by a fundamental asymmetry: defenders must secure all potential vulnerabilities, while attackers only need to exploit one. As networks grow in complexity, relying solely on human experts becomes increasingly unsustainable. While Deep Reinforcement Learning (DRL) offers a path toward automation, generalist agents often struggle to adapt to varied attack patterns, such as the direct, high-speed "B-Line" attack versus the stealthy, broad "Meander" scan. Furthermore, the lack of transparency in DRL decision-making poses a barrier to adoption in high-stakes security environments.

The Hierarchical Framework

To address these challenges, we propose a hierarchical RL architecture. This design moves away from a single "jack-of-all-trades" agent in favor of a modular system.

The proposed hierarchical RL architecture featuring a controller and specialized defense subagents.

The architecture consists of two primary components:

  1. The Controller: This high-level module observes early-game patterns to classify the adversary. We tested both a heuristic model and a bandit-based model, both of which achieved 100% classification accuracy within the first four timesteps.
  2. Specialized Subagents: Once the adversary is identified, the controller delegates actions to a subagent trained specifically for that threat. These subagents utilize Proximal Policy Optimisation (PPO) enhanced with features like Curiosity-driven exploration for fast attackers and refined State Representations (SR) to improve stability and reward.

Experimental Setup

The framework was evaluated within the CybORG environment, a high-fidelity simulator representing a manufacturing plant network.

The CybORG network topology used for training and evaluation, featuring three distinct subnets.

The network is divided into three subnets: User, Enterprise, and Operational. Agents were tested against two distinct adversary models:

  • BLineAgent: A goal-oriented attacker that takes the most direct path to the operational server.
  • MeanderAgent: A realistic attacker that performs extensive horizontal scanning to find vulnerabilities.

Results and Explainability

The hierarchical approach yielded substantial improvements over state-of-the-art PPO baselines. Specifically, the model achieved a 30% reward increase against BLine attacks and a 170% increase against Meander attacks. The use of continuous float-based State Representations (SR) further enhanced performance, resulting in 1.5x higher rewards with significantly lower variance compared to previous methods.

A critical component of this research is the use of Explainable RL (XRL). By applying SHAP (Shapley Additive exPlanations), we analyzed which features most influenced the agents' choices. The analysis revealed that "Adversary Access"—the level of privilege an attacker has obtained—was the most critical feature. This finding confirms that the agents are not merely exploiting simulator artifacts but are learning fundamental security concepts.

Conclusion

This work demonstrates that hierarchical specialization and explainability are key to advancing autonomous network defense. By breaking down the defensive task and providing transparency into AI decision-making, we can create more robust and trustworthy security systems. Future research will focus on improving generalization to unseen attackers and testing these models in even more dynamic, large-scale network topologies.

Summary updated

BibTeX
@inproceedings{foley2022inroads,
  author = {Myles Foley and Mia Wang and Zoe M and Chris Hicks and Vasilios Mavroudis},
  title = {{Inroads into Autonomous Network Defence using Explained Reinforcement Learning}},
  booktitle = {CAMLIS},
  year = {2022},
  url = {https://openreview.net/forum?id=u9jw35G6nN},
}
Figure