# Agentic AI Intrusion Campaigns: 10+ Autonomous AI Agent Operations Following Web Shell Access (Unit 42, CVE-2026-31431 / CVE-2024-1086 attempted)

> Unit 42 tracked more than 10 global intrusion campaigns between July and September 2026 in which a human operator gained initial access through a web shell on a vulnerable web application and then handed reconnaissance, credential harvesting, privilege escalation and lateral movement to an autonomous AI agent. Targets spanned government, logistics, hospitality, manufacturing, agriculture and education; ReliaQuest independently documented overlapping infrastructure (204.194.54.240) in an AI-assisted server takeover.

- **Published:** 2026-11-24T15:15:46Z
- **Last reviewed:** 2026-11-24T15:15:46Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6797
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-6797.png
- **ID:** TL-2026-6797
- **Severity:** HIGH
- **Category:** THREAT_INTEL
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 23 (3 shown free below)
- **CVEs:** CVE-2026-31431, CVE-2024-1086, CVE-2021-4034

## Description

Unit 42 (Noa Dekel, Tom Fakterman; published 2026-11-24) describes more than 10 campaigns observed July-September 2026 where attackers combined conventional initial access with autonomous AI agents. In every observed campaign the foothold was a web shell deployed through a vulnerable internet-facing web application. A human operator found the target, obtained access and sometimes ran the first assessment; the AI agent then took over recon, credential harvesting, privilege escalation and lateral movement, emitting machine-readable output and periodically checking in with orchestration APIs, while the human reviewed findings and set strategy (for example targeting payment systems or persistence). The article found no behavioral marker tying the activity to a specific LLM or framework and concludes a human decided targets and timing. No named threat actor is given.

Tempo is the clearest signal: one intrusion saw roughly 800 unique commands in 140 minutes across two days; a 12-day campaign exceeded 8,000 unique commands; the median inter-command gap fell from 23.9 seconds (human recon) to 1.4 seconds (AI phase); 40-100 unique Base64 payloads were used per session. Agents ran scan.sh then scan2.sh 21 seconds later, built a custom C network probe (charon_lite.c) and paramiko-based SSH spray scripts. Behavioral fingerprints: ===[Title]=== section-header delimiters in every campaign, chain-of-thought style comments in more than half of campaigns, overly descriptive comments, structured output, adaptive exploit selection and mixed-language comments (Chinese comments in one WMI backdoor).

Observed post-exploitation: (1) Cloud - IMDSv1 was blocked, the agent then acquired an IMDSv2 token and enumerated 20 AWS services across 8 regions, targeting payment-related S3 paths and testing write access by writing and deleting a test object; no harmful action was reported. (2) Lateral movement - from a Linux PHP web shell the agent pivoted to a Windows IIS server with stolen SMB credentials; within 2 minutes of discovery ASPX web shells were deployed and over 26 minutes pushed to 40+ locations rotating five variants with custom web.config files. (3) Supply chain - stolen web-server credentials were used against a vendor's self-managed GitLab (brute force using marketing staff names; no GitLab vulnerability was exploited), and the agent attacked sister companies on the same network with CSRF-token harvesting, password reuse and four iterative SQL-injection scripts. (4) Privilege escalation - the agent attempted Copy Fail (CVE-2026-31431), PwnKit (CVE-2021-4034, pre-compiled then compiled on target), and CVE-2024-1086, then wrote C code on target, iterated on compilers and tried Python rewrites; the article does not state whether any exploit succeeded. (5) EDR awareness - find commands excluding three security vendors' directories on six endpoints, a check for 16 security scanners (nmap, nessus, openvas, nikto, masscan, nuclei, lynis, etc.), attempts to enumerate and exfiltrate EDR local directories and stored credentials, and strace against wdavdaemon (Microsoft Defender for Endpoint).

Infrastructure: 204.194.54.240 served as C2 and payload staging (hard-coded in PowerShell download cradles and cURL probes) and hosted a CyberStrikeAI instance (open-source AI-native offensive platform by Ed1s0nZ; reportedly acquired by ThreatBook in Oct 2026). ReliaQuest (2026-10-07) separately reported a Tomcat/Spring Batch job-submission endpoint abused via Nashorn JavaScript, with 204.194.55.189 as attack origin and 204.194.54.240 staging PrintSpoofer/GodPotato; ReliaQuest attributes that entry to misconfiguration, not a vulnerability or zero-day, and could not confirm the role of CyberStrikeAI. Unit 42 recovered an accidental path (/home/kali/exploitmasteryai/targets/warranty/shell5.php) as the only concrete identifier of the AI framework. No hashes or compiled implants were recovered.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1078 Valid Accounts
- T1505.003 Server Software Component: Web Shell
- T1059.004 Command and Scripting Interpreter: Unix Shell
- T1059.001 Command and Scripting Interpreter: PowerShell
- T1059.006 Command and Scripting Interpreter: Python
- T1047 Windows Management Instrumentation
- T1685 Disable or Modify Tools
- T1027 Obfuscated Files or Information
- T1552.005 Unsecured Credentials: Cloud Instance Metadata API
- T1110 Brute Force
- T1046 Network Service Discovery
- T1580 Cloud Infrastructure Discovery
- T1021.002 Remote Services: SMB/Windows Admin Shares
- T1530 Data from Cloud Storage
- T1071.001 Application Layer Protocol: Web Protocols
- T1572 Protocol Tunneling

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Web Server Process Spawning Shell or Recon Child - Agentic AI Web Shell Foothold (TL-2026-6797)** (`TL-2026-6797-SPL-001`)

