Review finds autonomous AI pentest agents lose track of state between attack stages
A systematic review of 111 studies finds AI agents can perform individual penetration-test stages but often fail end to end, losing track of credentials, sessions and routes as attacks progress.

Key points
- Researchers at California State University, San Bernardino reviewed 111 experimental studies from 2025 and 2026.
- The PentestEval benchmark cited in the review put end-to-end pipeline success at 31%.
- Recurring failures include stale information, misattributed credentials or sessions, and treating plausible output as proof of success.
- The authors recommend provenance records for discovered credentials, independent verification of actions, and measured cleanup of every change.
- Most evidence comes from CTF challenges and labs; cloud, container and Kubernetes environments are barely tested.
What the review found
Five researchers at California State University, San Bernardino examined 111 experimental studies on autonomous AI agents conducting penetration tests. They organised the evidence using a reference architecture they call the Autonomous Penetration Intelligence Stack (APIS), covering seven attack stages from reconnaissance to persistence. APIS has not been tested as a working system.
The central finding is that agents handle individual stages reasonably well but struggle to carry a test through from start to finish. The PentestEval benchmark cited in the review recorded 31% end-to-end success. Agents work from outdated information, attach credentials, sessions or routes to the wrong asset, accept plausible-looking output as proof that an action worked, recover poorly from failures and pass errors on to other tools and agents. Most lateral movement failures were traced to stale credentials or routes. One research system, Incalmo, reached target assets in 37 of 40 lab environments, compared with 3 for the strongest baseline.
Safety concerns for testing programmes
The authors want every credential an agent finds to carry a record of its origin, owner, permitted targets, expiry and authorised validation method. They advise against letting one model both perform an action and judge whether it succeeded. They also ask that every file, service, permission, scheduled task and policy an agent modifies be restored, with the cleanup measured, and that evaluations track lockout risk, service disruption and what EDR, SIEM and SOAR tools detected. One study showed that attacker-controlled web content can plant persistent instructions in a web agent's long-term memory.
Limits of the evidence
Most results come from CTF challenges, vulnerable applications and cyber ranges. Cloud, container and Kubernetes environments receive little direct testing. The authors acknowledge that ChatGPT assisted their screening and that some search records were not retained.
For institutions weighing AI-driven testing services, the takeaway is to treat these tools as assistants under close human control rather than as replacements for qualified testers.
What to do now
- Require any AI-assisted penetration test to run under named human oversight, with qualified testers validating findings before they enter reports.
- Add contract clauses with testing providers covering handling of discovered credentials, permitted targets and independent verification of results.
- Demand a documented, verified rollback of every change made during testing, including files, services, permissions and scheduled tasks.
- Agree in advance how account lockout and service disruption risks will be controlled, and review what EDR, SIEM and SOAR tooling detected.
- Do not rely on lab-based AI testing results to assure cloud, container or Kubernetes environments; cover them with conventional, scoped testing.
How useful was this story?
0.0 out of 5 · 0 ratings
Related frameworks
Our consultants can assess your exposure and map the change to your controls and evidence.
