Towards Hierarchical Cyber Defense with Large Language Models: From Planning to Execution
Abstract
An autonomous cyber defender trained with reinforcement learning (RL) is typically tied to the network on which it was trained, limiting its ability to generalize as network scale changes. Hierarchical RL reduces decision complexity by separating strategic targeting from tactical execution, but it does not eliminate this retraining dependence. We investigate whether frozen, zero-shot large language models (LLMs) can provide retraining-free control in hierarchical cyber defense and how performance changes as LLM control is extended from planning to execution. We formulate a controller-agnostic planner-executor hierarchy in which the planner selects a subnet to defend over a fixed horizon and the executor selects defensive actions within that subnet. Using the high fidelity Cyberwheel environment, with its built-in automated red team agent mapped to the MITRE ATT&CK framework, we compare RL+RL, LLM+RL, and LLM+LLM configurations using six models ranging from 3B to 70B parameters, including two cybersecurity-specialized models, across small, medium, and large networks. Replacing only the planner with an LLM yields limited gains as network size increases. In contrast, extending LLM control to execution produces notable improvements for sufficiently capable models. For instance, a frozen general purpose 70B model holds successful lateral movement to approximately 1% of steps and attacker impact near zero across all three network scales using the same model weights, while the RL baseline is retrained for each scale. Our results show that sufficiently capable frozen LLMs can maintain strong defensive performance across the evaluated network scales without task-specific retraining, while also indicating that strong tactical execution is important to realizing the benefits of LLM-based control.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
Related papers
Toward Secure AI at the Edge: Threats, Defenses, and Open Research Challenges
Shared title terminologycs.CRSean Oesch, Jack Hutchins, Samuel Hildebrand et al.
H-CRSPV: Preventing Semantic Omission in Late-Bound Large Language Model Releases
Shared title terminologycs.CRWeijie Miao, Henry Hong-Ning Dai, Ming Li
AutoDP-LLM: Automating Data Pre-processing for Intrusion Detection Systems using Large Language Models
Shared title terminologycs.CRBao-Phong Nguyen, Gia-Khanh Pham, Thai-Duong Do et al.
Bounded Reasoning: Cognitive Hierarchy in Human-versus-AI Cyber Defense
Shared title terminologycs.CRZahra Aref, Sheng Wei, Narayan B. Mandayam
Forecasting Cybersecurity Incidents Using Geopolitical Data and Large Language Models
Shared title terminologycs.CRMark Fesenko, Abdullah Garra, Yaniv Harel et al.
Beware EviLLM: Enabling Vulnerability Injection via Large Language Models
Shared title terminologycs.CRZeezoo Ryu, Simon Chung, Muhammad Faraz Karim et al.