Detects a PHP/Apache/nginx/httpd worker spawning a shell, recon utility, downloader or compiler on Linux (Sysmon for Linux process creation). In every campaign tracked by Unit 42 for TL-2026-6797 the foothold was a web shell (T1190 -> T1505.003) from which a human operator and then an autonomous AI agent ran commands. The search tags children whose command line contains campaign infrastructure (204.194.54.240, webhook.site, pastebin raw) or the ===[Title]=== section-header delimiter that Unit 42 saw in every campaign.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1505.003, T1059.004
- **Data sources:** sysmon_for_linux (index=linux, sourcetype=sysmon:linux), microsoft_defender_for_endpoint (DeviceProcessEvents), linux process_creation
- **Severity:** high
- **Confidence:** high

### Splunk SPL

```spl
index=linux sourcetype="sysmon:linux" EventCode=1 (ParentImage="*/php-fpm*" OR ParentImage="*/php" OR ParentImage="*/php-cgi" OR ParentImage="*/apache2" OR ParentImage="*/httpd" OR ParentImage="*/nginx" OR ParentImage="*/lighttpd") (Image="*/sh" OR Image="*/bash" OR Image="*/dash" OR Image="*/whoami" OR Image="*/id" OR Image="*/uname" OR Image="*/curl" OR Image="*/wget" OR Image="*/python*" OR Image="*/perl" OR Image="*/nc" OR Image="*/base64" OR Image="*/gcc") | eval behaviour=case(match(CommandLine,"(?i)204[.]194[.]54[.]240|204[.]194[.]55[.]189|94[.]177[.]131[.]113|150[.]242[.]254[.]199|206[.]123[.]152[.]217|38[.]253[.]224[.]12|webhook[.]site|pastebin[.]com/raw"),"campaign_infrastructure",match(CommandLine,"={3}[^A-Za-z0-9 =][A-Za-z0-9 _.-]{2,60}[^A-Za-z0-9 =]={3}"),"ai_agent_delimiter",true(),"web_shell_child_process") | stats count AS events dc(CommandLine) AS unique_cmds values(Image) AS children values(CommandLine) AS cmdlines min(_time) AS firstTime max(_time) AS lastTime by host ParentImage User behaviour | convert ctime(firstTime) ctime(lastTime)
```

### Microsoft KQL

```kql
let WebServerParents = dynamic(["php-fpm","php","php-cgi","apache2","httpd","nginx","lighttpd"]);
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ (WebServerParents) or InitiatingProcessFileName startswith "php-fpm"
| where FileName in~ ("sh","bash","dash","whoami","id","uname","curl","wget","python","python3","perl","nc","base64","gcc")
| extend Behaviour = case(
    ProcessCommandLine has_any ("204.194.54.240","204.194.55.189","94.177.131.113","150.242.254.199","206.123.152.217","38.253.224.12","webhook.site","pastebin.com/raw"), "campaign_infrastructure",
    ProcessCommandLine contains "===[", "ai_agent_delimiter",
    "web_shell_child_process")
| summarize Events=count(), UniqueCmds=dcount(ProcessCommandLine), Children=make_set(FileName, 20), CmdLines=make_set(ProcessCommandLine, 20), FirstSeen=min(Timestamp), LastSeen=max(Timestamp) by DeviceName, InitiatingProcessFileName, AccountName, Behaviour
```

### Sigma

```yaml
title: Web Server Process Spawning Shell or Recon Child - Agentic AI Web Shell Foothold
id: a3c1f0d2-6b7e-4a58-9c41-7e2d5b8f0a11
status: experimental
description: Detects a PHP, Apache, nginx, httpd or lighttpd process spawning a shell, recon utility, downloader or compiler on Linux, or any child command line containing TL-2026-6797 campaign infrastructure or the ===[Title]=== AI-agent delimiter. Matches the web shell foothold used in Unit 42 agentic AI intrusion campaigns.
references:
  - https://unit42.paloaltonetworks.com/autonomous-ai-agent-threat-campaigns/
  - https://reliaquest.com/blog/threat-spotlight-how-ai-agents-turned-one-exposed-endpoint-into-a-server-takeover/
author: Threadlinqs Team
date: 2026-11-24
tags:
  - attack.initial-access
  - attack.t1190
  - attack.persistence
  - attack.t1505.003
  - attack.execution
  - attack.t1059.004
logsource:
  category: process_creation
  product: linux
detection:
  selection_parent:
    ParentImage|contains:
      - '/php-fpm'
      - '/php-cgi'
      - '/apache2'
      - '/httpd'
      - '/nginx'
      - '/lighttpd'
  selection_parent_php:
    ParentImage|endswith: '/php'
  selection_child:
    Image|endswith:
      - '/sh'
      - '/bash'
      - '/dash'
      - '/whoami'
      - '/id'
      - '/uname'
      - '/curl'
      - '/wget'
      - '/python'
      - '/python3'
      - '/perl'
      - '/nc'
      - '/base64'
      - '/gcc'
  selection_ioc:
    CommandLine|contains:
      - '204.194.54.240'
      - '204.194.55.189'
      - '94.177.131.113'
      - '150.242.254.199'
      - '206.123.152.217'
      - '38.253.224.12'
      - 'webhook.site'
      - 'pastebin.com/raw'
      - '==='
  condition: (selection_parent or selection_parent_php) and (selection_child or selection_ioc)
falsepositives:
  - PHP or CGI applications that legitimately call exec(), shell_exec() or system()
  - Web server health-check or deployment scripts spawned by the web server user
level: high
```

