Overview
Amazon and Palo Alto Networks have jointly documented the first publicly confirmed operational use of AI agents to autonomously discover and exploit a zero-day vulnerability with near-zero human involvement. The agents ran on Cairn, an open-source AI penetration-testing framework originally designed for defenders. Attackers gave the system a single natural-language goal — “obtain shell access” — and the agents identified a previously unknown vulnerability in an open-source medical imaging AI application, exploited it, and achieved full root-level control of the target server without further human input.
The broader campaign, also tracked by Palo Alto Networks, comprised 25 autonomous operations against at least 19 organisations across semiconductor, defence, and civil society sectors. At least 10 were successfully breached.
Technical Analysis
Cairn operates as a distributed agentic framework. A central server maintains a shared knowledge graph of facts and hints. A dispatcher reads this graph, schedules tasks, manages containers, and logs the protocol. Individual worker containers each run multiple concurrent agents. The framework is model-agnostic and has been observed operating with Claude Code, Codex, Pi, GLM 5.2, DeepSeek V4 Flash, and DeepSeek V4 Pro.
Attackers configured their deployments with:
- Prompts in simplified Chinese and Chinese Standard Time zone settings — consistent with Chinese-language threat actor tradecraft
- One-line task goals such as: “Obtain substantive high-value access, including but not limited to webshell, SSH, source code, keys, user information, credentials”
- Additional authorisation pretexts injected into the worker system prompt at every reasoning phase, reinforcing default penetration-testing instructions already baked into Cairn’s agent directives
Cairn’s default agent instructions include directives for vulnerability exploitation, reverse shell deployment, and data exfiltration — capabilities that attackers leveraged without modification, only layering additional authorisation language on top.
Successful breaches resulted in:
- Access to dozens of valid credential sets
- Exfiltration of over 1 million personal records at one organisation
- Retrieval of military and government identity data
- Creation of persistent administrator accounts in production environments
- Modification of a live industry standards-ballot document
Framework Mapping
| Framework | Technique | Rationale |
|---|---|---|
| MITRE ATLAS | AML.T0103 – Deploy AI Agent | Attackers deployed Cairn worker agents autonomously against live targets |
| MITRE ATLAS | AML.T0086 – Exfiltration via AI Agent Tool Invocation | Agents invoked shell and data-access tools to exfiltrate records |
| MITRE ATLAS | AML.T0081 – Modify AI Agent Configuration | Attackers injected custom system prompt pretexts into Cairn worker configs |
| MITRE ATLAS | AML.T0083 – Credentials from AI Agent Configuration | Agents harvested and accessed valid credentials autonomously |
| OWASP LLM | LLM08 – Excessive Agency | Agents autonomously performed destructive, privileged actions far beyond monitoring scope |
| OWASP LLM | LLM02 – Insecure Output Handling | Agent-generated shell commands executed directly against production systems |
Impact Assessment
This incident marks a qualitative shift in the threat landscape. Prior AI-assisted hacking required significant human interaction at each exploitation step. Cairn-based campaigns demonstrate that end-to-end autonomous offensive operations — from reconnaissance through zero-day discovery to persistent access — are now operationally viable. The speed and parallelism of multi-agent deployments fundamentally compress the window defenders have to detect and respond. Organisations with internet-facing legacy, research, or open-source applications are at elevated risk, particularly those lacking behavioural detection for automated attack patterns.
Mitigation & Recommendations
- Patch and inventory open-source applications — medical imaging, research, and industrial tools are high-value, often under-patched targets.
- Deploy velocity-based anomaly detection — look for rapid credential enumeration, bulk file access, and admin account creation bursts that signal agent-paced activity.
- Implement deception layers — honeypot credentials and canary files are effective tripwires against automated trawling agents.
- Restrict outbound shell and reverse-connection traffic — Cairn agents rely on reverse shells; egress filtering and application-layer inspection can break the C2 loop.
- Monitor for Cairn-specific artefacts — shared graph structures, dispatcher container signatures, and prompt patterns referencing authorisation pretexts.
- Treat single-line, broad-scope access requests as high-risk — insider threat and social engineering programmes should be updated to account for AI-generated pretexts.