SubstratumGraphEnv: Reinforcement Learning Environment (RLE) for Modeling System Attack Paths
Organizations: University of Maryland, Baltimore County · CrowdStrike
Abstract
Automating network security analysis, particularly the identification of potential attack paths, presents significant challenges. Due in part to the sequential, interconnected, and evolutionary nature of system events which most artificial intelligence (AI) techniques struggle to model effectively. This paper proposes a Reinforcement Learning (RL) environment generation framework that simulates the sequence of processes executed on a Windows operating system, enabling dynamic modeling of malicious processes on a system. This methodology models operating system state and transitions using a graph representation. This graph is derived from open-source System Monitor (Sysmon) logs. To address the variety in system event types, fields, and log formats, a mechanism was developed to capture and model parent-child processes from Sysmon logs. A Gymnasium environment (SubstratumGraphEnv) was constructed to establish the perceptible basis for an RL environment, and a customized PyTorch interface was also built (SubstratumBridge) to translate Gymnasium graphs into Deep Reinforcement Learning (DRL) observations and discrete actions. Graph Convolutional Networks (GCNs) concretize the graph's local and global state, which feed the distinct policy and critic heads of an Advantage Actor-Critic (A2C) model. This work's central contribution lies in the design of a novel deep graphical RL environment that automates translation of sequential user and system events, furnishing crucial context for cybersecurity analysis. This work provides a foundation for future research into shaping training parameters and advanced reward shaping, while also offering insight into which system events attributes are critical to training autonomous RL agents.
Figures & tables
| Cerberus Traces | BRAWL | ||
| Key Degree (k) | Average Nearest Neighbor Degree ( ) | Key Degree (k) | Average Nearest Neighbor Degree ( ) |
|---|---|---|---|
| 1 | 487.94 | 1 | 0.10 |
| 2 | 103.11 | 2 | 0.77 |
| 3 | 152.66 | 3 | 0.46 |
| 4 | 55.98 | 4 | 0.67 |
| 15 | 63.08 | 5 | 0.34 |
| Process/Node Name | In-Degree Centrality Value | Dataset |
| conhost | 0.13600 | BRAWL |
| Cmd | 0.06800 | BRAWL |
| Powershell | 0.05800 | BRAWL |
| Reg | 0.05800 | BRAWL |
| Net | 0.04900 | BRAWL |
| WMIC | 0.04900 | BRAWL |
| BRAWL | Cerberus | |
| Avg Reward (mean) | -18.42 | -4.66 |
| Avg Segment (std) | 63.83 | 0.76 |
| Avg Policy Loss (mean) | 0.09 | 0 |
| Avg Policy Loss (std) | 26.42 | 0 |
| Avg Value Loss (mean) | 1.21E+11 | 4.58E+08 |
| Avg Value Loss (std) | 1.01E+13 | 6.87E+08 |
Reinforcement Learning
Reinforcement learning studies how agents learn sequential decisions from rewards and interaction, balancing exploration, performance, safety, and adaptation.
See all 1,717 papers