AI threat

AI agents now hack web apps: what changed in 2026

Attackers now hand recon, exploitation and data theft to AI agents. Here is what the evidence shows, without the hype.

Editorial photo for the article

For most of the last twenty years, breaking into a web application took a skilled person and a lot of patience. Someone had to map the app, guess which endpoints mattered, try payloads by hand and notice the one response that looked wrong. That labour was the main thing protecting small and mid-sized companies. There were too many targets and too few skilled attackers.

In 2026 that labour can be handed to software. The reports below come from AI labs, threat-intelligence teams and national cyber agencies. They describe the same shift from different angles: attackers now use AI agents to do the slow parts of an attack, and the time between "a weakness exists" and "someone used it" has shrunk.

What the evidence says

The clearest early account came from Anthropic in late 2025. It described a state-linked espionage campaign in which attackers used an AI model to carry out about 80 to 90 percent of the work against roughly 30 targets. Humans chose the targets and approved key steps. The model did the reconnaissance, wrote exploit code and sorted stolen data.

Source: Anthropic, Disrupting the first reported AI-orchestrated cyber espionage campaign

By September 2026, Anthropic's threat report said most of the attacks it had disrupted since December 2025 were run or orchestrated by AI, with breaches completed in two to three hours.

Source: Anthropic, Threat Intelligence Report, September 2026

Google's Threat Intelligence Group reported the first criminal zero-day exploit it believes was built with AI and intended for mass exploitation. A later report counted 22 zero-days exploited in a single month, August 2026, against an average of 8 a month in 2025, and linked the rise to attackers adopting agentic AI.

Sources: Google Threat Intelligence Group, AI vulnerability exploitation Google Threat Intelligence Group, Agentic threat activity crosses a significant threshold

CrowdStrike's 2026 Global Threat Report counted an 89 percent rise in attacks by AI-enabled adversaries in 2025. It also measured "breakout time", the time from first access to moving deeper into a network: 29 minutes on average, and 27 seconds in the fastest case.

Source: CrowdStrike, 2026 Global Threat Report

Why web apps and APIs are the natural target

An AI agent is good at work that is repetitive, text-based and easy to check. Web applications fit that description well. Every request and response is text. An agent can read your JavaScript bundle, list the API routes it calls, create an account, and then replay each request with small changes: a different user id, a missing token, an extra field in the JSON body. It can tell whether each attempt worked by reading the response.

That is exactly the work that finds the most common serious web bugs. Broken object-level authorization sits at the top of the OWASP API Security Top 10, and it is found by asking, thousands of times, "can user A read user B's object?" A person gets bored after a few hundred tries. An agent does not.

Source: OWASP API Security Top 10, 2023 edition

The defensive side shows what the technology can do. In DARPA's AI Cyber Challenge, autonomous systems found 86 percent of the vulnerabilities planted in real open-source software and found 18 real ones that nobody had planted. On HackerOne, an autonomous AI pentester reached the top of the US leaderboard after submitting about 1,060 vulnerability reports. Attackers have access to the same class of tools.

Sources: DARPA, AIxCC results XBOW, Top 1: how XBOW did it

The time window has closed

The second change is speed. Several independent sources now measure how long a known weakness stays safe, and all of them point the same way.

  • Mandiant found that attackers, on average, exploit vulnerabilities 7 days before a patch is released. It also measured the hand-off from the group that gets in to the group that monetises the access: from over 8 hours in 2022 to 22 seconds in 2025.
  • VulnCheck found that 29 percent of vulnerabilities exploited in 2025 were attacked on or before the day they were disclosed.
  • Germany's BSI reported that the time from a vulnerability becoming known to its first exploitation fell from 53 days to 8 days by the second quarter of 2026.
  • Microsoft reported that exposed cloud workloads are attacked within 5.3 hours on average.

Sources: Mandiant, M-Trends 2026 VulnCheck, State of Exploitation 2026 BSI, Die Lage der IT-Sicherheit in Deutschland 2026 Microsoft Digital Defense Report 2026, executive summary

Verizon's 2026 Data Breach Investigations Report found that exploiting vulnerabilities is now the most common way in, at 31 percent of breaches, and that the median threat actor used AI assistance in 15 different attack techniques.

Source: Verizon, 2026 DBIR executive summary

"AI makes cyber attacks easier, faster and cheaper to execute, and at greater scale."

Richard Horne, CEO, UK National Cyber Security Centre

Source: NCSC Annual Review 2026, foreword

What an agent-run attack looks like

Spain gave an early, concrete example. In September 2026 the Spanish data protection authority, AEPD, received a breach notification in which the attack was attributed to an AI agent. According to INCIBE's summary, the agent searched generic files for weaknesses, logged in, explored the application on its own and then found a flaw that let it change personal data and reach invoices. INCIBE notes that the investigation had not reached definitive conclusions.

Source: INCIBE-CERT, Personal data breach reported in Spain linked to an attack carried out by artificial intelligence

Our analysis: that sequence, find credentials or a weak login, then explore and test every action the app allows, is the same loop a human pentester runs. The difference is cost. An agent can run that loop against thousands of small applications in parallel, and it only has to succeed against a few.

What a small team should do about it

You cannot out-staff an attacker who works for the price of compute. You can remove the easy wins and shorten the time your weaknesses stay open.

  1. Test authorization, not just authentication. Create two accounts in two organisations and check every endpoint that takes an id. This is where agents look first.
  2. Know what you expose. List your subdomains, old API versions, staging environments and admin panels. Agents find forgotten endpoints before you do.
  3. Remove secrets from the browser. Check your JavaScript bundles for keys and service tokens. Anything shipped to the client is public.
  4. Patch in days, not quarters. With exploitation measured in days or hours, a monthly patch window is too slow for internet-facing systems.
  5. Test after every significant release. An annual pentest describes your app as it was on one date. New features open new paths.

The same technology works for defenders. An AI agent that tries the same requests an attacker would, with your permission and with a human reviewing what it finds, gives you the attacker's view before the attacker has it. That is the reason we built PentestLynx, and the reason we only report findings our agents could actually exploit.

Frequently asked questions

Can AI really hack a web application on its own?

Yes, for many common bug classes. Public reports from Anthropic, Google and Spain's INCIBE describe AI agents that ran reconnaissance, logged in, explored applications and exploited flaws with little human help. Humans still choose targets and often approve key steps.

What is an AI pentest?

An AI pentest uses AI agents to do the repetitive work of a penetration test, such as mapping endpoints and replaying requests across accounts, with your permission and within an agreed scope. In a good service, human pentesters review each finding before it reaches the report.

Which bugs do AI agents find most easily?

Bugs that can be found by repeating requests with small changes: broken object-level authorization (IDOR), missing function-level checks, exposed secrets in JavaScript and missing rate limits.

See what an attacker would find in your app

Our AI agents attack your web app or API with your permission, prove each finding with a working exploit, and senior pentesters review and sign the report.

15-minute call

Talk to our team

A 15-minute call about your app, your deadline and what your auditor, insurer or customer needs to see.