Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

Unit 42 screenshots of attacker scripts with highlighted AI agent reasoning comments, including notes such as "Actually the issue is all pages just render home," "Check what previous python scripts tried," "sticky: can we write via /tmp symlink into path? SELinux likely blocks" and a Python login function annotated with comments about building a simplified TDS login from Impacket.
Image: Unit 42, Palo Alto Networks (fair use), Figure 4 of its Nov. 24, 2026 report, reasoning comments left by an AI agent inside attacker scripts. Target details were redacted by Unit 42.

Detection

Unit 42 Says It Tracked More Than 10 Campaigns in Which Attackers Handed Hacked Web Servers to AI Agents, and the Agents Gave Themselves Away With Section Headers, Step-by-Step Reasoning Comments and Commands Fired 1.4 Seconds Apart

Palo Alto Networks' researchers say the agents moved from Linux web servers into Windows hosts and three major clouds within hours, probed endpoint security tools with strace, and left no compiled malware behind. The same habits that made them fast also made them loud, and Unit 42 lays out the markers a SOC can hunt for.

Ava Okello, DetectionLondon6 min read

LONDON - Attackers have started handing hacked web servers to artificial intelligence agents and letting the software run the rest of the intrusion, and the agents are leaving distinctive tracks, according to research published on Tuesday by Palo Alto Networks' Unit 42.

The researchers said they identified and tracked more than 10 campaigns between July and September 2026 in which different attackers deployed autonomous AI agents against organizations in government, logistics, hospitality, manufacturing, agriculture and education. In every case the first foothold was a web shell planted through a vulnerable web application. "The novelty of the observed agentic campaigns was not in their techniques, but in their speed and efficiency," wrote the authors, Noa Dekel and Tom Fakterman.

For a security operations center, that is a useful finding. The agents used the same open-source tools and known exploits that human intruders use, so the signatures are familiar. What changes is the tempo, the volume and a handful of habits that a language model tends to bring to a shell.

A human points, the agent runs

Unit 42 described a division of labor that repeated across the most successful intrusions. A human operator chooses the target and supplies initial access, usually a web shell. The agent then carries out reconnaissance, credential harvesting, privilege escalation and lateral movement on its own, reports its findings in machine-readable form, and waits for the human to set the next objective, such as the payment system or persistence.

A Unit 42 diagram of the human-agentic attacker lifecycle: a human attacker provides initial access, an AI agent takes over and loops through reconnaissance, lateral movement, privilege escalation and credential gathering, summarizes its findings for the human, and the human provides a new objective.
Image: Unit 42, Palo Alto Networks (fair use), Figure 1, the human-agentic attacker lifecycle.

The pace is the first thing a defender would notice. In one attack the agent was active for only 140 minutes across two days and ran about 800 unique commands. In another, over 12 days, the attacker ran more than 8,000. In a subset of cases where a human did the opening checks before handing off, Unit 42 measured a median gap of 23.9 seconds between human commands. Once the agent took over, the median gap fell to 1.4 seconds.

A Unit 42 graphic comparing the median inter-command gap of a human attacker, 23.9 seconds, with that of an agentic attacker, 1.4 seconds.
Image: Unit 42, Palo Alto Networks (fair use), Figure 2, human and AI agent median inter-command gaps.

What the agents did once inside

The agents did not stay on the first machine. In one campaign against a U.S. hospitality and gaming company, the agent found an AWS EC2 instance role, tried to steal credentials through the instance metadata service and, when IMDSv1 was blocked, switched to IMDSv2 token requests and eventually succeeded. It then enumerated 20 AWS services across eight regions and went straight for payment and financial data paths it found in configuration files. Unit 42 said it saw agents abusing services across three major cloud providers.

In another case an agent moved from a Linux server compromised through a PHP web shell to a separate Windows IIS server using stolen SMB credentials. Within two minutes of finding the IIS server it began deploying ASPX web shells, and over the next 26 minutes it pushed web shells to more than 40 locations, rotating among five variants and uploading custom web.config files to allow script execution. A third agent found credentials for an IT vendor's self-managed GitLab instance on a victim server, tried to brute force it using real names of the vendor's marketing staff, and then read NGINX virtual host files to find more than a dozen sister companies on the same network and probe each of them.

