Skip to main content
QUICK REVIEW

[Paper Review] CyGIL: A Cyber Gym for Training Autonomous Agents over Emulated Network Systems

Li Li, Raed Fayad|arXiv (Cornell University)|Sep 7, 2021
Reinforcement Learning in RoboticsComputer Science10 references21 citations
TL;DR

CyGIL is an emulated reinforcement learning (RL) environment for training autonomous cyber agents in realistic networked systems, leveraging the MITRE ATT&CK framework and open-source tools to enable high-fidelity, stateless training. It supports both red and blue team agent training with configurable attack and defense scenarios, achieving DQN agent performance of 90–92 cumulative rewards in complex attack games despite variable action success rates and high latency.

ABSTRACT

Given the success of reinforcement learning (RL) in various domains, it is promising to explore the application of its methods to the development of intelligent and autonomous cyber agents. Enabling this development requires a representative RL training environment. To that end, this work presents CyGIL: an experimental testbed of an emulated RL training environment for network cyber operations. CyGIL uses a stateless environment architecture and incorporates the MITRE ATT&CK framework to establish a high fidelity training environment, while presenting a sufficiently abstracted interface to enable RL training. Its comprehensive action space and flexible game design allow the agent training to focus on particular advanced persistent threat (APT) profiles, and to incorporate a broad range of potential threats and vulnerabilities. By striking a balance between fidelity and simplicity, it aims to leverage state of the art RL algorithms for application to real-world cyber defence.

Motivation & Objective

  • To address the lack of high-fidelity, scalable RL training environments for autonomous cyber agents in realistic networked systems.
  • To reduce the gap between simulated RL environments and real-world cyber operations by using network emulation instead of simulation.
  • To enable training of DRL agents on representative, complex attack and defense scenarios using real network behavior and variable action success rates.
  • To support both red and blue team agent training through a modular, extensible architecture compliant with OpenAI Gym standards.
  • To improve training efficiency and model generalization by enabling multi-agent, competitive training in a realistic cyber operations environment.

Proposed method

  • CyGIL uses a stateless environment architecture built on open-source network and cyber operations tools to emulate real network behavior and support RL training.
  • It integrates the MITRE ATT&CK framework to define a comprehensive action space covering enterprise adversary TTPs for red team operations.
  • The environment supports configurable game scenarios that focus on specific APT profiles or broad threat coverage, enabling targeted or generalist agent training.
  • Action execution is performed in real time on emulated virtual machines, with wall-clock timing reflecting real network delays and variable success probabilities.
  • The system is designed to be compatible with all SOTA RL/DRL libraries via the OpenAI Gym interface, enabling plug-and-play use of algorithms like DQN and PPO.
  • Hardware optimization, including VxRail hyperconverged infrastructure, is being explored to reduce action execution and environment reset latency.

Experimental results

Research questions

  • RQ1How can an emulated RL environment be designed to balance high fidelity with scalability for training autonomous cyber agents?
  • RQ2To what extent can DRL agents learn effective, optimized attack sequences in a realistic network environment with variable action success rates?
  • RQ3How does the latency of real network emulation affect DRL training efficiency and policy convergence?
  • RQ4Can a unified environment support both red and blue team agent training in a competitive, multi-agent setting?
  • RQ5What architectural and implementation choices enable efficient integration of SOTA RL algorithms with real network emulation?

Key findings

  • CyGIL successfully enables DRL agents to learn optimized attack sequences in a realistic network environment, achieving cumulative rewards of 90–92 in Game 2 using the DQN algorithm.
  • The training process in Game 2, which involves complex lateral movement and privilege escalation, required 20–30 minutes per episode due to high action execution latency and network complexity.
  • Average action execution time ranged from under 1 second in Game 1 to up to 120 seconds in Game 2, primarily due to VM-based network emulation and beacon propagation delays.
  • Environment reset times were 3 seconds in Game 1 and up to 40 seconds in Game 2, contributing significantly to episode duration and training time.
  • The agent learned to select optimal action sequences, such as actions 3, 4, 7, and 13, to achieve lateral movement and domain admin access on the Active Directory server.
  • The high-fidelity emulation environment, while slowing training, improved model realism and applicability to real-world cyber operations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.