---
title: Unit 42 tracked 10+ campaigns run by autonomous AI agents from July to September; they were fast but noisy, leaving chain-of-thought comments and machine-readable output in shell commands | ctxsec
url: https://ctxsec.com/items/unit42-agentic-ai-attack-campaigns-web-shell-footholds-chain-of-thought-comments-in-shell-commands
description: "Unit 42 says different attackers deployed autonomous AI agents across government, logistics, hospitality, manufacturing, agriculture and education targets, always starting from web shells planted through vulnerable web applications. The techniques weren't new; the speed was, with hundreds of unique commands in minutes. The agents gave themselves away through structured machine-readable output, adaptive exploit selection, iterative refinement and reasoning comments embedded in commands."
status: "official vendor research (Palo Alto Networks Unit 42, Nov 24, 2026)"
published: 2026-11-24
---

> Unit 42 says different attackers deployed autonomous AI agents across government, logistics, hospitality, manufacturing, agriculture and education targets, always starting from web shells planted through vulnerable web applications. The techniques weren't new; the speed was, with hundreds of unique commands in minutes. The agents gave themselves away through structured machine-readable output, adaptive exploit selection, iterative refinement and reasoning comments embedded in commands.

[← Context & Harness Attacks](/context) · [markdown](/items/unit42-agentic-ai-attack-campaigns-web-shell-footholds-chain-of-thought-comments-in-shell-commands.md)

official vendor research (Palo Alto Networks Unit 42, Nov 24, 2026)

2026-11-24 2:48 PM ET

### Unit 42 tracked 10+ campaigns run by autonomous AI agents from July to September; they were fast but noisy, leaving chain-of-thought comments and machine-readable output in shell commands

- **No custom implants:** across hundreds of extracted payloads, Unit 42 recovered no compiled backdoor, custom C2, DLL implant or shellcode loader, only single-use PHP web shells, PowerShell WMI backdoors and Python credential harvesters written on the fly.
- Agents reached for open-source tools first, e.g. repeatedly downloading the Copy Fail Linux kernel exploit (CVE-2026-31431) from its GitHub repo or website.
- One agent ran strace against Microsoft Defender for Endpoint's wdavdaemon to study how it monitors activity.
- **Detection ideas:** web server processes spawning Python, PHP and Bash in rapid succession; comments or JSON-style output inside command lines; bursts of hundreds of distinct commands in minutes.

Sources: [Unit 42: Recent Trends and Tactics of Agentic AI Attacks (Nov 24, 2026)](https://unit42.paloaltonetworks.com/autonomous-ai-agent-threat-campaigns/)
