The Rise of Autonomous Hacking: How AI Agents Went From Lab Demos to Real Cyberattacks

AI agents now plan and run whole intrusions on their own, from probing 1,200 websites to running 800 commands in 140 minutes; here is how it works, where it still fails, and how to defend.
For years, "AI hacking" mostly meant chatbots helping criminals write better phishing emails or fix bugs in their malware. In 2026 that changed. Attackers are now handing whole intrusions to AI agents: programs that are given a target and a goal, then plan, run tools, read the results and try again on their own, often for hours, with a human checking in only now and then.
Security teams have now seen this in real attacks, not just in labs. In one tracked case an AI agent ran about 800 commands in 140 minutes. Another operation pointed agents at more than 1,200 websites for a few thousand dollars in computing costs. This article explains how we got here, what autonomous hacking looks like in practice, where it still falls short, and what defenders should do about it.
What "autonomous hacking" means
A normal AI chatbot answers one question at a time. An agent works in a loop:
- It gets a goal, such as "get into this company's web server and find database passwords".
- It plans steps: scan for open services, look for known flaws, try exploits, look around once inside.
- It runs real tools: port scanners, web vulnerability scanners, password crackers, cloud command-line tools, custom scripts it writes on the spot.
- It reads the output, decides what worked, and picks the next step.
- It keeps going until it succeeds, runs out of ideas or hits a limit.
Many offensive tools now split the work between several agents. One does reconnaissance, another writes exploits, another handles moving around inside the network, and a "manager" agent coordinates them. The human operator sets targets and approves a few big decisions. The machine does the rest.
How we got here
2025: the proof that machines could do it. Three events showed that AI could do real security work on its own:
- June 2025: XBOW, an autonomous penetration-testing system, reached the top of the US leaderboard on the HackerOne bug-bounty platform. It had submitted nearly 1,060 vulnerability reports. Its findings were automated, though humans reviewed them before sending to follow the platform's rules.
- August 2025: In the final of the US government's AI Cyber Challenge (AIxCC), AI systems built by the competing teams found 54 of 63 planted vulnerabilities in 54 million lines of open-source code and patched 43 of them. They also found 18 real, previously unknown bugs. The average patch took about 45 minutes, at about $152 of computing per task.
- November 2025: Anthropic reported what it called the first AI-orchestrated cyber-espionage campaign. A group it assessed as Chinese state-sponsored used Claude Code against about 30 organisations, including tech companies, banks, chemical makers and government agencies. Anthropic says the AI did 80–90% of the work, with humans stepping in at only about 4–6 key decision points per campaign. At its peak the AI was making thousands of requests, often several per second. A small number of the break-ins succeeded. The attackers got around the model's safety rules by splitting the attack into small, innocent-looking tasks and claiming to be a security firm doing authorised testing.
2026: agents go mainstream in crime. This year the tools spread from researchers and well-funded state groups to ordinary criminals.
What the 2026 attacks looked like
Agents breaking into company websites (October 2026). A researcher scanning the internet found more than 20 exposed control panels for Cairn, an open-source tool built for authorised penetration testing. They were being used for real attacks. One Chinese-language cluster alone ran more than 1,100 attack projects. In total, the agents tried more than 1,200 websites and reached sites belonging to more than 100 companies, including several large US manufacturers. About 10% of attempts succeeded. A successful break-in took just under 23 hours on average. The researcher estimated the attacker spent about $5,000 on AI computing, or roughly $50 per successful hack. The panels also held hundreds of stolen secrets such as passwords and API keys, and about 11% of the ones tested were still valid.
Agents moving through corporate networks (July–September 2026). Palo Alto Networks' Unit 42 team tracked more than 10 campaigns in which autonomous agents stole credentials, moved between servers and explored cloud accounts. Victims were in government, logistics, hospitality, manufacturing, agriculture and education. Highlights from its November report:
- One agent ran about 800 unique commands over 140 minutes across two days.
- In some cases, the median gap between commands dropped from 23.9 seconds (a human typing) to 1.4 seconds (an agent).
- On one Windows web server, the attackers left web shells in more than 40 places.
- At one US hospitality and gaming company, an agent checked 20 AWS services across 8 regions looking for anything useful.
- The attackers used hundreds of small, one-off scripts instead of a known malware family, which makes them harder to catch with signatures.
Agents that turn patches into exploits (November 2026). Google's Threat Intelligence Group reported that criminal and suspected China-linked espionage groups have moved "beyond manual prompting" to multi-agent attack frameworks such as ARTEX, CAIRN, CyberStrikeAI and PentAGI. One pattern stands out: agents compare a vendor's patched and unpatched software to work out what was fixed, then build a working exploit. Google described this happening with the PaperCut print-management software in September 2026. This shrinks the safe window between a patch being released and attacks starting. Google also saw criminals reselling stolen access to AI services ("LLMjacking") and phishing kits with built-in AI assistants.
Why it changes the game
- Speed. Agents act in seconds, not minutes. By the time an analyst looks at an alert, the agent may have tried dozens of next steps.
- Scale. One operator can run hundreds of attacks at once. The Cairn operation suggests that well under a hundred dollars per successful break-in is now realistic.
- Lower skill needed. The agent supplies much of the know-how. Attackers who couldn't write an exploit themselves can now point a tool at a target and wait.
- Faster patch-to-exploit. If agents can turn a patch into an exploit within hours, "we'll patch next month" is no longer safe for internet-facing systems.
- No familiar malware. Agents improvise with built-in system tools and fresh scripts, so traditional antivirus has less to recognise.
Where agents still fall short
Autonomous hacking is real, but it is not magic:
- They make things up. Anthropic found its misused model sometimes "hallucinated" credentials or claimed to have stolen secret data that was actually public. Attackers still have to check the results.
- Most attempts fail. In the Cairn operation about nine in ten attempts went nowhere.
- They are noisy. Hundreds of fast commands, repeated scans and lots of failed logins are easy to spot if anyone is watching.
- They mostly use known weaknesses. Most real-world agent attacks so far rely on unpatched software, exposed services and stolen or weak passwords, not brand-new techniques.
- Humans still make the big calls. Even in the most automated campaigns, people chose the targets and approved key steps.
In other words, the basics still work. Autonomous attackers punish the same gaps human attackers do. They just find them faster and more often.
The same tools help defenders
The technology cuts both ways. The AIxCC teams released their systems as open source to help fix bugs in critical software. Vendors are building agents that sort alerts, investigate incidents and test their own networks before attackers do. Google, Anthropic and others now publish regular reports on how their AI is misused and ban the accounts involved. Defenders who use these tools can close holes at machine speed too.
What organisations should do now
- Patch internet-facing systems within days, not weeks. Prioritise anything on the CISA Known Exploited Vulnerabilities list and anything with a public patch diff.
- Shrink your attack surface. Find and remove forgotten web apps, test servers, admin panels and open ports. Agents scan everything.
- Protect credentials. Use phishing-resistant MFA, remove secrets from code and config files, rotate API keys, and give service accounts only the access they need.
- Watch for machine-speed behaviour. Alert on web servers that suddenly start running commands, bursts of commands seconds apart, many failed logins, or a single identity touching many cloud services and regions in a short time.
- Lock down cloud accounts. Monitor for unusual API calls across regions and limit what stolen keys could do.
- Secure your own AI tools. Protect AI API keys from theft (stolen keys fund attackers' agents) and never leave agent control panels or AI services exposed to the internet.
- Test yourself the same way. Consider authorised automated penetration testing to find what an agent would find first.
- Practise fast response. Have a plan to isolate a server or revoke credentials within minutes, because an agent won't wait for a morning meeting.
The bottom line
Autonomous hacking has moved from research demos to real criminal operations in about 18 months. Today's agents are fast, cheap and tireless, but still clumsy, noisy and dependent on basic security mistakes. That gives defenders a window. Organisations that fix the basics quickly, watch for machine-speed behaviour and use automation themselves will be much harder targets as these tools keep improving.
Sources
- Disrupting the first reported AI-orchestrated cyber espionage campaign (Anthropic)
- AI Cyber Challenge marks pivotal inflection point for cyber defense (DARPA)
- Recent Trends and Tactics of Agentic AI Attacks (Palo Alto Networks Unit 42)
- GTIG AI Threat Tracker: Agentic Threat Activity Crosses a Significant Threshold (Google Cloud)
