← CYBERSPACE / Pwning

The Zero-Day an AI Found Alone: Cairn Agents Took Root in Eleven Minutes

hacking

An autonomous AI framework called Cairn found a previously unknown path-traversal zero-day in MONAI Label and used it to gain root on a university server — in about eleven minutes. A Chinese-nexus actor ran the agents for 48 hours in September 2026. Amazon's report, published on 20 November, is one of the first documented cases of offensive AI agents discovering and exploiting a novel vulnerability during a live intrusion.

Between 8 and 10 September 2026, a threat actor assessed as Chinese-nexus pointed an open-source AI agent framework called Cairn at universities in East Asia outside mainland China. The instruction the operator typed was a single sentence: obtain shell access. The agents did the rest — and along the way they found a zero-day that no advisory, issue or vulnerability database had ever recorded.

The campaign only came to light because the operator left their own Cairn instance exposed on the internet without authentication. On 10 September, Amazon Threat Intelligence found the panel, read the prompts (written in Simplified Chinese) and the agents' output, and reconstructed roughly 48 hours of autonomous intrusion attempts.

Eleven minutes from API map to root

Against most targets the agents failed, and failed loudly. On one university network they found a password-less Redis server and spent about 16 hours and 148 distinct actions trying to break in — Redis replication, config tampering, memory corruption, even Log4Shell against a neighbouring service — without success. Against a GPU server they harvested roughly 80 real usernames from faculty pages, lab sites, archived pages and papers, then ran more than 30,000 username/password combinations against SSH, a VPN server and the university portal over six-plus hours. That failed too.

The medical-imaging target is where it worked. The agents mapped the framework and its API endpoints, found an upload endpoint with a filename parameter, and tested it for path traversal. It was vulnerable. In about eleven minutes the agents went from mapping the API to writing files to arbitrary locations on the server.

A later session escalated that write into a root shell: the agents dropped a Python reverse shell into sitecustomize.py — a file Python imports automatically at startup — then triggered a training endpoint that spawned a process and loaded the payload. No human chose the individual steps.

The vulnerable software

The flaw is a critical path-traversal bug (CWE-22) in MONAI Label, the open-source server that research and clinical teams use to annotate medical images and train segmentation models. It sits in the PUT /datastore/image and PUT /datastore/label endpoints, and it affects monailabel 0.8.5 and earlier. Authentication is disabled by default, so any client that can reach a default deployment can exploit it without credentials.

Amazon assessed with high confidence that it was a genuine zero-day at the time of discovery: no fix, issue, advisory or prior mention existed anywhere. The maintainers shipped a fix (pull request merged 19 October) and published the advisory GHSA-qc22-rmgc-vg94 on 18 November; a CVE has been requested. Amazon published its report on 20 November, and because the affected universities were not AWS customers, it routed the warning through a government partner.

Once the bug worked, the operator returned: the agents were handed a proxy into a second university network running the same vulnerable software and told to reach further machines. One AI-found bug became the key to a second network.

Why this one matters

This is among the first publicly documented cases of offensive AI agents finding a novel vulnerability during a live intrusion and turning it into a working exploit — not a scripted tool running a known CVE, but a goal-driven search that discovered something new. Two details carry the weight:

  • Speed. Eleven minutes from reconnaissance to exploitation is faster than many security operations centres can manually triage a single alert. "An agent that discovers and exploits a zero-day in minutes completes its activity faster than many SOCs can manually triage an alert," Amazon CISO CJ Moses wrote.
  • Persistence. When a target resisted, the agents did not stop — they ran continuously for 16 hours without breaks, sleep or working-hour constraints, switching tactics as they learned.

Cairn is not malware. It is a legitimate, AGPL-licensed autonomous penetration-testing framework, built for research and defence. But it has been adopted on both sides: Gambit Security documented its use by a financially motivated group that breached online retailers in September 2026 — at least 27 companies and more than 600,000 unexpired payment-card records in one campaign, and 105 attacks in another — and Google reported it in an attack on a US aerospace organisation. Amazon's CJ Moses put it plainly: the framework "is being adopted in both espionage and criminal operations."

What to do

  • Treat every internet-reachable MONAI Label instance as exposed and patch now (0.8.6+ or the fixed build), or put authentication in front of it.
  • Hunt for PUT requests to /datastore/image or /datastore/label whose image parameter contains ../, URL-encoded traversal sequences or absolute paths — and for unexpected writes to sitecustomize.py.
  • Accept the operational conclusion: if an attacker's agent can find and weaponise a flaw in minutes, human-paced triage is no longer a control. Detection and response have to run at machine speed too.

Sources

View source ↗