How cage-challenge/cage-challenge-4 works
CybORG is a cyber-operations simulation gym for developing and evaluating autonomous defensive agents. A scenario generator creates an enterprise network and its agent roster; agents choose actions through the environment, the simulator applies them to shared network state, and observations and rewards support the next decision. The graph also shows red-team attack behavior, green-user activity, blue defensive capabilities, and agent wrappers. Several links are supported only by the README or source-index references; unsampled implementations and their internal call paths are not inferred.
Main entry points: SimulationController.py Turn controller · State.py Simulation state · EnterpriseScenarioGenerator.py Enterprise scenario · ExploitRemoteService.py Abstract actions
Components 18
Environment API
- Gym environment
CybORG/env.py - Evaluation runner
CybORG/Evaluation/evaluation.py
Scenarios and Agents
- Enterprise scenario
CybORG/Simulator/Scenarios/EnterpriseScenarioGenerator.py - Scenario config
CybORG/Shared/Scenario.py - Agent strategies
CybORG/Agents/SimpleAgents/FiniteStateRedAgent.py - Green user agent
CybORG/Agents/SimpleAgents/EnterpriseGreenAgent.py - Agent wrappers
CybORG/Agents/Wrappers/BlueFixedActionWrapper.py
Simulation Runtime
- Turn controller
CybORG/Simulator/SimulationController.py - Action dispatch
CybORG/Shared/ActionHandler.py - Abstract actions
CybORG/Simulator/Actions/AbstractActions/ExploitRemoteService.py - Concrete exploits
CybORG/Simulator/Actions/ConcreteActions/ExploitActions/ExploitAction.py - Green service access
CybORG/Simulator/Actions/GreenActions/GreenAccessService.py
Network Domain
- Simulation state
CybORG/Simulator/State.py - Hosts and services
CybORG/Simulator/Host.py - Agent sessions
CybORG/Shared/Session.py - Observations
CybORG/Shared/Observation.py - Reward calculation
CybORG/Shared/RewardCalculator.py
Other components
- Agent developer
Connections 19
- Agent developer → Gym environment: uses
- Gym environment → Turn controller: delegates
CybORG/env.py - Turn controller → Enterprise scenario: creates scenario
CybORG/Simulator/SimulationController.py - Enterprise scenario → Scenario config: builds
CybORG/Simulator/Scenarios/EnterpriseScenarioGenerator.py - Enterprise scenario → Agent strategies: assigns agents
CybORG/Simulator/Scenarios/EnterpriseScenarioGenerator.py - Enterprise scenario → Green user agent: assigns agents
CybORG/Simulator/Scenarios/EnterpriseScenarioGenerator.py - Agent strategies → Abstract actions: selects actions
CybORG/Agents/SimpleAgents/FiniteStateRedAgent.py - Turn controller → Action dispatch: dispatches
CybORG/Simulator/SimulationController.py - Action dispatch → Abstract actions: handles actions
CybORG/Shared/ActionHandler.py - Abstract actions → Concrete exploits: selects exploit
CybORG/Simulator/Actions/AbstractActions/ExploitRemoteService.py - Abstract actions → Simulation state: executes on
CybORG/Simulator/Actions/AbstractActions/ExploitRemoteService.py - Green service access → Simulation state: executes on
CybORG/Simulator/Actions/GreenActions/GreenAccessService.py - Turn controller → Simulation state: updates
CybORG/Simulator/SimulationController.py - Simulation state → Hosts and services: manages
CybORG/Simulator/State.py - Simulation state → Agent sessions: tracks
CybORG/Simulator/State.py - Turn controller → Observations: filters state
CybORG/Simulator/SimulationController.py - Turn controller → Reward calculation: calculates
CybORG/Simulator/SimulationController.py - Agent wrappers → Gym environment: wraps
CybORG/Agents/Wrappers/BlueFixedActionWrapper.py - Evaluation runner → Gym environment: evaluates
CybORG/Evaluation/evaluation.py