HelpnetSecurity

AI agents in penetration tests keep stumbling at the same spot


AI agents that run penetration tests on their own often lose track of assets, identities, credentials, sessions, routes and authorization once an attack has to move from one stage to the next, according to a systematic review of 111 studies.

The review comes from five researchers at California State University, San Bernardino, who worked through experimental studies from 2025 and 2026 drawn from IEEE Xplore, the ACM Digital Library and arXiv. They set out to find which capabilities an agent needs to carry an authorized penetration test through every stage, from the first step to the last.

To sort the studies, the authors built a framework called the Autonomous Penetration Intelligence Stack (APIS). It splits an attack into seven stages (reconnaissance, asset discovery, vulnerability discovery, exploit intelligence, privilege escalation, lateral movement and persistence) and adds two layers that run through all of them, one for decision making and cooperation between agents and one for defensive evaluation.

APIS is described as a reference architecture built from the evidence, and it has not been tested as a working system.

Good at steps, lost between them

AI agents can handle separate stages of a penetration test, though success at single stages does not carry over to the whole attack. The researchers cite PentestEval, a benchmark that put end-to-end pipeline success at 31%.

The same failures turn up again and again in the studies. Agents keep working from information that has gone out of date, or file it under the wrong asset, identity, credential, route or session. They take output that merely looks plausible as proof that an action worked, have trouble recovering when an action fails, and pass their errors on to other tools and to the agents they collaborate with.

At least one system has done much better in the lab. In a multi-host evaluation, the research system Incalmo reached the target assets in 37 of 40 environments, and the strongest baseline got there in 3.

The authors trace most lateral movement failures to an agent’s picture of the network going out of date, with stale credentials or routes that no longer matched.

“Reliable end-to-end penetration-testing autonomy requires more than strong performance at isolated stages,” the authors wrote. In their view, an autonomous campaign succeeds or fails on whether the agent can keep what it knows about the target accurate and verified each time it moves to the next stage.

Found passwords and leftover changes

Several of the review’s recommendations deal with data an agent comes across during a test. Before an agent tries a credential it pulled from a file, a running process or a log, the researchers want a record of where the string came from, who owns it, which target it may be tried on, when it expires and which validation method is authorized. They warn against letting one model both carry out an action and decide whether it succeeded, and they want the effects of each action checked independently.

The review wants testing systems to put back every file, service, permission, scheduled task and policy an agent modifies, and asks for the cleanup to be measured. Evaluations, the authors argue, should track the risk of account lockouts, service disruption, the signals EDR, SIEM and SOAR tools picked up, and, when an experiment tests response timing, how quickly defenders responded.

Persistence has the thinnest research base in the review, with five studies. One of those studies found that attacker-controlled web content can plant instructions in a web agent’s long-term memory that carry over into later sessions and other sites. For persistence tests, the authors would count a run as successful only when the agent can verifiably get back in and the cleanup has been verified as well.

Mostly lab evidence

Most of the evidence comes from capture-the-flag (CTF) challenges, vulnerable applications, laboratories and cyber ranges. Privilege escalation research concentrates on Linux, CTF machines and small Active Directory labs, and cloud, container and Kubernetes environments get little direct testing.

One comparison with human professionals ran on a live university network of about 8,000 hosts. In reconnaissance more broadly, the review finds that agents chose targets poorly and repeated probes they had already run.

The researchers are open about the limits of their own method. ChatGPT helped with search terms, finding candidate studies, screening and data extraction, and human reviewers checked the work and made every final decision. They did not keep their exact database queries, the number of results from each source, or complete records of exclusions and reviewer disagreements.

The paper proposes a five-level capability-maturity model for future validation, and the authors chose not to rate any of the reviewed systems against it.

For the next round of research, they call for benchmarks that run every stage of a campaign under a fixed scope and budget, tests of how agents recover when network topology, credentials and defenders change, and long-running ranges that follow models through updates and active defense.



Source link