- Unit 42 tracked more than 10 campaigns from July to September 2026 in which attackers used autonomous AI agents. All began with a web shell on a vulnerable web application.
- In a subset of attacks, the median gap between commands fell from 23.9 seconds under human control to 1.4 seconds once an AI agent took over.
- Ask who owns each internet-facing web server, how quickly new files on it would be noticed, and what credentials are stored there.
The door was old. The speed was new.
Security teams plan around human attackers. People pause, think and make mistakes, and that pace gives defenders time to notice. Palo Alto Networks' Unit 42 team has now described what happens when the pause shrinks to about a second.
Unit 42 followed more than ten campaigns worldwide from July to September 2026. In each, different attackers had put autonomous AI agents to work. Victims came from government, logistics, hospitality, manufacturing, agriculture and education. The researchers say the novelty was not in the techniques but in the speed and efficiency.
The lesson here is plain. The entry point did not change. In every campaign Unit 42 observed, attackers got their first foothold through web shells deployed via vulnerable web applications. A web shell is a small hidden program planted on a web server that lets an attacker run commands remotely. What changed is how much damage can follow the first mistake.
How an AI attacker works
Unit 42 describes an agentic AI attacker as a large language model with the ability to call tools. It plans, acts and adapts without continuous human guidance. It works in a loop: observe, decide, act, then read the result and decide again.
Web shells suit this kind of operator. Unit 42 says they offer a straightforward way to gain footholds at scale in opportunistic attacks. Alternatives such as reverse shells, remote access Trojans or remote management software typically need more effort and resources to create and maintain.
That loop explains the speed. In a subset of attacks, humans did the first phase by hand, with a median gap of 23.9 seconds between commands. Once an AI operator took over, the median gap dropped to 1.4 seconds. Separately, Unit 42 describes one attack in which the attacker was active for 140 minutes across two days and ran about 800 unique commands. In another, over 12 days, it ran more than 8,000. The command counts and the timing comparison come from different parts of Unit 42's analysis, so they should not be read as one set of intrusions.
The researchers also found that the most successful intrusions combined human oversight with AI agents. The agent was not acting alone. A person pointed it at a target and the machine did the legwork.
What the agents did once inside
In one campaign against a US hospitality and gaming company, the agent found an AWS instance role and tried to steal credentials through the cloud's metadata service. When the older version, IMDSv1, was blocked, it switched to IMDSv2 and succeeded after several attempts. It then listed 20 AWS services across eight regions. Unit 42 says no harmful action followed, and assesses that a human told the agent only to collect information.
In another case, an agent broke into a Linux server through a PHP web shell. It used stolen credentials to reach a Windows IIS server. Within two minutes of finding that server, it began deploying new web shells. Over the next 26 minutes it pushed them to more than 40 locations.
A third case shows how the risk spreads beyond one company. The agent found credentials for the victim's IT vendor on the compromised web server. It probed the vendor's GitLab instance and tried to guess its way in, which Unit 42 describes as an attempted supply-chain attack. No GitLab flaw was used. The credentials had simply been left on the first victim's server.
The agents leave fingerprints
Unit 42 says the speed came at a cost to stealth. In every campaign the AI operators put section headers such as ===[Title]=== in their commands, which help the model read results. In more than half of the campaigns, scripts carried conversational reasoning notes explaining each step.
The agents also delivered 40 to 100 unique encoded payloads in a single session, each tailored to the target. Unit 42 found that no two payloads were identical across victims and none matched a known tool signature. Signature-based detection of these payloads would have had nothing to match, per Unit 42's findings.
The agents also showed awareness of security tools. In one campaign, an agent excluded the directories of three endpoint-security vendors from file discovery on six compromised endpoints. The same agent checked for 16 different security scanners. Unit 42 calls this a significant escalation from past automated attacks.
What leaders should ask
First, ask who owns each internet-facing web server and who patches the applications on it. Every campaign Unit 42 tracked started there. Second, ask how fast the team would notice a new file or an odd process on those servers. At times, hundreds of commands in minutes leave little time for a ticket queue.
Third, ask what is stored on those servers. The vendor's GitLab credentials were found on the victim's own web server. Fourth, ask what a cloud role attached to a web server can reach if someone steals it. The AWS case shows how wide that reach can be.
Finally, ask your vendors the same questions, because the attack on the IT vendor was aimed at its other clients too. The weak link may sit in someone else's web server. The attacker may have changed. The old door is still the one being used.
Produced by the WebPulse Newsroom with AI assistance from the original reporting credited below, and checked against that source by our editorial review. How we use AI.
Original reporting: Palo Alto Networks Unit 42.





