Unit 42: AI agents took over web-shell intrusions in 10+ campaigns, running commands every 1.4 seconds
Palo Alto Networks' Unit 42 tracked more than 10 campaigns where humans broke in via web apps and AI agents did the rest at machine speed. What to check now.
Palo Alto Networks' Unit 42 says it tracked more than 10 campaigns between July and September 2026 in which a human broke into an organisation through a vulnerable web application, then handed the keyboard to an AI agent that explored, escalated and spread at machine speed. Victims span government, logistics, hospitality, manufacturing, agriculture and education. The defence is unglamorous: patch and watch your internet-facing web apps, keep Linux kernels current, and treat any credential on a compromised server as stolen.
What happened, in plain English
On November 24, 2026, Unit 42 — the threat-intelligence team at security vendor Palo Alto Networks — published a report called "Recent Trends and Tactics of Agentic AI Attacks". An "agentic" AI is a system that doesn't just answer questions but takes actions on its own: it runs commands, reads the output and decides what to do next.
In every campaign Unit 42 looked at, the attackers first got a foothold through a web shell — a small malicious file planted on a web server through a flaw in a web application, which lets an outsider type commands on that server through a browser. Then an AI agent took over.
The difference shows up in the logs. In a subset of attacks, while a human was typing, the median gap between commands was 23.9 seconds. Once the AI agent took control, it dropped to 1.4 seconds. In one intrusion the agent ran about 800 unique commands in 140 minutes; another campaign logged more than 8,000 unique commands over 12 days.
Think of it as a burglar who picks the lock, then lets in a tireless assistant that opens every drawer in the house within minutes.
Unit 42 stresses that humans are still in charge: a person picks the target, provides the initial access and reviews what the agent finds. The researchers also say the techniques are "not a new class of attack sophistication" — just the familiar ones, done far faster.
Are you affected? What to do now
Anyone running internet-facing web applications (especially PHP or ASP.NET sites on Linux or Windows IIS), self-managed GitLab, or workloads in AWS should read this. Unit 42 does not name victims or say how many organisations were hit, beyond one US hospitality and gaming company.
Check exposure
- List every public web application you run, including old marketing sites, warranty or support portals and sites run for you by agencies or IT vendors.
- Look for unexpected
.php,.aspxorweb.configfiles in web directories. In one case Unit 42 found web shells pushed to more than 40 locations on a single Windows IIS server in 26 minutes. - Search your logs and network telemetry for the indicators Unit 42 published (below).
- Ask web agencies and hosting vendors whether credentials for your systems (Git, databases, cloud) are stored on servers they run. In one case, GitLab credentials for an IT vendor were found on a compromised third-party web server.
Fix, in order
- Patch web applications and plugins first — that is how every observed campaign began.
- Patch Linux kernels. The agents tried privilege-escalation exploits including CVE-2026-31431 ("Copy Fail") and CVE-2024-1086. Check your distribution's advisories.
- Rotate secrets stored on any web server you suspect: database passwords, API keys, Git tokens, cloud keys.
- In AWS, enforce IMDSv2 (the newer, harder-to-abuse version of the instance metadata service that hands credentials to servers) and limit what instance roles can do. Unit 42 saw an agent try IMDSv1, then switch to IMDSv2 when the old version was blocked, then enumerate 20 AWS services across eight regions. Only least-privilege roles limit that.
- Harden self-managed GitLab as Unit 42 recommends: enforce multi-factor authentication, enable sign-in rate limiting, restrict access by IP where possible, keep it up to date.
Detection hints (from Unit 42)
- Bursts of shell commands seconds apart from a web-server process.
- Scripts containing section headers like
===[Title]===or conversational, step-by-step "reasoning" comments — Unit 42 saw the headers in every campaign and reasoning notes in more than half. - Many unique Base64-encoded payloads in one session (40–100 per attack) that match no known tool.
findcommands that deliberately skip security-tool folders, or checks for installed security scanners.
Published indicators of compromise (defanged, as listed by Unit 42):
150.242.254[.]199— reverse shell target204.194.54[.]240— C2 and payload staging206.123.152[.]217— reverse shell C238.253.224[.]12— GSocket and SSH tunnel relaywebhook[.]site/72f421ea-5576-4a4a-8c55-a2a79c19c8b8— C2 beaconpastebin[.]com/raw/swqSMxYs— web shell download
If you have no public web applications and no self-hosted Git or cloud workloads, there is nothing specific to do beyond normal patching.
The expert view
The architecture Unit 42 describes is a split: a human handles target selection and initial access, and an agent handles the noisy middle of the kill chain — discovery, privilege escalation, credential harvesting and lateral movement. That middle is where human operators used to burn days, and where defenders traditionally had time to notice. Unit 42's conclusion is that agentic attackers can "fully compromise a network in mere hours", where an experienced human would take days or weeks.
What is new is behaviour, not tooling. Unit 42 "did not recover a single compiled backdoor, custom C2 framework, DLL implant or shellcode loader". Instead it found PHP web shells, PowerShell WMI backdoors and Python credential harvesters, generated on the fly so that no two payloads matched across victims. Signature-based detection has little to grab onto. The agent also adapted: it tried five privilege-escalation techniques in turn and compiled code on the target when a ready-made binary failed. It cross-checked a compromised server's NGINX configuration to find more than a dozen related sister companies, and ran iterative SQL injection scripts against a parent company's admin panel.
The useful tells are stylistic. Language models leave fingerprints — tidy section headers, chain-of-thought comments, and a command rate no human can sustain. These are hunting leads, not reliable signatures: an attacker can strip comments, and a vendor's automation can also look fast. Expect these markers to fade as operators clean up their prompts.
Attribution is thin, and Unit 42 says so: it names no actor or country and found no behavioural markers linking the activity to a specific model or orchestration framework. Two infrastructure clues stand out. The C2 address 204.194.54[.]240 also hosted CyberStrikeAI, which Unit 42 calls "an AI-native offensive security platform", and an operator accidentally pasted a path containing "exploitmasteryai". Neither identifies a group. This is a separate report from Unit 42's November 12 analysis of the Cairn framework, which it attributed with moderate confidence to a China-nexus cluster (our coverage).
The report fits a pattern seen across the past month: Google's threat-intelligence group describing agents that turn patches into exploits, and the UK's NCSC warning that agents exploit familiar weaknesses faster. Separately, VulnCheck reported on November 23 that its honeypots logged 1,756 attempts to steal AI-provider and coding-agent credentials from 406 IP addresses across 27 CVEs since May. Its advice matches the lesson here: when a web app with a file-read flaw is hit, "Assume Your Secrets Have Been Read."
Still unknown: how many organisations were compromised, which countries beyond the US were involved, which AI models drove the agents, and whether the campaigns share an operator. Note too that this is a vendor report that ends by recommending the vendor's own AI-based products. The observations are detailed, but the conclusion that only "AI-powered defenses" can keep up is Palo Alto's view.
Official sources
- Unit 42 (Palo Alto Networks): Recent Trends and Tactics of Agentic AI Attacks — November 24, 2026
- Unit 42: Attackers Use Autonomous AI to Target Semiconductor, Defense and Civil Society Sectors (Cairn / CL-STA-1238) — November 12, 2026
- VulnCheck: Attackers Exploit CVEs to Harvest Credentials — November 23, 2026
- Coverage: Cyber Security News — Hackers Use Autonomous AI Agents to Steal Credentials and Breach Corporate Networks (November 25, 2026)