The agents were also aware of the defenses around them. One excluded three security vendors' directories from the same find command on six endpoints and checked for 16 security scanners. In other cases, agents tried to pull configuration data and stored credentials from a security product's local directory, and one ran strace against wdavdaemon, the Microsoft Defender for Endpoint process on Linux, to study how it monitors activity.

What Unit 42 did not find is as telling. Across hundreds of extracted script payloads, the researchers "did not recover a single compiled backdoor, custom C2 framework, DLL implant or shellcode loader." The agents wrote single-use PHP web shells, PowerShell WMI backdoors and Python credential harvesters on the spot, and delivered 40 to 100 unique Base64-encoded payloads in a single session, none matching any known tool signature. They reached for public exploits first: in three cases an agent tried to download the Copy Fail Linux kernel exploit, CVE-2026-31431, and in another it tried PwnKit and a CVE-2024-1086 exploit before writing its own C code on the target and, when that failed to compile, rewriting the logic in Python.

The fingerprints

The habits that make the agents fast also make them conspicuous. In every campaign it observed, Unit 42 said, the agents wrapped shell output in section headers such as ===GRANTS=== or ===LOGIN=== so the model could parse the results. "In human-operated attacks such headers rarely appear," the researchers wrote, and usually only when an attacker runs a prewritten script.

A Unit 42 screenshot of shell commands run by an AI agent through sh -c, querying MySQL users and grants, probing API paths such as /api/v1, /health and /actuator with curl, and testing login endpoints, with section-header markers such as ===GRANTS===, === $path ===, ===LOGIN===, ===COMERCIAL===, ===COMUNS=== and ===POST_LOGIN=== highlighted in red boxes.
Image: Unit 42, Palo Alto Networks (fair use), Figure 3, agentic scripts with section-header delimiters between commands. Hosts and credentials were redacted by Unit 42.

In more than half of the campaigns the researchers also found conversational reasoning notes inside scripts, comments that explain what the agent is trying and why, of the kind shown above. Other leaks were human. One operator pasted a local path, /home/kali/exploitmasteryai/targets/warranty/shell5.php, the only concrete clue to the framework in that campaign. Another used two versions of the same WMI backdoor, one with Chinese comments and a later one rewritten to be English only. And a command server at 204.194.54[.]240, hard-coded in PowerShell download cradles and curl probes, was also hosting CyberStrikeAI, an AI-native offensive security platform, and had been documented by ReliaQuest as a staging node in a separate agent-driven attack.

How to hunt it

Unit 42's findings translate into a short list of detections that do not depend on any one tool. Web server worker processes such as apache2, php-fpm, nginx or w3wp.exe that start shells which emit lines bracketed by triple equals signs are worth an alert on their own. So are bursts of distinct commands from one web service account with sub-second to two-second spacing, script files or command lines containing first-person planning comments, many unique Base64 blobs decoded through sh -c in one session, find commands that exclude security vendor paths, and any process attaching strace to an EDR daemon.

Unit 42's own recommendations focus on hardening self-managed GitLab with multifactor authentication, sign-in rate limiting, IP restrictions and timely updates. The cloud case adds two more: scope EC2 instance roles tightly, because blocking IMDSv1 only slowed the agent down, and rotate any credentials stored on a web server once it is found compromised. The report includes indicators, among them 204.194.54[.]240, 206.123.152[.]217, 150.242.254[.]199 and 38.253.224[.]12.

The authors were clear that none of this amounts to a new kind of attack. The agents "follow well-established attack flows, rely on known CVEs and use the same open-source tools that human operators have used for years," they wrote. The difference is that they can do it in hours instead of weeks, and for now they announce themselves while doing it.

About the Author

Ava Okello

Ava Okello covers detection engineering, EDR telemetry, and SOC hunting for SOCtember from London.

Related stories

Detection desk