Skip to main content
QUICK REVIEW

[Paper Review] Training Automated Defense Strategies Using Graph-based Cyber Attack Simulations

Jakob Nyberg, Pontus Johnson|arXiv (Cornell University)|Apr 17, 2023
Information and Cyber SecurityComputer Science3 citations
TL;DR

This paper proposes a reinforcement learning (RL)-based automated cyber defense agent that uses graph-based attack simulations to learn optimal defense strategies. Trained on Meta Attack Language (MAL)-modeled attack graphs with imperfect intrusion detection system (IDS) alerts, the agent outperforms heuristic policies and generalizes across attacker strategies, though performance degrades with larger attack graphs.

ABSTRACT

We implemented and evaluated an automated cyber defense agent. The agent takes security alerts as input and uses reinforcement learning to learn a policy for executing predefined defensive measures. The defender policies were trained in an environment intended to simulate a cyber attack. In the simulation, an attacking agent attempts to capture targets in the environment, while the defender attempts to protect them by enabling defenses. The environment was modeled using attack graphs based on the Meta Attack Language language. We assumed that defensive measures have downtime costs, meaning that the defender agent was penalized for using them. We also assumed that the environment was equipped with an imperfect intrusion detection system that occasionally produces erroneous alerts based on the environment state. To evaluate the setup, we trained the defensive agent with different volumes of intrusion detection system noise. We also trained agents with different attacker strategies and graph sizes. In experiments, the defensive agent using policies trained with reinforcement learning outperformed agents using heuristic policies. Experiments also demonstrated that the policies could generalize across different attacker strategies. However, the performance of the learned policies decreased as the attack graphs increased in size.

Motivation & Objective

  • To develop an automated cyber defense agent that learns optimal defense strategies using reinforcement learning in a simulated environment.
  • To evaluate the agent's performance under varying levels of IDS noise, simulating real-world detection inaccuracies.
  • To assess the generalization capability of RL-trained policies across different attacker strategies and attack graph sizes.
  • To investigate the feasibility of transferring policies from simulation to real-world deployment (sim-to-real transfer).

Proposed method

  • Model cyberattacks using attack graphs generated from the Meta Attack Language (MAL) to represent system vulnerabilities and attack paths.
  • Simulate a defender-agent interaction where the defender uses predefined defensive measures (e.g., enabling firewalls) based on IDS alerts.
  • Train a deep Q-network (DQN) or PPO-based policy using reinforcement learning with sparse rewards based on target protection and defense downtime costs.
  • Incorporate imperfect IDS behavior by injecting false positives and missed alerts to simulate real-world detection uncertainty.
  • Represent the environment state using node-level features (e.g., exploitability, system state) without explicit graph topology input.
  • Use a fixed set of hyperparameters across different graph sizes to evaluate scalability and policy robustness.

Experimental results

Research questions

  • RQ1Can an RL-based defender agent outperform heuristic defense policies under realistic IDS noise conditions?
  • RQ2How well do RL-trained policies generalize to unseen attacker strategies not present during training?
  • RQ3How does increasing the size of the attack graph affect the performance and training stability of the RL policy?
  • RQ4What is the impact of imperfect IDS signals (false positives and missed alerts) on the learned defense policy’s effectiveness?
  • RQ5To what extent can a policy trained in simulation be successfully transferred to real-world network environments?

Key findings

  • The RL-based defender agent outperformed heuristic policies in protecting targets, especially under high IDS noise, demonstrating improved resilience to false and missing alerts.
  • The RL policy generalized effectively across different attacker strategies, including previously unseen ones, indicating robustness to adversarial behavior variation.
  • Performance of the RL policy degraded as attack graph size increased, with longer episode lengths and higher stochasticity in action selection reducing policy reliability.
  • The policy was not generalizable across different graph topologies due to the lack of structural invariance in the state representation, which depends on fixed graph structure.
  • The use of a single set of hyperparameters across graph sizes suggests limited adaptability, and future work may require graph neural networks for structural generalization.
  • The sim-to-real gap remains a critical challenge, with performance likely to deteriorate when transferring policies trained in simulation to real-world alert patterns.

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.