Skip to content

Defender Daily

Attackers let AI agents run intrusions from web shells, Unit 42 says

Unit 42 says it tracked more than 10 campaigns from July to September 2026 in which attackers handed intrusions to autonomous AI agents. In each, a human got in through a web shell on a vulnerable web application, and an agent then did the reconnaissance, credential theft, privilege escalation and lateral movement. The agents worked at machine speed but left clear traces, such as section headers and reasoning comments in their commands.

The campaigns hit government, logistics, hospitality, manufacturing, agriculture and education organizations, Unit 42 says. Humans chose the target, supplied access and made the strategic calls, while agents did the rest and reported back in machine-readable output. In one intrusion an agent was active for 140 minutes over two days and ran about 800 unique commands. In another, over 12 days, the attacker ran more than 8,000.

Human operators left a median of 23.9 seconds between commands, and agents 1.4 seconds, Unit 42 measured. One agent moved from a Linux server to a Windows IIS server with stolen SMB credentials and planted web shells in more than 40 places in 26 minutes. Another found credentials for the victim’s IT vendor and tried to brute-force the vendor’s self-managed GitLab instance.

On an AWS instance, one agent tried to take credentials from the instance metadata service and switched to IMDSv2 when the older version was blocked. It then enumerated 20 AWS services across eight regions. It went straight for payment and financial data, which Unit 42 reads as a human’s instruction. Agents also checked for security tools, left EDR folders out of file searches and traced Microsoft Defender for Endpoint’s Linux process.

Unit 42 recovered no compiled backdoors or custom command servers, only single-use PHP, PowerShell, Python and Bash scripts and public exploits. Agents tried known Linux privilege escalation exploits, such as Copy Fail and PwnKit, before writing their own code. One control server, 204.194.54[.]240, also ran CyberStrikeAI, an AI attack platform, and ReliaQuest had seen the same address in another agent-driven attack.

In every campaign, agent commands used section headers like ===[Title]===, and more than half held conversational, step-by-step reasoning comments, Unit 42 says. Agents sent 40 to 100 unique Base64-encoded payloads in a session, none repeated across victims, so file hashes help little. Unit 42 found nothing that tied the activity to a particular AI model or framework.

What to do

6 steps

Indicators

IPs and URLs copy defanged. Use Copy raw for queries.

IP addressControl and payload staging server, also running CyberStrikeAI
IP addressReverse shell control server
IP addressReverse shell target
IP addressGSocket and SSH tunnel relay
URLAddress used for command-and-control check-ins
URLWeb shell download

Sources

Tags

Subscribe

Get the Daily Brief by email

Weekdays at 7am ET.

We’ll email you a link to confirm. Unsubscribe from any email.