Skip to main content
QUICK REVIEW

[Paper Review] A Layered Reference Model for Penetration Testing with Reinforcement Learning and Attack Graphs

Tyler Cody|arXiv (Cornell University)|Jun 14, 2022
Information and Cyber SecurityComputer Science4 citations
TL;DR

This paper proposes a layered reference model (LRM-RAG) to address the grounding problem in reinforcement learning (RL)-based penetration testing by integrating attack graphs with real networks through a systems engineering framework. The model enables real-time interaction, realistic adversary emulation, and adaptation to dynamic networks, improving reliability and practical deployment of RL-driven cyber defense systems.

ABSTRACT

This paper considers key challenges to using reinforcement learning (RL) with attack graphs to automate penetration testing in real-world applications from a systems perspective. RL approaches to automated penetration testing are actively being developed, but there is no consensus view on the representation of computer networks with which RL should be interacting. Moreover, there are significant open challenges to how those representations can be grounded to the real networks where RL solution methods are applied. This paper elaborates on representation and grounding using topic challenges of interacting with real networks in real-time, emulating realistic adversary behavior, and handling unstable, evolving networks. These challenges are both practical and mathematical, and they directly concern the reliability and dependability of penetration testing systems. This paper proposes a layered reference model to help organize related research and engineering efforts. The presented layered reference model contrasts traditional models of attack graph workflows because it is not scoped to a sequential, feed-forward generation and analysis process, but to broader aspects of lifecycle and continuous deployment. Researchers and practitioners can use the presented layered reference model as a first-principles outline to help orient the systems engineering of their penetration testing systems.

Motivation & Objective

  • Address the lack of consensus on network representation and grounding in RL-based penetration testing, which undermines system reliability and dependability.
  • Identify core challenges in real-time interaction with live networks, realistic adversary behavior modeling, and handling unstable or evolving network topologies.
  • Provide a systems-level framework to unify and guide research and engineering efforts in RL-driven penetration testing beyond traditional feed-forward attack graph workflows.
  • Enable more direct and robust grounding of RL agents to real networks by decoupling representation from exhaustive attack graph generation.
  • Support continuous deployment and lifecycle management of RL-based penetration testing systems in production environments.

Proposed method

  • Propose a layered reference model (LRM-RAG) that organizes penetration testing with RL and attack graphs across distinct abstraction layers: terrain, adversary, task, MDP, and actuation.
  • Frame RL interaction with attack graphs not as a sequential, feed-forward process but as a continuous, feedback-driven lifecycle involving two nested loops: one for agent learning and one for network adaptation.
  • Decouple attack graph generation from RL agent training by allowing agents to interact with dynamically updated, minimal representations of attack paths rather than exhaustive graphs.
  • Use Markov Decision Processes (MDPs) as the core formalism to model the RL agent’s decision-making, with states representing network configurations and actions representing exploit attempts.
  • Integrate network interface layers to translate RL actions into real-world penetration testing operations, ensuring direct grounding to live systems.
  • Enable transfer and meta-learning across network states to improve generalization and resilience in evolving or unstable network environments.

Experimental results

Research questions

  • RQ1How can RL agents be effectively grounded to real networks in real-time without relying on precomputed, exhaustive attack graphs?
  • RQ2What mechanisms enable realistic emulation of adversary behavior within RL-based penetration testing systems, especially under dynamic network conditions?
  • RQ3How can RL agents maintain reliable grounding when networks evolve rapidly, such as in SDN or IoT environments?
  • RQ4To what extent can attack graph generation be decoupled from RL training to improve efficiency and scalability?
  • RQ5What role do MDP formulation and representation choice play in ensuring the reliability and dependability of RL-driven penetration testing systems?

Key findings

  • Exhaustive and succinct attack graphs lead to a 'needle-in-the-haystack' problem in RL, increasing computational cost and violating the principle of solving specific problems directly.
  • RL agents do not need to explore all possible attack paths; instead, they should focus on discovering realistic subgraphs matching specific attack templates or adversary profiles.
  • Direct grounding of RL agents through real-time network interface layers is more reliable than relying on hand-engineered rewards or high-level abstractions.
  • The rate of network change can outpace MDP construction, leading to outdated representations and degraded agent performance unless dynamic, adaptive grounding is implemented.
  • Dynamic networks, such as SDNs and IoT systems, pose significant challenges to RL-based penetration testing due to rapid topology and configuration changes.
  • The layered reference model (LRM-RAG) enables better alignment between systems engineering, attack graph modeling, and RL agent design, supporting continuous deployment and adaptation.

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.