Introduction
Autonomous Cybersecurity Defense (ACD) aims to deploy intelligent agents capable of protecting complex network infrastructures against sophisticated adversaries. However, a significant hurdle remains: most current ACD systems are "homebodies," trained on static network topologies. In real-world environments, networks are dynamic—evolving through hardware upgrades, failures, and administrative changes. When an agent trained on a single layout encounters a new configuration, it often suffers from catastrophic failure due to the "distribution shift" in its observation space.
This paper introduces General Autonomous Cybersecurity Defense (GACD), a framework designed to create defense agents that generalize across thousands of unseen, dynamic network configurations. By moving away from memorizing specific network maps and toward understanding structural relationships, GACD provides a robust solution for modern, evolving infrastructures.
The Challenge of Non-Stationarity
The core technical difficulty in dynamic network defense is non-stationarity. Standard Reinforcement Learning (RL) agents tend to overfit to the specific indices or locations of nodes in a training environment. If a server moves from one IP to another, or a subnet is added, the agent's learned policy often becomes obsolete. GACD addresses this by focusing on learning the roles and relationships within a network rather than memorizing a fixed map. This ensures that the "semantics" of the network—such as which host is a gateway or an operational server—are preserved across different layouts.
The GACD Framework: Learning Structure and Smoothness
The GACD approach relies on three main pillars to achieve generalization:
- Graph-Based Representations: Instead of treating network data as flat vectors, GACD utilizes Graph Neural Networks (GNNs) and Graphormers (transformers for graphs). This allows the agent to process the network's inherent graph structure, understanding the roles of hosts regardless of their specific address or location.
- Optimal Transport (OT): This is the framework's "secret sauce." To bridge the gap between disparate network configurations and prevent "mode collapse," the researchers employ Semi-Discrete Optimal Transport (SDOT). This technique maps complex, discrete graph embeddings into a continuous, smooth latent space. By ensuring that similar network structures are positioned close together, the agent can effectively interpolate its defensive strategies for unseen layouts.
- Procedural Scenario Generation (PSG): To facilitate large-scale training, the authors developed a PSG capable of synthesizing thousands of unique network topologies based on the rules of the CAGE Challenge 2 (CC2) environment.
Key Results and Scalability
The researchers evaluated three model variants ($M_1$ through $M_3$), with the most successful variant ($M_3$) utilizing a Graphormer where the embedding model is pre-trained offline. The results demonstrate a significant leap in ACD capabilities:
- Superior Generalization: While traditional baseline models failed when tested on more than 16 topologies, GACD maintained high performance across 1,024 unique network layouts.
- Seamless Adaptation: In experiments where the network topology was changed mid-episode, GACD agents adapted seamlessly, whereas standard PPO agents saw their rewards plummet to the minimum possible value.
- Unprecedented Scaling: The framework successfully defended a massive network with 1,000 hosts across 10 subnets, a significant jump from the standard 13-host CC2 scenario.
Conclusion
GACD represents a paradigm shift from "memorized" defense to "generalized" policy. By combining graph-based learning with the smoothing properties of Optimal Transport, the framework provides a path toward autonomous agents that can protect the ever-changing networks of the real world. While training these robust policies requires significantly more computational time, the resulting adaptability and scalability are essential for practical deployment in modern enterprise environments.
Summary updated