CyberWorld: World Models for Sample-Efficient Autonomous Cyber Defense

Ryozo Masukawa, Sanggeon Yun, Raheeb Hassan, Hyunwoo Oh, SungHeon Jeong, Mohsen ImaniarXiv 2026

TL;DR

CyberWorld introduces a Dreamer-style "world model" framework to autonomous cyber defense, allowing agents to learn predictive network dynamics and train defensive policies in "imagination." By shifting from reactive model-free learning to proactive dynamics modeling, CyberWorld achieves effective defense with 100x to 1000x fewer environment interactions than standard Reinforcement Learning (RL) methods like PPO.

What Problem Does This Paper Address?

Autonomous cyber defense requires agents to make complex, sequential decisions to protect networks under partial observability. Currently, the field is dominated by model-free RL, where agents learn purely through trial and error in a live environment.

This approach has two major flaws:

  1. Sample Inefficiency: It requires millions of interactions to learn even basic defensive behaviors, which is impractical for real-world networks where every "interaction" might involve slow logs or risky system changes.
  2. Fragility: Model-free agents often overfit to a specific attacker's strategy. If the adversary changes tactics, the agent’s reactive policy often collapses because it doesn't understand the underlying "physics" (protocols, topology, and services) of the network it is defending.

CyberWorld asks: Can we build a "world model" for cyberspace that learns these underlying dynamics, allowing an agent to "imagine" consequences before acting?

Methods

The authors adapt the DreamerV3 framework—originally successful in robotics and Atari games—to the discrete and relational world of cybersecurity.

The Architecture

As shown in the architecture diagram below, CyberWorld processes heterogeneous telemetry through a multi-stage pipeline:

Figure 2: Architecture of CyberWorld. Multimodal telemetry and structural observations are mapped into a unified latent space via cross-attention pooling, driving an RSSM that tracks recurrent belief dynamics and trains defensive behavior purely within imagined rollouts.
  1. Input Modalities: The system can ingest per-host vectors, host graphs (using GNNs), natural language logs (via BERT/Qwen), and even GUI frames.
  2. Cross-Modal Fusion: These inputs are fused into a single latent embedding using cross-attention.
  3. Recurrent State-Space Model (RSSM): This is the "brain" of the world model. It maintains a latent state that predicts how the network will evolve based on the defender's actions and the attacker's likely moves.
  4. Imagination: Instead of training on the live simulator, the agent's policy is trained entirely on trajectories "imagined" by the RSSM.

Cyber-Specific Innovations

The authors introduced two critical modifications to standard world models:

  • Change-Weighted Loss: In networks, most host attributes stay the same for long periods. Standard loss functions get "lazy" by predicting no change. CyberWorld up-weights the loss for state elements that actually change.
  • Balanced Reward Loss: Cyber defense rewards are sparse (e.g., a massive penalty for a successful breach). The authors balanced the training batches to ensure the model doesn't ignore these rare but catastrophic events.

Datasets

The researchers used CyberWheel, a high-fidelity simulation environment that models enterprise networks with subnets, firewalls, and decoys. They evaluated the agent against four scoreable scripted attacker strategies based on MITRE ATT&CK and Atomic Red Team frameworks, including:

  • BFSServerDowntime
  • ServerDowntime
  • Exfiltration
  • BFSExfiltration (a topology-dependent attack)

The experiments scaled from small 15-host networks to larger 100-host enterprise environments.

Key Insights and Ideas

  • Mechanism vs. Strategy: The paper formalizes the idea that while an attacker's strategy changes, the network's mechanisms (how protocols work, how decoys react) are invariant. By learning these mechanisms, the world model remains valid even when the adversary shifts tactics.
  • The Power of Graphs: While simple vector representations work for many attacks, explicit graph-based representations are essential when an attacker's progress depends on network topology (e.g., lateral movement).
  • Constant Episode Scaling: A surprising finding was that the number of episodes required to reach effective defense remained roughly constant as the network grew from 15 to 100 hosts. This suggests that world models capture fundamental dynamics that scale more gracefully than model-free approaches.

Key Results

The performance gains were dramatic, as illustrated in the comparison between CyberWorld and traditional RL:

Figure 1: CyberWorld learns predictive cyber dynamics to enable more sample-efficient autonomous defense.
  • Sample Efficiency: The graph-based CyberWorld reached the performance control within 3.6k–15.8k steps. In contrast, model-free PPO required 2.3M–3.1M steps—a difference of two to three orders of magnitude.
  • Robustness: On the BFSExfiltration task, which requires understanding network structure, the graph-based variant was the only one to consistently succeed across all seeds and network scales.
  • Stability: CyberWorld agents showed significantly higher "post-crossing" stability. While model-free baselines often suffered from catastrophic forgetting or policy collapse after initial success, the world-model agents maintained steady defensive performance.

Limitations and Future Work

  • Computational Overhead: While sample-efficient in terms of environment steps, the text and multimodal variants are computationally expensive to run due to the large language models (LLMs) used in the encoders.
  • Scripted Adversaries: The current evaluation uses scripted attackers. Testing against "agentic" adversaries that can adapt to the defender in real-time is a necessary next step.
  • Model Backbone: The study focused on RSSM-based models. Future work could explore using Transformers or Diffusion models as the underlying world model architecture to see if they offer better long-horizon predictions.

Summary updated

BibTeX
@misc{masukawa2026cyberworld,
  author = {Ryozo Masukawa and Sanggeon Yun and Raheeb Hassan and Hyunwoo Oh and SungHeon Jeong and Mohsen Imani},
  title = {{CyberWorld: World Models for Sample-Efficient Autonomous Cyber Defense}},
  year = {2026},
  eprint = {2609.31893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.31893},
}
Figure