Crossing the Cyber Divide: Sim-to-Sim and Sim-to-Real Transfer for RL Agents
Abstract
Cyber attack agents are typically trained and evaluated within a single simulator, making it unclear whether learned policies transfer beyond the environments in which they were developed. This limitation hinders both deployment and fair comparison, as cyber simulators differ substantially in their state representations, observation models, and action spaces. In this paper, we study policy transfer across cyber environments and argue that simulator-to-simulator and simulator-to-real transfer can be viewed as instances of the same underlying alignment problem. We propose a framework that separates state alignment from action translation, enabling a policy trained in one environment to operate in another without retraining. We evaluate transfer across four cyber platforms, CyberBattleSim, NetSecGame, CyberWheel, and NASim, including emulated deployments in NASim. Our experiments show that zero-shot transfer is feasible, fully preserving source-policy performance in closely aligned environments and achieving 45.2% win rates when transferring policies whose source performance is 60.5%. In emulated virtual machine environments, transferred policies exhibit a Jensen-Shannon divergence of 0.085 from native policies, indicating strong behavioral similarity. Code and benchmarks are available at: https://anonymous.4open.science/r/RL-Transfer-between-env-4F47/.
Create a lesson
Metadata
- Categories
- cs.CR, cs.LG
- Comments
- 13 pages, 3 figures, 1st Workshop on Real-world AI Security and Engineering for Cybersecurity Systems (RAISE) 2026
Related papers
Intelligent Event-Safe Cyber-Physical Attack Detection and Localization in Critical Water Infrastructure: A Cross-Dataset Study of SWaT and WADI
Shared title terminologycs.CRVictor Kebande
Identity-Bound Governance Under Execution Uncertainty: An Accountability Proof Block for LLM Agent Persistent Halts, with Cryptographic Implementation and Cross-Model Calibration
Shared title terminologycs.CRMarcelo Fernandez
No One Architecture Fits All: A Cross-Environment Evaluation of Hierarchical Red Team Agents
Shared title terminologycs.CRAyan Javeed Shaikh, Arunesh Sinha, Nathaniel D. Bastian et al.
From Vendor-Neutral Request to Paid Backend: Procurement Integrity at the Commitment Boundary of AI Coding Agents
Shared title terminologycs.CRJinqian Zhang, Haojun Xia, Shujiang Wu et al.
AI Agents Enable Mass Profiling
Shared title terminologycs.CRDaniel Paleka, Simon Lermen, Guy Galun et al.
Onchain Labs: A Smart Account Primitive for Human and AI Agent Research Teams
Shared title terminologycs.CRPhillip Lee, Vladimir Demidov, Manuel Meinert et al.