By Hamza Faisal

Palo Alto Networks' Unit 42 says autonomous AI agents have graduated from security-conference theory to real-world break-ins. In a report published on Tuesday, researchers say they tracked more than 10 campaigns between July and September 2026 in which attackers planted web shells on vulnerable web applications, then handed the attack to an AI agent.

The campaigns hit targets across government, logistics, hospitality, manufacturing, agriculture and education. In every case, the first foothold came the old-fashioned way: a web shell dropped through a vulnerable web application.

The headline number is speed. In one attack, the AI operator was active for 140 minutes across two days — yet still ran about 800 unique commands, moving from the initial web shell through reconnaissance to mapping the victim's cloud, website and databases. Another campaign ran 12 days and topped 8,000 commands. Unit 42 measured the median gap between commands at 23.9 seconds while a human was driving, and just 1.4 seconds once the agent took over.

Machine speed, human plan

The attacks were not fully autonomous. The pattern Unit 42 observed was a partnership: a human sets the objective, provides the initial access and makes the strategic calls — telling the agent, for example, to go after the payment system or establish persistence. The agent does the rest: reconnaissance, credential harvesting, privilege escalation and lateral movement, then reports back in machine-readable formats and checks in with orchestration APIs.

The agents also adapted when things went wrong. In one campaign, an agent tried five different privilege-escalation techniques in sequence after earlier attempts failed, and compiled custom exploit code on the target when prebuilt binaries did not work. Rather than exotic zero-days, the agents leaned on familiar open-source tools — including the CopyFail Linux privilege-escalation exploit and the PwnKit flaw — following the path of least resistance at machine scale.

One agent, every platform

The agents moved across operating systems without missing a beat. In one campaign, an agent compromised a Linux server through a PHP web shell, then pivoted to a Windows server with stolen credentials. Within two minutes it began deploying web shells, and over the next 26 minutes pushed them to more than 40 locations, rotating five variants.

In another case, an agent targeting a US hospitality and gaming company found an Amazon Web Services instance role and tried to steal credentials through the cloud metadata service. When the older version was blocked, it switched to the newer token-based version and succeeded. It then enumerated 20 AWS services across eight regions, and on finding storage bucket names, immediately targeted payment and financial data — scouting, apparently, for a later takeover.

The fingerprints that gave them away

Speed was the first tell, but the agents left others. In every campaign, they used section headers such as ===[Title]=== to organise shell commands, wrote overly descriptive comments, and embedded chain-of-thought reasoning notes in their scripts — step-by-step explanations of what the agent was doing and why. In more than half the campaigns, those notes were visible in the scripts: useful for the agent, damning for stealth.

That sloppiness is, for now, the defenders' best friend. Because agents generate unique payloads on the fly, there are no stable fingerprints to tie an attack to a particular group — attribution is getting harder, not easier. Unit 42's message is blunt: a risk that "until recently has only been theoretical" is now documented in the wild, and security teams should hunt for the machine-speed patterns — bursts of hundreds of commands, headers and reasoning notes — rather than waiting for a familiar signature.

By Hamza Faisal