How smart bots are teaching themselves to break into websites safely
A newly designed system pairs a specialised language model with reinforcement learning to spot complex website security flaws that regular scanners miss. By practising over time, the tool learned to link subtle weaknesses together like moves on a chessboard.
Reading level
The full story with proper science words explained.

Heads up: this study is a preprint, which means other scientists haven’t finished checking it yet.
Beyond the checklist
Most basic scanners work like guards testing whether a latch is loose. They check simple rules, spot known mistakes, and report what they see. Skilled hackers do not work that way. Instead, they link small, sneaky tricks into an exploit chain, a sequence where each tiny slip lets someone gain deeper access.
To solve this problem, researchers built a system called ARES for autonomous AI penetration testing. Penetration testing means running permitted fake attacks to catch flaws before bad actors can abuse them. Old tools cannot think through the deeper logic of a web app. ARES bridges this gap by planning multi-step actions.
Brain and instinct
The setup combines two core parts built on the open-source Hexstrike-AI base. First, a language model trained on records from OWASP and ExploitDB acts as the brain. It reads code and understands how flaws work. Second, a reinforcement learning engine called ARES-RL behaves like a player learning a video game. Using a rule called Proximal Policy Optimization, a formula that teaches software to make smart step-by-step choices, it picks which test tools to fire and in what order.
The team tested the bot inside practice targets built for training, including DVWA, OWASP Juice Shop, and bWAPP. The bot found more flaws and worked faster than standard tools. Through repeated practice rounds, its logic improved and its tests grew sharper. This automated red-teaming, where friendly testers mimic real foes, helps defenders spot crafty paths through their systems rather than relying on basic lists.
What we still do not know
These tests took place only inside controlled training apps. How the tool handles live, messy business networks remains untested. We also do not know how well it spots unknown zero-day flaws missing from its training records.
Science words
- Penetration testing
- Authorised simulated cyberattacks on a computer system to evaluate its security.
- Exploit chain
- A sequence of small, connected security weaknesses chained together to achieve a larger breach.
- Proximal Policy Optimization (PPO)
- A reinforcement learning algorithm used to train agents to make good sequential decisions.
- Red-teaming
- A security exercise where ethical testers act like real adversaries to probe system defences.
Check it yourself
This story is based on a real research paper in Scientific Publication by Madhak, Desai, Bholwankar et al.. We write with AI help and check it against the paper, but the original is the final word.