Reinforcement Learning for Automated Cybersecurity Penetration Testing

Daniel López-Montero, José L. Álvarez-Aldana, Alicia Morales-Martínez, Marta Gil-López, Juan M. Auñón García
6/30/2025
cs.CRcs.AI

No confident code implementation found for this paper.

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

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{lpezmontero2025reinforcement,
  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},
  year   = {2025},
  eprint = {2507.02969},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.02969v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.02969.svg)](https://codeofpaper.com/paper/2507.02969)

Discussion