**Known false positives:**

- PHP/CGI applications that legitimately invoke exec(), shell_exec() or system() (image processing, PDF generation, backup plugins)
- Deployment or health-check scripts launched by the web server account

**Tuning notes:** Baseline legitimate web-app child processes for 7-14 days and exclude known (ParentImage, CommandLine) pairs. Raise priority when behaviour is campaign_infrastructure or ai_agent_delimiter, or when unique_cmds is high within minutes (AI-agent tempo: median 1.4 s between commands). Replace index=linux with your Sysmon-for-Linux or auditd index; add Tomcat/java parents only if you can baseline them.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- IIS Worker Process (w3wp.exe) Spawning Shell, LOLBin or WMI Tooling (TL-2026-6797) (locked: unlock with TL Creds)
- Windows Privilege Escalation Tooling - certutil Base64 Reassembly, GodPotato and PrintSpoofer (TL-2026-6797) (locked: unlock with TL Creds)
- Download Cradles, Webhook Beacons and GSocket Tunnels Referencing Campaign Infrastructure (TL-2026-6797) (locked: unlock with TL Creds)
- ASPX Web Shell and web.config Writes to IIS Web Roots over SMB Admin Shares (TL-2026-6797) (locked: unlock with TL Creds)
- On-Target Exploit Compilation and AI-Agent Recon/Spray Artifacts on Linux (TL-2026-6797) (locked: unlock with TL Creds)
- EC2 Instance Role Bulk AWS Service Enumeration (IMDS Credential Use, TL-2026-6797) (locked: unlock with TL Creds)
- Linux EDR Awareness Probing - strace of Defender Daemon, EDR Directory Enumeration, Scanner Checks (TL-2026-6797) (locked: unlock with TL Creds)
- Network Connections to Agentic AI Campaign C2, Staging and Tunnel Infrastructure (TL-2026-6797) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 23)

Defanged, TLP:CLEAR.

- IP address: `204.194.54[.]240`
- IP address: `150.242.254[.]199`
- IP address: `206.123.152[.]217`

Full set of 23 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Recent Trends and Tactics of Agentic AI Attacks (Unit 42)](https://unit42.paloaltonetworks.com/autonomous-ai-agent-threat-campaigns/)
- [ReliaQuest: How AI Agents Turned One Exposed Endpoint into a Server Takeover](https://reliaquest.com/blog/threat-spotlight-how-ai-agents-turned-one-exposed-endpoint-into-a-server-takeover/)
- [Unit 42: CVE-2026-31431 Copy Fail](https://unit42.paloaltonetworks.com/cve-2026-31431-copy-fail/)
- [CERT/CC VU#260001: Copy Fail (CVE-2026-31431)](https://kb.cert.org/vuls/id/260001)
- [Sophos: Proof-of-concept exploit available for Linux Copy Fail CVE-2026-31431](https://www.sophos.com/en-us/blog/proof-of-concept-exploit-available-for-linux-copy-fail-cve-2026-31431)
- [Tenable: Copy Fail (CVE-2026-31431) FAQ](https://tenable.com/blog/copy-fail-cve-2026-31431-frequently-asked-questions-about-linux-kernel-privilege-escalation)
- [oss-security: Copy Fail disclosure and mitigation](https://openwall.com/lists/oss-security/2026/04/29/23)
- [Copy Fail exploit repository (xeloxa)](https://github.com/xeloxa/copyfail-exploit)
- [CVE-2024-1086 exploit repository (notselwyn)](https://github.com/notselwyn/cve-2024-1086)
- [CyberStrikeAI README (Ed1s0nZ)](https://raw.githubusercontent.com/Ed1s0nZ/CyberStrikeAI/main/README.md)
- [CyberStrike AI-powered security platform (Cyber Security News)](https://cybersecuritynews.com/cyberstrike-ai-powered-security-platform/)
- [ThreatBook acquires CyberStrikeAI security testing platform (TechNode)](https://technode.global/2026/10/01/threatbook-acquires-cyberstrikeai-security-testing-platform/)
- [Unit 42: ARTEX and AI-Powered Red Teaming Tools](https://unit42.paloaltonetworks.com/artex-and-ai-powered-red-teaming-tools/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6797
