For years the question was whether an AI agent could find a real zero-day in a real target without a human steering it. In November 2026 Amazon answered it with a case study, and the interesting part is not the eleven minutes of success. It is the sixteen hours of failure that came first.
What is Cairn?
Cairn is an open-source project that its author describes as a general-purpose problem-solving engine: give it a starting point and a goal, and it searches for a path between them. It was not designed as a hacking tool.
The design is unusual compared with other agent frameworks, as Stingrai’s teardown explains:
- A shared blackboard holds facts and intents.
- Worker agents have no fixed roles. Any worker can pick up any intent.
- The engine itself calls no model API. Workers are ordinary coding agents such as Claude Code, Codex or Pi, pointed at whichever endpoint the operator configures.
- The output is a goal reached (a shell, a flag), not a findings report.
It has 6,157 GitHub stars as of 28 November 2026, up from 5,100 two weeks earlier, and is licensed AGPL-3.0. Its README claims third place out of 610 teams in a Tencent Cloud AI pentest competition, on its first ever test.
The intrusion Amazon watched
Amazon Threat Intelligence found a publicly hosted Cairn instance running with no authentication. That gave them the operator’s prompts, the project configuration and the agents’ full output. They attribute the activity to a Chinese-nexus actor. Help Net Security covered the findings, and Amazon’s own post has the detail.
The campaign began on 8 September 2026 against universities in East Asia. The operator’s input was a list of IP addresses and one goal: obtain shell access.
Phase 1: sixteen hours against Redis
The agents spent about 16 hours on a single Redis server that allowed unauthenticated access. They tried replication abuse to load code, a scripting sandbox escape, writing configuration files, memory corruption, and a Log4Shell injection against another service on the same machine.
Everything failed.
Phase 2: pivot and spray
Next they used a server-side request forgery flaw in a co-located Qdrant instance to map the internal Docker network, then sprayed credentials at PostgreSQL, SSH and other services. That failed too.
Phase 3: thirty thousand guesses
The agents then built their own wordlist. They collected roughly 80 real usernames from faculty directories, lab websites, archived pages and research papers, and over six hours tried more than 30,000 credential combinations against SSH, an admin dashboard, network storage, a VPN server and the campus portal.
All of it failed.
Phase 4: eleven minutes
Then the agents turned to an open-source medical imaging AI application on the network. They mapped its API, found that the filename parameter of an upload endpoint did not stop path traversal, and had arbitrary file write about 11 minutes after they started looking.
The vulnerability was previously unknown. The advisory linked in coverage, GHSA-qc22-rmgc-vg94 for MONAI Label, was published on 18 November 2026 with a critical rating.
Phase 5: from file write to root
A file write is not a shell. The agents closed the gap with a neat trick. In a later session they wrote a Python reverse shell into sitecustomize.py, a file Python imports automatically at interpreter start-up. Then they called the application’s training API, which spawned a fresh Python process. That process imported the payload and connected back, running as root.
| Stage | Time spent | Result |
|---|---|---|
| Redis exploitation attempts | ~16 hours | Failed |
| SSRF mapping and service spraying | not stated | Failed |
| 30,000+ targeted credential guesses | ~6 hours | Failed |
| Zero-day discovery in imaging app | ~11 minutes | Arbitrary file write |
sitecustomize.py plus training API |
later session | Root shell |
The only documented human contribution came afterwards: the operator gave the agents a proxy tunnel into a second university running the same vulnerable software.
Why the failures matter more than the win
A human tester would have given up on that Redis box after an hour or two and written “unauthenticated Redis, no exploitation path found” in the report. The agents kept going for sixteen. Then six more on password guessing. Then they tried something else.
Gambit Security, which investigated a separate Cairn campaign, credits the agents’ patience, persistence and creativity. That is the real shift. An agent’s time costs almost nothing, so the economics that used to protect hard-but-not-impossible targets are gone.
Not an isolated case
Amazon is the fourth security company in about two months to report Cairn in real attacks.
| Reported by | What they found |
|---|---|
| Gambit Security | Financially motivated campaign using Cairn with Hermes and Strix. At least 27 online retailers compromised and more than 600,000 unexpired card records stolen |
| NorForge | More than 20 exposed Cairn panels across three clusters. The largest ran over 1,100 attack projects against US, Japanese and Australian targets |
| Palo Alto Unit 42 | Suspected China-nexus actor CL-STA-1238 ran 25 operations against semiconductor, defence and civil society organisations and breached 10 |
| Amazon Threat Intelligence | The university intrusion and zero-day described above |
Two numbers from NorForge keep this in proportion: roughly one task in ten reached its goal, and the successful ones took just under 23 hours on average. Unit 42 adds that the breaches it saw relied mostly on weak credentials, authentication bypasses and old CVEs.
So a zero-day is the exception. Slow, cheap, relentless testing of ordinary weaknesses is the rule.
What defenders can take from this
- “Nobody would spend that long on us” is no longer a control. Assume every exposed service gets a full day of creative attention.
- Inventory your AI and research tooling. The way in was not the database or the VPN. It was a machine learning application that someone stood up for a lab. These tools often run as root, ship with permissive defaults and sit outside patch programmes.
- Watch for the specific behaviours. Writes to
sitecustomize.pyor other auto-imported files, an API-triggered process opening an outbound connection, and thousands of logins across unrelated services from one source are all high-signal. - Automate the response to high-confidence detections. This is Amazon’s main recommendation: let humans oversee outcomes instead of approving every action, because the attacker is not waiting for anyone.
- Do the basics Unit 42 lists. Identity hygiene, a smaller attack surface and regular patching still stop most of what these agents try.
- Prove you can recover. Gambit’s point is that fast patching alone is not enough any more. Know which systems keep revenue flowing and test restoring them.
The bottom line
The Cairn case is not a story about a brilliant AI. For most of a day it was a story about an AI being wrong, repeatedly. It became a breach because being wrong cost nothing and it never stopped trying.
That is the threat model to plan for.
Sources
- Help Net Security, Open-source AI pentesting framework Cairn keeps turning up in real-world attacks (23 November 2026)
- AWS Security Blog, Chinese-nexus actors’ Cairn AI agents found a zero-day on their own
- GitHub Security Advisory GHSA-qc22-rmgc-vg94, MONAI Label (18 November 2026)
- Gambit Security, Autonomous AI agents and online retailers
- NorForge, Inside Cairn
- Stingrai, Open-Source AI Pentest Agents Compared (13 November 2026)
- oritera/Cairn on GitHub, star count read on 28 November 2026
This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.