English

Reinforcement Learning for Automated Cybersecurity Penetration Testing

Cryptography and Security 2025-07-08 v1 Artificial Intelligence

Abstract

This paper aims to provide an innovative machine learning-based solution to automate security testing tasks for web applications, ensuring the correct functioning of all components while reducing project maintenance costs. Reinforcement Learning is proposed to select and prioritize tools and optimize the testing path. The presented approach utilizes a simulated webpage along with its network topology to train the agent. Additionally, the model leverages Geometric Deep Learning to create priors that reduce the search space and improve learning convergence. The validation and testing process was conducted on real-world vulnerable web pages commonly used by human hackers for learning. As a result of this study, a reinforcement learning algorithm was developed that maximizes the number of vulnerabilities found while minimizing the number of steps required

Keywords

Cite

@article{arxiv.2507.02969,
  title  = {Reinforcement Learning for Automated Cybersecurity Penetration Testing},
  author = {Daniel López-Montero and José L. Álvarez-Aldana and Alicia Morales-Martínez and Marta Gil-López and Juan M. Auñón García},
  journal= {arXiv preprint arXiv:2507.02969},
  year   = {2025}
}
R2 v1 2026-07-01T03:45:36.534Z