Amazon Threat Intelligence published findings on November 20, 2026 about a Chinese-nexus actor who pointed Cairn, an open-source autonomous AI penetration-testing framework, at university IP addresses in East Asia. The only goal the agents were given was "obtain shell access." Against one target they found a zero-day and, in about 11 minutes, went from mapping the application's API to writing arbitrary files on the server. If you run any public-facing app that an agent can map and poke, your detection clock now starts earlier than your analysts' shift.
What did the agents actually do?
Per the AWS write-up, Amazon found a Cairn instance on September 10, 2026 that the operator had left running without authentication, so the prompts, configuration and agent output were readable by anyone. The campaign ran for roughly 48 hours starting September 8. The actor supplied a list of IP addresses and variations of the goal, and the agents planned, executed and adjusted without the operator picking each step.
Two operations failed, according to the same report. One spent about 16 hours and 148 sequential actions against an open Redis instance, trying replication abuse, scripting sandbox escapes, config file writes and Log4Shell, then mapped an internal Docker network through an SSRF bug in a neighbouring Qdrant instance. Another ran more than 6 hours against a GPU server, built about 80 usernames from faculty directories and lab pages, and tried more than 30,000 credential combinations. Neither got in.
The third target was a medical imaging AI application. The agents identified the framework, mapped the API, found an upload endpoint with a filename parameter and tested it for path traversal. In a later session they used the file write to drop a Python reverse shell into sitecustomize.py, then called a training endpoint to spawn a new Python process that imported it. The shell ran as root. AWS says it assesses with high confidence that this was a zero-day.
How would an attacker wire this into an exploit chain?
AWS describes Cairn as a coordinator: give it a starting point and a plain-language objective and it runs multiple agents toward that goal. That is the whole integration. The campaign's inputs were an IP list and a one-line goal, and the chain below came out of the agents' own reasoning.
- Recon and fingerprinting. Identify the framework, enumerate API routes.
- Parameter probing. Test every user-controlled field, such as a filename, for traversal.
- Primitive to execution. Turn an arbitrary file write into code execution. Here that meant overwriting a file Python imports at startup, then triggering a process spawn through a legitimate API call.
- Pivot. In one session the human operator stepped in and supplied a proxy tunnelled into a second university network, and the agents continued against other machines there.
The application is MONAI Label. The GitHub Security Advisory (published November 18, 2026, rated Critical, CWE-22, no CVE yet) says the PUT /datastore/image endpoint uses a caller-supplied image parameter as the image ID without validation. Versions up to 0.8.5 are affected and 0.8.6 is listed as patched. Authentication is off by default (MONAI_LABEL_AUTH_ENABLE=False), so any client that can reach the server can exploit it. A bug that old-fashioned, behind a default that open, is exactly what a tireless agent finds.
What telemetry shows this pattern on a public app?
We can't give you a signature for Cairn, because the sources don't publish one beyond two IP addresses (142.4.98.145 and 142.4.107.34, seen September 8 to 10, which belong in your retro hunt). What the campaign does show is behaviour, and behaviour is detectable. These are our recommendations, not indicators from the AWS report:
- A single client walking the whole API surface. Look for one source hitting many distinct routes, methods and parameter names in a short window, with a high share of 4xx responses. Humans browsing don't do this.
- Traversal strings in any parameter, not just paths. Alert on
../, encoded variants and absolute paths in query strings, multipart filenames and JSON fields. The MONAI bug sat in a query parameter that was used as an ID. - File writes outside the expected directory by the app's service account. On Linux, auditd or an EDR rule for writes to
sitecustomize.py,.ssh/authorized_keys, cron directories or application source by a web or ML service process is high signal and low noise. - A server process spawning an interpreter right after an upload. Upload request, then a training or job endpoint call, then a child Python process making an outbound connection. That sequence is the reverse shell.
- Slow, persistent failure. Sixteen hours of varied attempts against one host, or tens of thousands of credential attempts spread across SSH, VPN and portals, should page someone even when nothing succeeds. Correlate by source across services, since the agents moved between them.
- Internal pivoting. SSRF followed by internal port and service probing from an app host, and new egress tunnels from servers that never had one.
Timing is the harder part. AWS notes that an agent that finds and exploits a zero-day in minutes finishes before many SOCs can manually triage an alert, and recommends high-confidence detections that trigger automated response, with humans overseeing outcomes. We agree. Pick two or three of the detections above that you would trust enough to act on, such as a service account writing outside its directory, and wire them to isolate the host or revoke the session automatically.
How should red teams test their own agent-assisted workflows?
Defenders now need an agent-shaped adversary to practise against. A few ways to run that exercise:
- Give your agentic tooling a goal, not a script. Use a plain-language objective and a scoped target list, as the actor did, and measure time from first request to first alert and from first alert to containment. The 11-minute figure is a useful benchmark for your own number.
- Test the slow path too. Run a low-rate, long-duration campaign for a day. If your rate-based rules only fire on bursts, the Redis and GPU server operations would have gone unnoticed.
- Lock down the tooling itself. The operator's biggest mistake was an unauthenticated Cairn server that exposed prompts, targets and output to the internet. A red team platform holds client data and attack history, so require authentication, keep it off public addresses, log every agent action, and set hard scope limits on target IPs.
- Keep a human gate on exploitation. Let agents recon and probe freely, but require sign-off before anything writes to disk or spawns a process on a client system.
- Turn findings into detections. Each successful step in an exercise should leave a rule behind, tested again after the next release.
This is the loop we run between red and blue team work: offensive testing of public-facing assets, web apps and APIs feeds detections tuned from what actually got through.
What should you check this week?
If you run MONAI Label or anything similar (an ML or imaging service that someone stood up for research), start there. The advisory's workarounds are to enable authentication, avoid granting the ANNOTATOR role to untrusted users, keep the server off untrusted networks, and run it as an unprivileged user with write access limited to the datastore directory. Check that your version is 0.8.6 or later. Then inventory every research or lab service reachable from the internet, since universities, hospitals and labs tend to have plenty of them, and ask each owner whether authentication is on and what account the process runs as.
A process that can only write to its own datastore directory would have turned this root shell into a failed file write.