
How Do AI Agent Intrusions Differ from Human-Operated Ones? Based on Unit 42's Analysis of More Than 10 Attacks, Organizing the Traces They Leave Behind and What to Review in the Cloud
This page has been translated by machine translation. View original
Hello! I'm Yuji Nishimura from the Operations Department!
When an AI agent is left to carry out an intrusion, how do the logs differ from human operation, and how are cloud credentials used? A report analyzing multiple real attacks together has been published, so I read it.
On November 24, 2026, Unit 42, the threat research team at Palo Alto Networks, published "Recent Trends and Tactics of Agentic AI Attacks". The authors are Noa Dekel and Tom Fakterman. Based on more than 10 attack campaigns tracked from July to September 2026, the report organizes how AI agents behave when they carry out intrusions and what traces they leave behind.
In this article, I focus on points that engineers who use AI agents and the cloud in their work can use to review detection and configuration. I do not cover the naming of specific attack groups, the list of indicators of compromise (IOCs) at the end of the report, or the introduction of Palo Alto Networks products.
Scope of the report and caveats when reading the numbers
- The report does not present, in a consolidated form, how the attack campaigns were selected or the criteria used to judge that an "AI agent operated".
- Most of the numbers come from individual cases, as in "in one attack". The traces the report lists as common to all attack campaigns are initial intrusion via a web shell and the use of delimiter headings (headings like
===[Title]===). - The report withholds the names of the victim organizations. It discloses only the industries (government, logistics, hospitality, manufacturing, agriculture, education) and, for some cases, the country (the US).
- The source is Palo Alto Networks, which sells security products such as EDR, and the detection examples are also screens from its Cortex XDR. The report's conclusion includes a part recommending AI-based defense, which overlaps with the company's product area.
Humans chose the targets, and AI agents carried out the intrusion
According to the report, the particularly successful intrusions were all carried out with a division of labor between humans and AI agents (Figure 1 of the report).
- A human selects the target and prepares the initial access. The initial access in every observed attack campaign was a web shell placed on a vulnerable web application. Sometimes a human also performs the first reconnaissance
- The AI agent autonomously proceeds with reconnaissance, credential collection, privilege escalation, and lateral movement
- The AI agent compiles the results into a machine-processable format and reports periodically to an orchestration API
- A human looks at the results and gives direction such as "target the payment system" or "establish persistence"
- The AI agent decides the detailed steps on its own and executes them according to that direction
The diagram below divides the five stages above by what the human and the AI agent each handle. I made it myself based on the report's description, and the numbers match the list above. As in Figure 1, after executing in step 5, it returns to the report in step 3.
According to the report, what is new in these attacks is not the techniques but the speed and efficiency. The techniques used were the same as those of skilled human attackers, relying on known CVEs and open-source tools.
The clues that distinguish it from human operation remained in the speed and the shape of the output
The report lists three features that distinguish it from human operation: execution speed, delimiter headings, and reasoning comments that over-explain the steps. There were also differences in the volume and variety of Base64 payloads.
The median interval between commands shrank from 23.9 seconds to 1.4 seconds
In one attack, the AI agent was active for only 140 minutes in total over two days. During that time it went from initial intrusion via a web shell through reconnaissance to enumerating the cloud environment, websites, and databases, executing about 800 distinct commands. In another attack campaign that lasted 12 days, more than 8,000 distinct commands were executed.
For some attacks, Unit 42 compares the command intervals in the first half, when a human performed reconnaissance manually, and the second half, after handing over to the AI agent (Figure 2 of the report).
| Stage | Median command interval |
|---|---|
| Stage where a human did reconnaissance and connectivity checks manually | 23.9 seconds |
| Stage where the AI agent operated | 1.4 seconds |
The report does not state the number of attacks included or how the figures were aggregated.
The speed also showed in how quickly the next move followed the results. In one case, scan2.sh was executed 21 seconds after scan.sh had surveyed the ports (Figure 7 of the report). scan2.sh contained reconnaissance commands matched to the technology running on each port that was found.
Delimiter headings and reasoning comments were left behind
In all observed attack campaigns, the AI agent put delimiter headings like ===[Title]=== in its shell commands and scripts (Figure 3 of the report). According to the report, these are headings that let the AI read command results quickly. It says they are rarely seen in human-operated attacks, except when pre-prepared scripts are used.
In more than half of the attack campaigns, "reasoning comments" that explain the steps in a conversational tone were also left in the scripts (Figure 4 of the report).
Base64 payloads were different every time
According to the report, when sending multiple lines of code through a web shell, it is common to encode them in Base64 so the code isn't broken by shell special characters. What was different in the AI agent attacks was not the encoding itself but the volume and variety of the payloads.
When humans operate, they often send a small number of pre-prepared tools encoded in Base64, and tools with the same hash are found across multiple victim organizations. In these attacks, 40 to 100 kinds of Base64 payloads were sent in a single attack session. The payloads were created each time to fit the target environment. None were identical across victim organizations, and none matched the signatures of known tools.
After the intrusion, it spread across clouds, OSes, and organizations
The report contains multiple cases where the AI agent changed how it proceeded with the attack according to what it found.
In the cloud, it switched to IMDSv2 when IMDSv1 was blocked
In an attack on a US hospitality and gaming company, the AI agent found an AWS EC2 instance role and tried to obtain credentials from the Instance Metadata Service (IMDS). When it realized IMDSv1 was blocked, it immediately switched to obtaining an IMDSv2 token and succeeded after several attempts.
After obtaining the credentials, it enumerated 20 AWS services across 8 regions and exfiltrated information on buckets, email services, and secrets management. When it found an S3 bucket name in a configuration file, it narrowed its focus to the paths for payment and financial data. From this narrowing, the report believes a human instructed it to prioritize high-value financial data.
There were no destructive operations in this case, and Unit 42 assesses it as information gathering ahead of a full-scale takeover in the future. However, the AI agent tested whether it could write to the production cloud environment, and it deleted the test files it had placed right away. It also examined bucket policies and ACLs to check for public settings or exploitable configurations.
Not limited to this case, abuse of cloud services has been found on all three major clouds. According to Unit 42, when the AI agent found the cloud infrastructure, it switched to techniques for that infrastructure without the attacker having to configure anything beforehand.
From Linux to Windows, placing web shells in more than 40 places in 26 minutes
In another attack campaign, the AI agent breached a Linux server with a PHP web shell, then moved to a separate Windows IIS server using stolen SMB credentials. Within 2 minutes of finding the IIS server, it began placing ASPX web shells over SMB, and in the following 26 minutes it placed web shells in more than 40 locations on the same server. It used five kinds of web shells in combination and also uploaded a custom web.config so that scripts could be executed.
It also targeted a business partner's GitLab and affiliated companies
There is also a case where the attack spread from one foothold to a business partner and affiliated companies.
- On the compromised web server, the AI agent found credentials for a GitLab that a partner IT vendor operates in-house. It then investigated the vendor's site, mapped the infrastructure with WHOIS, and attempted brute force against the GitLab. The report believes this was a supply chain attack aimed at the vendor's entire customer base
- The brute force used the real names of employees on the marketing team. The report raises the possibility that the AI agent researched the employees from open-source intelligence (OSINT)
- No GitLab vulnerability was used. The web server where the credentials were found belonged to an organization different from the vendor
- From an NGINX virtual host configuration file, it found a dozen or so affiliated companies on the same internal network. It then collected CSRF tokens from login pages and attempted password reuse with passwords stolen from the first target and SQL injection against the parent company's admin panel. It executed four SQL injection scripts in sequence, improving them as it went
The diagram below was made by me based on Figure 6 of the report. Figure 6 also depicts a route from the same foothold into the AWS CLI (access to production backups, writing to buckets, enumerating financial assets), so I included it in the diagram. Whether this is the same organization as the cloud case above is not stated in the body of the report.
It didn't just evade security products, it investigated them
According to the report, the AI agent stands out because it executes a large number of commands quickly, yet it acted with awareness of the security products that were installed.
- In one attack campaign, the same
findcommand was executed on six endpoints, excluding the directories of three companies' security products from the search (Figure 8 of the report) - The same AI agent checked for the presence of 16 kinds of security scanners, including nmap, nessus, openvas, nikto, masscan, nuclei, and lynis
- In some cases, it enumerated the local directories of security products and tried to exfiltrate them, looking for settings and stored credentials
- It ran strace on the Microsoft Defender for Endpoint process (wdavdaemon) and tried to learn how the monitoring mechanism works from the system calls
This behavior was seen in multiple attack campaigns, and the report assesses it as a major change from past automated attacks.
No compiled custom malware was found
Unit 42 collected several hundred kinds of scripts, but there were no compiled backdoors, custom C2 frameworks, DLL implants, or shellcode loaders at all. In many cases, the AI agent created throwaway scripts on the spot. These included PHP web shells, a PowerShell WMI backdoor, and Python credential-harvesting scripts.
Rather than writing code right away, the AI agent first tried publicly available tools and exploits.
- Exploits for the Linux kernel privilege escalation vulnerability Copy Fail (CVE-2026-31431) were seen at multiple organizations. In three of them, it tried to download directly from the official GitHub repository or the exploit's website
- In another attack, it first tried a compiled exploit for PwnKit (CVE-2021-4034, a privilege escalation vulnerability in polkit's pkexec). When that failed, it switched to a compiled exploit for the Linux kernel privilege escalation vulnerability CVE-2024-1086. When that didn't work either, it started writing C code on the target, and when compilation failed, it tried to rewrite the same processing in Python
- In yet another attack, when the Copy Fail exploit failed, it compiled PwnKit from source on the target. It created its own C tool for network reconnaissance and a Python script using paramiko for password spraying
Clues for identifying the attack infrastructure remained in infrastructure and operational mistakes
According to the report, no clues were found for identifying a specific LLM or orchestration platform from the behavior. Because payloads are created for each target, it says attackers can hardly be identified by signatures.
Instead, the clues were the infrastructure and tool traces left by the humans and AI agents.
- A C2 IP address hard-coded in a payload. According to Unit 42, the server at that IP was running CyberStrikeAI, an AI-powered attack security platform. The same IP was also a server used for staging and reconnaissance in another agentic attack reported by the security company ReliaQuest
- A file path from the attacker's own environment that was pasted by mistake (including
exploitmasteryai). In that attack campaign, it was the only concrete clue pointing to the attack framework - The language of the code comments. The attacker used both a WMI backdoor with Chinese comments and a newer version in which the comments were specified to be in English only (Figure 10 of the report)
What teams using AI agents and the cloud can review
For each item, I separate what the report explicitly recommends from my own interpretation based on it.
Protect publicly exposed web applications first, as the entry point
The report believes that when human attackers operate AI agents, they prefer web shells placed on vulnerable web applications as the entry point.
In my interpretation, even as AI agents take over post-intrusion work, it is still the same old vulnerabilities that create the entry point. Patching publicly exposed web applications remains a high-priority measure. Along with that, I'd also like to monitor whether unfamiliar script files are increasing in web server directories.
Take inventory of credentials and internal information placed in configuration files
In these cases, S3 bucket names found on the compromised server, a business partner's GitLab credentials, and NGINX configuration files served as clues for narrowing targets and for lateral movement. The agent also tested whether passwords stolen from the first target could be reused at affiliated companies.
In my interpretation, it seems necessary to take inventory of whether credentials for external services are stored in plaintext in the configuration files of public-facing servers. Whether the same password is reused across multiple environments is also something to check. In the cases above, the next reconnaissance began 21 seconds after the ports were surveyed, and web shells started being placed within 2 minutes of finding the IIS server. The assumption that "even if it's found, it will take time to be exploited" becomes hard to rely on.
Use IMDSv2, and narrow the instance role's permissions
The AWS Security Blog article describes IMDSv2 as defense in depth against loosely configured firewalls, reverse proxies, and SSRF vulnerabilities. With IMDSv2, a token is obtained from the instance via a PUT request, and metadata is read with that token attached.
Therefore, against an attacker who can execute commands on the instance via a web shell, as in these cases, IMDSv2 alone cannot stop credential retrieval. It seems you need to proceed with the migration to IMDSv2 as an SSRF countermeasure while also narrowing the instance role's permissions to the range the workload needs. This is because what stolen credentials can do is determined mainly by the policies attached to the instance role. Applied to these cases, that means reviewing whether permissions to enumerate 20 services across multiple regions were really necessary.
The AWS documentation "Limit access to the Instance Metadata Service" also includes an example of using a local firewall to block communication to IMDS from the processes of a specific user. On Linux, the iptables owner module is used to deny communication from the Apache execution user (apache). On Windows, Windows Firewall is used to deny communication from the IIS execution user (NT AUTHORITY\IUSR). Both cover both IMDSv1 and IMDSv2. While the web shell keeps running as the web server's execution user, this block can stop communication to IMDS. However, once privilege escalation succeeds, there remains the possibility that the firewall settings themselves will be removed. In these attacks too, the AI agent tried a different privilege escalation exploit each time one failed.
Use command intervals and output shape as detection clues
In its conclusion, the report lists reasoning comments and delimiter headings as clues for defenders to look for.
Teams that write their own detection rules or investigate logs could use perspectives like the following.
- Is a shell (sh, bash, cmd.exe, powershell.exe) whose parent is a web server or PHP execution process (php-fpm, httpd, IIS's w3wp.exe, etc.) executing many commands in succession at 1 to 2 second intervals?
- Do the executed commands or scripts contain delimiter headings like
===[or long comments explaining the steps? - Are large numbers of Base64 strings with differing content being decoded and executed within a single session? (for example, passing the result of
base64 -dto a shell, or using PowerShell's-EncodedCommandor its abbreviation-enc) - Are there operations that investigate the security products themselves, such as enumerating security product directories or running strace on an EDR process?
Harden a self-operated GitLab
For self-operated source code management platforms, the report recommends four things: enforcing multi-factor authentication, rate limiting sign-ins, IP restriction where possible, and updating to the latest version.
In these cases, targeting was done through leaked credentials and brute force rather than a vulnerability, so in my interpretation, of the four items I'd like to put multi-factor authentication and rate limiting in place first.
Summary
From more than 10 attack campaigns tracked from July to September 2026, Unit 42 summarized the characteristics of attacks in which AI agents take over post-intrusion work. The successful attacks proceeded with a division of labor in which a human decided the target and direction and the AI agent executed everything from reconnaissance through lateral movement. In some attacks, after the operating entity changed from a human to an AI agent, the median command interval shrank from 23.9 seconds to 1.4 seconds. The report concludes that the techniques themselves are known, and that the differences lie in speed, volume, and the ability to adapt across platforms and OSes.
The five points we can review in practice are as follows.
- Prioritize patching publicly exposed web applications, and also monitor for web shell placement
- Take inventory of credentials placed in configuration files and password reuse
- Migrate to IMDSv2, and narrow the instance role's permissions to fit the purpose
- Use command intervals, delimiter headings, reasoning comments, and large volumes of Base64 as detection clues, and combine them with conventional detection
- Introduce multi-factor authentication and rate limiting for a self-operated GitLab
I hope this is helpful to someone.
References:
- Recent Trends and Tactics of Agentic AI Attacks (Unit 42, 2026-11-24)
- Use the Instance Metadata Service to access instance metadata (AWS documentation)
- Limit access to the Instance Metadata Service (AWS documentation)
- Add defense in depth against open firewalls, reverse proxies, and SSRF vulnerabilities with enhancements to the EC2 Instance Metadata Service (AWS Security Blog)
- CVE-2026-31431 (NVD)
- CVE-2021-4034 (NVD)
- CVE-2024-1086 (NVD)