Cairn agents found and exploited a zero-day on their own

Amazon says an attacker's Cairn AI agents, told only to "obtain shell access," found a path traversal zero-day in a medical imaging app and got root.

An attacker gave a swarm of AI agents a list of university IP addresses and one goal, "obtain shell access," and the agents found an unpatched flaw in an open-source medical imaging AI app and took root on the server. Amazon Threat Intelligence published the findings on Nov 20, 2026, after spotting the attacker's own Cairn instance running without authentication, with its prompts and AI output visible to anyone.

Cairn is an open-source penetration-testing framework built for defenders. It coordinates multiple agents and is model-agnostic, with back ends including Claude Code, Codex and Pi, per Ars Technica. The vulnerable app was MONAI Label, which BleepingComputer reports got a security update on Nov 18. The agents mapped its API, found an upload endpoint whose filename parameter allowed path traversal, and reached arbitrary file writes in about 11 minutes. Later they wrote a Python reverse shell into sitecustomize.py, which Python imports at startup, then hit a training API endpoint to spawn a new process running as root.

The agents were not unstoppable. Amazon reports a 16-hour, 148-action attempt on an open Redis server and more than 30,000 credential combinations against a GPU server both failed, and a human operator stepped in after the zero-day to hand the agents a proxy into a second university network. Amazon attributes the campaign to a Chinese-nexus actor with moderate confidence only.

For anyone self-hosting AI tooling, the exploit chain is the lesson. Our reading: in a Python service, any arbitrary file write is one step from code execution, so a sloppy upload handler on an internal ML app is a root shell waiting for a patient agent. The other targets in Amazon's write-up (unauthenticated Redis, an SSRF in a co-located Qdrant instance) are the same kind of exposed AI-stack plumbing. Amazon's advice is general: prioritize high-confidence detections that trigger automated response. Neither Amazon nor BleepingComputer gives the fixed MONAI Label version number or the advisory ID.

Try it: ask your coding agent to find every file-upload endpoint in a service you run and add a test that uploads a file named with ../ in it (our example). The test passes when the upload is rejected or the file lands inside the intended directory; if it fails, you have the same bug class the agents used.

Sources