mlsanityData to 7 Oct 2026

Autonomous Penetration Testing using Reinforcement Learning

arXiv 1905.05965 ↗First posted 15 May 2019cs.CR cs.AI cs.LGcited by 33

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 5; 2022: 7; 2023: 6; 2024: 6; 2025: 5; 2026: 4.

33 papers.

Sort:

By area:

  1. 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
  2. 2021The Threat of Offensive AI to Organizationscited by 37
  3. 2023NASimEmu: Network Attack Simulator & Emulator for Training Agents Generalizing to Novel Scenarioscited by 20
  4. 2021Deep hierarchical reinforcement agents for automated penetration testingcited by 19
  5. 2023Automated Cyber Defence: A Reviewcited by 19
  6. 2023Reward Shaping for Happier Autonomous Cyber Security Agentscited by 19
  7. 2023Out of the Cage: How Stochastic Parrots Win in Cyber Security Environmentscited by 17
  8. 2021Using Cyber Terrain in Reinforcement Learning for Penetration Testingcited by 16
  9. 2021Crown Jewels Analysis using Reinforcement Learning with Attack Graphscited by 8
  10. 2022Discovering Exfiltration Paths Using Reinforcement Learning with Attack Graphscited by 8
  11. 2024A Survey of Large Language Models in Cybersecuritycited by 8
  12. 2022Behaviour-Diverse Automatic Penetration Testing: A Curiosity-Driven Multi-Objective Deep Reinforcement Learning Approachcited by 7
21 more
  1. 2023Deep Reinforcement Learning for Autonomous Cyber Defence: A Surveycited by 6
  2. 2025PentestEval: Benchmarking LLM-based Penetration Testing with Modular and Stage-Level Designcited by 6
  3. 2021Modelling Direct Messaging Networks with Multiple Recipients for Cyber Deceptioncited by 4
  4. 2024Mitigating Deep Reinforcement Learning Backdoors in the Neural Activation Spacecited by 4
  5. 2025Automated Penetration Testing with LLM Agents and Classical Planningcited by 4
  6. 2022Exposing Surveillance Detection Routes via Reinforcement Learning, Attack Graphs, and Cyber Terraincited by 3
  7. 2024Knowledge-Informed Auto-Penetration Testing Based on Reinforcement Learning with Reward Machinecited by 3
  8. 2022Deception for Cyber Defence: Challenges and Opportunitiescited by 2
  9. 2024The Best Defense is a Good Offense: Countering LLM-Powered Cyberattackscited by 2
  10. 2023Unified Emulation-Simulation Training Environment for Autonomous Cyber Agentscited by 1
  11. 2024Provably Efficient Long-Horizon Exploration in Monte Carlo Tree Search through State Occupancy Regularizationcited by 1
  12. 2025A Unified Modeling Framework for Automated Penetration Testingcited by 1
  13. 2025Reinforcement Learning for Automated Cybersecurity Penetration Testingcited by 1
  14. 2025Diverse Planning with Simulators via Linear Temporal Logiccited by 1
  15. 2026AEGIS: White-Box Attack Path Generation using LLMs and Training Effectiveness Evaluation for Large-Scale Cyber Defence Exercisescited by 1
  16. 2022GAIL-PT: A Generic Intelligent Penetration Testing Framework with Generative Adversarial Imitation Learningcited by 0
  17. 2022Tutorial on Course-of-Action (COA) Attack Search Methods in Computer Networkscited by 0
  18. 2022On the importance of data collection for training general goal-reaching policiescited by 0
  19. 2026Evolutionary Bilevel Reward Shaping for Generalization in Reinforcement Learningcited by 0
  20. 2026PentestChain: A Cost-Aware, MCP-Orchestrated Framework for Automated Penetration Testing with Free-Tier LLMscited by 0
  21. 2026Efficient Nash Equilibrium Computation for Cybersecurity Gamescited by 0