Introduction
Autonomous Cyber Operations (ACO) are increasingly critical as cyberattacks evolve to speeds that exceed human defensive capabilities. However, developing artificial intelligence for cybersecurity is hindered by the "reality gap." Training agents in pure simulations often leads to the exploitation of simulator-specific artifacts, while training on real hardware (emulation) is prohibitively slow for reinforcement learning (RL) algorithms requiring millions of iterations.
The CybORG Framework
The Cyber Operations Research Gym (CybORG) is an OpenAI Gym-compatible toolkit designed to bridge this gap. It employs a modular, two-tier architecture:
- The Simulator: A high-speed environment modeling the network as a Finite State Machine (FSM). It allows for rapid iteration by defining actions as state transitions.
- The Emulator: A high-fidelity environment using Amazon Web Services (AWS) to deploy actual Virtual Machines (VMs). Actions are mapped to real-world tools such as Metasploit and Velociraptor.
By defining actions for both tiers, CybORG allows agents to be trained in simulation and validated in emulation without code modification.
Comparative Analysis
CybORG distinguishes itself from existing platforms by supporting both simulation and emulation while being specifically tailored for RL research.
As shown in the comparison above, CybORG is unique in its combination of scalability, flexibility, and support for adversarial operations within an RL-centric design.
Experimental Methodology
The researchers evaluated CybORG using a benchmark scenario involving an Attacker (Kali Linux), a Gateway (Ubuntu), and an Internal Host (Windows 2008). The environment included realistic vulnerabilities like weak SSH credentials and the "Eternal Blue" exploit. Agents were trained using a Deep Q-Network (DQN) with a Long Short-Term Memory (LSTM) module to handle the partially observable nature of network states.
Results and Transferability
The study trained 21 independent RL agents in the simulator for 2,500 iterations. Upon transfer to the high-fidelity emulator, these agents achieved a 66% overall success rate.
The results demonstrate significant consistency; nearly half of the agents succeeded in every single emulator run (10/10). Successful agents typically gained "System" access on the target host in just 7 to 10 steps. However, failures highlighted the reality gap—for instance, agents occasionally failed to use necessary routing commands that were abstracted away in the simpler simulation.
Conclusion
CybORG provides a robust foundation for developing autonomous cyber agents. While currently focused on Red Team operations, future work will expand to Blue Team defense, deception-based scenarios (e.g., honeypots), and further refining the simulator to minimize the reality gap.
Summary updated