Autonomous Penetration Testing using Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Penetration testing (pentesting) involves performing a controlled attack on a computer system in order to assess it's security. Although an effective method for testing security, pentesting requires highly skilled practitioners and currently there is a growing shortage of skilled cyber security professionals. One avenue for alleviating this problem is automate the pentesting process using artificial intelligence techniques. Current approaches to automated pentesting have relied on model-based planning, however the cyber security landscape is rapidly changing making maintaining up-to-date models of exploits a challenge. This project investigated the application of model-free Reinforcement Learning (RL) to automated pentesting. Model-free RL has the key advantage over model-based planning of not requiring a model of the environment, instead learning the best policy through interaction with the environment. We first designed and built a fast, low compute simulator for training and testing autonomous pentesting agents. We did this by framing pentesting as a Markov Decision Process with the known configuration of the network as states, the available scans and exploits as actions, the reward determined by the value of machines on the network. We then used this simulator to investigate the application of model-free RL to pentesting. We tested the standard Q-learning algorithm using both tabular and neural network based implementations. We found that within the simulated environment both tabular and neural network implementations were able to find optimal attack paths for a range of different network topologies and sizes without having a model of action behaviour. However, the implemented algorithms were only practical for smaller networks and numbers of actions. Further work is needed in developing scalable RL algorithms and testing these algorithms in larger and higher fidelity environments.
Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). First posted on arXiv 15 May 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 7; 2023: 6; 2024: 6; 2025: 5; 2026: 4.
33 papers.
Sort:
By area:
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
- 2021The Threat of Offensive AI to Organizationscited by 37
- 2023NASimEmu: Network Attack Simulator & Emulator for Training Agents Generalizing to Novel Scenarioscited by 20
- 2021Deep hierarchical reinforcement agents for automated penetration testingcited by 19
- 2023Automated Cyber Defence: A Reviewcited by 19
- 2023Reward Shaping for Happier Autonomous Cyber Security Agentscited by 19
- 2023Out of the Cage: How Stochastic Parrots Win in Cyber Security Environmentscited by 17
- 2021Using Cyber Terrain in Reinforcement Learning for Penetration Testingcited by 16
- 2021Crown Jewels Analysis using Reinforcement Learning with Attack Graphscited by 8
- 2022Discovering Exfiltration Paths Using Reinforcement Learning with Attack Graphscited by 8
- 2024A Survey of Large Language Models in Cybersecuritycited by 8
- 2022Behaviour-Diverse Automatic Penetration Testing: A Curiosity-Driven Multi-Objective Deep Reinforcement Learning Approachcited by 7
21 more
- 2023Deep Reinforcement Learning for Autonomous Cyber Defence: A Surveycited by 6
- 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Designcited by 6
- 2021Modelling Direct Messaging Networks with Multiple Recipients for Cyber Deceptioncited by 4
- 2024Mitigating Deep Reinforcement Learning Backdoors in the Neural Activation Spacecited by 4
- 2025Automated Penetration Testing with LLM Agents and Classical Planningcited by 4
- 2022Exposing Surveillance Detection Routes via Reinforcement Learning, Attack Graphs, and Cyber Terraincited by 3
- 2024Knowledge-Informed Auto-Penetration Testing Based on Reinforcement Learning with Reward Machinecited by 3
- 2022Deception for Cyber Defence: Challenges and Opportunitiescited by 2
- 2024The Best Defense is a Good Offense: Countering LLM-Powered Cyberattackscited by 2
- 2023Unified Emulation-Simulation Training Environment for Autonomous Cyber Agentscited by 1
- 2024Provably Efficient Long-Horizon Exploration in Monte Carlo Tree Search through State Occupancy Regularizationcited by 1
- 2025A Unified Modeling Framework for Automated Penetration Testingcited by 1
- 2025Reinforcement Learning for Automated Cybersecurity Penetration Testingcited by 1
- 2025Diverse Planning with Simulators via Linear Temporal Logiccited by 1
- 2026AEGIS: White-Box Attack Path Generation using LLMs and Training Effectiveness Evaluation for Large-Scale Cyber Defence Exercisescited by 1
- 2022GAIL-PT: A Generic Intelligent Penetration Testing Framework with Generative Adversarial Imitation Learningcited by 0
- 2022Tutorial on Course-of-Action (COA) Attack Search Methods in Computer Networkscited by 0
- 2022On the importance of data collection for training general goal-reaching policiescited by 0
- 2026Evolutionary Bilevel Reward Shaping for Generalization in Reinforcement Learningcited by 0
- 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMscited by 0
- 2026Efficient Nash Equilibrium Computation for Cybersecurity Gamescited by 0
- 2026Efficient Nash Equilibrium Computation for Cybersecurity Games16 Sep 2026
- 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMs16 Sep 2026
- 2026Evolutionary Bilevel Reward Shaping for Generalization in Reinforcement Learning15 Jun 2026
- 2026AEGIS: White-Box Attack Path Generation using LLMs and Training Effectiveness Evaluation for Large-Scale Cyber Defence Exercises30 Jan 2026
- 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Design16 Dec 2025
- 2025Automated Penetration Testing with LLM Agents and Classical Planning11 Dec 2025
- 2025Diverse Planning with Simulators via Linear Temporal Logic20 Oct 2025
- 2025Reinforcement Learning for Automated Cybersecurity Penetration Testing30 Jun 2025
- 2025A Unified Modeling Framework for Automated Penetration Testing17 Feb 2025
- 2024The Best Defense is a Good Offense: Countering LLM-Powered Cyberattacks20 Oct 2024
- 2024Mitigating Deep Reinforcement Learning Backdoors in the Neural Activation Space21 Jul 2024
- 2024Provably Efficient Long-Horizon Exploration in Monte Carlo Tree Search through State Occupancy Regularization7 Jul 2024
21 more
- 2024Knowledge-Informed Auto-Penetration Testing Based on Reinforcement Learning with Reward Machine24 May 2024
- 2024Large Language Models for Cyber Security: A Systematic Literature Review8 May 2024
- 2024A Survey of Large Language Models in Cybersecurity26 Feb 2024
- 2023Reward Shaping for Happier Autonomous Cyber Security Agents20 Oct 2023
- 2023Deep Reinforcement Learning for Autonomous Cyber Defence: A Survey11 Oct 2023
- 2023Out of the Cage: How Stochastic Parrots Win in Cyber Security Environments23 Aug 2023
- 2023NASimEmu: Network Attack Simulator & Emulator for Training Agents Generalizing to Novel Scenarios26 May 2023
- 2023Unified Emulation-Simulation Training Environment for Autonomous Cyber Agents3 Apr 2023
- 2023Automated Cyber Defence: A Review8 Mar 2023
- 2022On the importance of data collection for training general goal-reaching policies7 Nov 2022
- 2022Exposing Surveillance Detection Routes via Reinforcement Learning, Attack Graphs, and Cyber Terrain6 Nov 2022
- 2022Deception for Cyber Defence: Challenges and Opportunities15 Aug 2022
- 2022Tutorial on Course-of-Action (COA) Attack Search Methods in Computer Networks27 May 2022
- 2022GAIL-PT: A Generic Intelligent Penetration Testing Framework with Generative Adversarial Imitation Learning5 Apr 2022
- 2022Behaviour-Diverse Automatic Penetration Testing: A Curiosity-Driven Multi-Objective Deep Reinforcement Learning Approach22 Feb 2022
- 2022Discovering Exfiltration Paths Using Reinforcement Learning with Attack Graphs28 Jan 2022
- 2021Modelling Direct Messaging Networks with Multiple Recipients for Cyber Deception21 Nov 2021
- 2021Deep hierarchical reinforcement agents for automated penetration testing14 Sep 2021
- 2021Crown Jewels Analysis using Reinforcement Learning with Attack Graphs20 Aug 2021
- 2021Using Cyber Terrain in Reinforcement Learning for Penetration Testing16 Aug 2021
- 2021The Threat of Offensive AI to Organizations30 Jun 2021
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
- 2021The Threat of Offensive AI to Organizationscited by 37
- 2023NASimEmu: Network Attack Simulator & Emulator for Training Agents Generalizing to Novel Scenarioscited by 20
- 2021Deep hierarchical reinforcement agents for automated penetration testingcited by 19
- 2023Automated Cyber Defence: A Reviewcited by 19
- 2023Reward Shaping for Happier Autonomous Cyber Security Agentscited by 19
- 2023Out of the Cage: How Stochastic Parrots Win in Cyber Security Environmentscited by 17
- 2021Using Cyber Terrain in Reinforcement Learning for Penetration Testingcited by 16
- 2021Crown Jewels Analysis using Reinforcement Learning with Attack Graphscited by 8
- 2022Discovering Exfiltration Paths Using Reinforcement Learning with Attack Graphscited by 8
- 2024A Survey of Large Language Models in Cybersecuritycited by 8
- 2022Behaviour-Diverse Automatic Penetration Testing: A Curiosity-Driven Multi-Objective Deep Reinforcement Learning Approachcited by 7
12 most cited of 32 All 32 (JSON)
- 2026Efficient Nash Equilibrium Computation for Cybersecurity Games16 Sep 2026
- 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMs16 Sep 2026
- 2026Evolutionary Bilevel Reward Shaping for Generalization in Reinforcement Learning15 Jun 2026
- 2026AEGIS: White-Box Attack Path Generation using LLMs and Training Effectiveness Evaluation for Large-Scale Cyber Defence Exercises30 Jan 2026
- 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Design16 Dec 2025
- 2025Diverse Planning with Simulators via Linear Temporal Logic20 Oct 2025
- 2025Reinforcement Learning for Automated Cybersecurity Penetration Testing30 Jun 2025
- 2025A Unified Modeling Framework for Automated Penetration Testing17 Feb 2025
- 2024The Best Defense is a Good Offense: Countering LLM-Powered Cyberattacks20 Oct 2024
- 2024Mitigating Deep Reinforcement Learning Backdoors in the Neural Activation Space21 Jul 2024
- 2024Provably Efficient Long-Horizon Exploration in Monte Carlo Tree Search through State Occupancy Regularization7 Jul 2024
- 2024Knowledge-Informed Auto-Penetration Testing Based on Reinforcement Learning with Reward Machine24 May 2024
12 newest of 32 All 32 (JSON)