DeepStage: Learning Autonomous Defense Policies Against Multi-Stage APT Campaigns
Organizations: Chair of Communication Networks, Technische Universität Chemnitz, 09126 Chemnitz, Germany · Department of Information Assurance, FPT University, Da Nang 50509, Vietnam
Abstract
This paper presents DeepStage, a deep reinforcement learning (DRL) framework for adaptive and stage-aware defense against Advanced Persistent Threats (APTs). The enterprise environment is formulated as a partially observable Markov decision process (POMDP), in which host provenance and network telemetry are fused into unified provenance graphs. Building on our prior work (StageFinder), DeepStage employs a graph neural network encoder and an LSTM-based stage estimator to infer probabilistic attacker stages aligned with the MITRE ATT&CK framework. The resulting stage beliefs, together with graph embeddings, are used to guide a hierarchical Proximal Policy Optimization (PPO) agent that selects defense actions across monitoring, access control, containment, and remediation. Experiments in a realistic enterprise testbed with CALDERA-driven APT playbooks show that DeepStage achieves an average F1-score of 0.887 and a mitigation success rate of 84.7%, outperforming a risk-aware DRL baseline by 21.8% in F1-score and 16.2% in mitigation success. The results demonstrate effective stage-aware and cost-efficient autonomous cyber defense.
Figures & tables
| Meta-policy | Sub-policy | Deployment in Testbed | Cost |
| : Maintain baseline monitoring | Keep auditd.conf , CamFlow, and Zeek agent in baseline mode | 0.01 | |
| : Increase host logging level | Modify auditd.conf , CamFlow, and Zeek agent policies to capture process and socket events | 0.05 | |
| : Activate Deep Packet Inspection | Temporarily enable Zeek full packet capture on target subnets | 0.10 | |
| : Memory/process snapshot | Use volatility or psrecord via management API to collect runtime memory dump | 0.20 | |
| : Deploy honeypot redirect | Deploy Cowrie SSH honeypot or redirect via iptables DNAT | 0.25 | |
| : Log enrichment with threat intel | Query local MISP feed and annotate alerts with TTP tags in provenance database | 0.10 |
| Parameter | Value / Range | Description |
|---|---|---|
| Actor network | 3-layer MLP | Input: fused graph embedding ( ) + stage belief ( ); Output: probability over meta/sub-policy actions. |
| Critic network | 3-layer MLP | Estimates value for baseline; shared first layer with actor. |
| Optimizer | Adam ( , ) | Adaptive optimization for actor and critic updates. |
| Learning rate ( ) | (decay 0.99 per epoch) | Stable step size for PPO gradient updates. |
| Discount factor ( ) | Long-term credit assignment for delayed APT mitigation rewards. | |
| GAE parameter ( ) | Balances bias and variance in advantage estimation. |
| Method | Recon | InitAcc | PrivEsc | LatMov | C2 | Exfil | Avg-F1 | Mitigation Success (%) |
|---|---|---|---|---|---|---|---|---|
| Risk-Aware DRL | 0.75 | 0.73 | 0.70 | 0.71 | 0.76 | 0.72 | 0.728 | 68.5 |
| DeepStage-Unaware | 0.82 | 0.79 | 0.76 | 0.78 | 0.83 | 0.80 | 0.797 | 76.7 |
| DeepStage | 0.91 | 0.88 | 0.85 | 0.87 | 0.92 | 0.89 | 0.887 | 84.7 |
Autonomous Cyber Defense
Autonomous cyber defense uses AI agents to detect, investigate, and contain attacks while balancing operational safety, latency, and human oversight.
See all 69 papers