K Koda Intelligence
DEEP DIVE · SECURITY

AI Agents Cracked a Zero-Day in 11 Minutes

Amazon Threat Intelligence says attacker-run AI agents on the Cairn framework took 11 minutes to go from mapping MONAI Label's API to writing files outside their intended folder. No advisory existed, and as of November 21 no patched release did either. Amazon's public warning came 71 days after it found the exposed Cairn server. We walk the kill chain and show where cheap controls break it before any patch ships.

By the Koda editorial team · · 7 min read

Eleven minutes. Amazon Threat Intelligence says that is how long attacker-run AI agents needed to go from mapping a medical-imaging app's API to writing files outside their intended folder. Amazon said it found no prior advisory or patched release for the flaw. The agents found it themselves.

The app was MONAI Label, open-source software that researchers use to label medical images. Amazon reported that the agents ran on Cairn, an open-source framework that coordinates AI agents for penetration testing. BleepingComputer reports the suspected China-linked operators gave the agents one instruction: "obtain shell access." In a later session, the same flaw delivered root, the highest level of control on the server.

The 11 minutes1 runs from API mapping to file write. It does not include picking the target or the later climb to root, and Amazon has not published how long those stages took. One case is one data point. We think few teams can route an alert to the right owner in 11 minutes2, let alone ship a fix.

Exposure time is the clock that matters

A zero-day is a flaw the vendor does not know about yet, so no fix exists when attackers use it. Most security teams track mean time to patch, the days from advisory to deployed fix. In the MONAI Label case there was no advisory to start that clock. As of November 21, Hacked.com reported, the maintainers had a fix in the code but no patched release.

Attackers measure in minutes while disclosure runs in days.AMAZON THREAT INTELLIGENCE · THE REGISTER · HACKED.COM · BLEEPINGCOMPUTER
Exploit runAmazon · API mapping to out-of-folder file write11 MIN3
Public warning lagAmazon · Sep 10 discovery to Nov 20 report71 DAYS
Attack windowAmazon · Sep 8 through 102,880 MIN
Parallel attemptsKoda estimate · ten agents running nonstop2,600

The clock that still works is exposure time: the minutes from an attacker reaching a flaw to the moment that flaw stops being useful. Exposure time has two levers. Reach is whether an attacker can touch the service at all. Blast radius is what a working exploit can turn into once it lands.

Every fact in the Cairn case lands on one of those levers. On reach, MONAI Label sat on the open internet where an agent could fingerprint it. On blast radius, a file write became code execution because the service could write to a Python startup file. The shell came back with root, which suggests the process held far more privilege than a labeling tool needs.

Reach cut both ways in September. Amazon said it identified the operation on September 10 after finding that the attackers had left their own Cairn instance online without authentication. The maintainers' advice for MONAI Label users teaches the same lesson: restrict network access, enable authentication and limit permissions. The first two shrink reach and the last shrinks blast radius.

Inside the MONAI Label kill chain

Picture Cairn as a temp worker handed an address and a sticky note that says "get inside." It never gets bored. It tries the next door the second the last one stays locked. The Register quotes Amazon CISO CJ Moses on two failed operations: "the agents kept adapting for nearly a full day without human direction."

Neither operation succeeded, yet together they show that the agents kept adapting for nearly a full day without human direction.
CJ Moses, Amazon CISO, The Register

The operator was not absent. Hacked.com notes a person chose the targets and the objective, then stepped in again later. What changed is how much work happened between those check-ins.

Step one, the agents fingerprinted the server as MONAI Label. Step two, they mapped its API, the set of web addresses the app answers. Step three, they found an upload endpoint where the caller chooses the file identifier.

Step four was a path traversal test. It worked. Path traversal means slipping "../" into a filename so the file lands outside the folder it was meant for. Steps one through four fit inside the 11 minutes2. A reverse shell, which comes next, is a small program that dials out to the attacker and hands over a command line.

Step five came in a later session: the agents wrote a Python reverse shell into sitecustomize.py, a file Python's site module tries to import at startup unless run with -S. In step six they triggered an API endpoint, and the shell came back as root. The Register reports the operators used the flaw to break into a university server and, Amazon inferred, a second university network. Hacked.com notes Amazon's account does not establish that patient records were stolen.

Nothing in that chain is exotic. Path traversal is one of the oldest web bugs on the books. sitecustomize.py is documented Python behavior. The agents won on patience. They chained two boring facts at machine speed.

For a builder, each step is a place to cut the wire. Steps one and two need reach, so authentication or an IP allow-list on the API ends the run before fingerprinting finishes. Step four needs loose path handling, so resolve the full path and refuse anything outside one fixed upload folder. Step five needs write access to Python's startup files, which a read-only container image removes.

Step six needs two things: privilege and an open line out. Run the service as an unprivileged user and block outbound connections it never uses. Any one of those changes would have broken the chain before a patch existed. None of them requires waiting on the MONAI maintainers.

Price your side in engineer minutes. A firewall rule or a disabled route takes one person a few minutes to apply. A code fix needs review and a release, which is why MONAI Label still had no patched release on November 21.

Will minute-scale exploits be normal by 2031?

Two dates carry the arc. Amazon found the exposed Cairn server on September 10, 2026,4 and published on November 20. That is 71 days, or about 102,000 minutes. Divide by 11 and the public warning took roughly 9,300 times as long as the agents' run.

Investigations take time, and that gap will not close soon. The attacker side scales the other way. Amazon dates the attacks to September 8 through 10,4 roughly 48 hours, which is 2,880 minutes. At 11 minutes3 a try, one agent running nonstop gets about 260 attempts in that window. Ten in parallel get about 2,600.

Will 2031 look like this everywhere? The popular line says the window shrank from weeks to minutes, yet no one has pinned down what the weeks measured. One case cannot give a median time to exploit, and MONAI Label was an exposed research tool with a direct upload bug. Repeatable tests across many apps and agent frameworks would settle it. We have not seen any published.

The bet is lopsided anyway. If minute-scale exploits stay rare, the controls above still stop ordinary attackers, for the cost of a few weekends. If they become normal, every team still running on mean time to patch meets the next Cairn with a calendar. Cheap retries also compound: an agent can grind through abandoned projects and internal admin pages that no human operator would bother with.

We think the deciding variable by 2031 is permission. The same agents that map an API for an attacker can map yours first. They only help if someone has authorized them to act on what they find. Teams that let a defensive agent pull a route or quarantine a container without a meeting will hold exposure time near the attacker's clock.

Drill a ten-minute kill switch

The goal: one exposed service with one scripted switch, timed against the 11-minute2 mark. Then you rerun it every month.

First, list what the internet can reach. Pull the public load balancers and open security groups from your cloud console, or scan your own IP range from outside the network. Forgotten demo servers go to the top.

Second, pick one service and write down the single action that cuts its reach. Usually that is a security-group change or a disabled route at the API gateway. An API gateway is the front door every request passes through before it reaches your app.

Third, turn that action into one command checked into the repo. Whoever is on call should be able to run it without asking anyone. If it needs a credential, store it where the on-call role can already reach it.

Fourth, time a drill against a real page to the on-call engineer. Start the timer when the page goes out, and stop it when outside traffic gets refused. Expect the first run to break on something dull, like an expired token or a missing permission. Fix it, run it again and keep cutting until you beat 11 minutes1.

Fifth, shrink blast radius on the same service. Check which user the process runs as and move it off root. Mount the container filesystem read-only, with one writable folder for uploads. Then watch sitecustomize.py and any .pth files in site-packages with file-integrity monitoring, a tool that alerts whenever a watched file changes.

Sixth, check whether the container can dial out to the internet. From inside it, run curl against a server you control. If it connects and the app never needs the open internet, turn on egress filtering, which blocks outbound traffic unless you allow it. A reverse shell that cannot dial out is a dead file.

Write the drill time in a shared doc and rerun it on the first Saturday of each month. Then move to the next service on the list. Each one you finish takes a target off the board for an agent that never stops checking.

Practise it step by step: Train the full skill in The Dojo

The bottom line

Patch cycles cannot win this race, so shrink exposure today.

The MONAI Label chain used an old web bug and documented Python behavior, and each step needed reach, loose path handling, write access or root. Removing any one of those would have stopped the agents before a fix existed. A firewall rule takes minutes, while a code release took longer than the whole attack campaign. We recommend timing your kill switch this month and rerunning it on the first Saturday of every month after.

LISTEN · AUDIO BRIEFINGThe conversation · ~17 min
WATCH · VISUAL NARRATIVEAnimated breakdown · ~7 min
PLAY · YOUTUBE

Sources

Numbers in the text point here. Verified means we confirmed it against the source; Reported means the source states it and we could not confirm it independently.

  1. 1aviatrix.ai · The 11-minute figure for the MONAI Label attack runs from API mapping to file write and excludes target selection and...Reported
  2. 2agentbeam.com · Steps one through four of the MONAI Label attack chain fit inside 11 minutesReported
  3. 3shiftdelete.net · Amazon Threat Intelligence says attacker-run AI agents needed 11 minutes to go from mapping MONAI Label's API to...Reported
  4. 4aws.amazon.com · Amazon found the attackers' exposed Cairn instance on September 10, 20261 verified, 1 reported

How this piece was checked

Before publishing we pulled 28 claims out of the draft and checked each one against live sources: 7 verified, 13 reported by a named source and 4 our own calculations. 4 claims were cut from the copy.

See all 28 claims
  1. 01MONAI Label is open-source software that researchers use to label medical imagesgithub.comVerified
  2. 02Cairn is an open-source framework that coordinates AI agents for penetration testinggithub.comVerified
  3. 03Amazon said it found no prior advisory or patched release for the flaw.securityweek.comReported
  4. 04Amazon reported that the agents ran on Cairn, an open-source framework that coordinates AI agents for penetration testing.aviatrix.aiReported
  5. 05BleepingComputer reports the suspected China-linked operators gave the Cairn agents one instruction: "obtain shell access"bleepingcomputer.comVerified
  6. 06Amazon has not published how long the target-selection and root-escalation stages of the MONAI Label attack tooksecurityweek.comVerified
  7. 07In a later session, the MONAI Label flaw delivered root access on the server to the attackersbleepingcomputer.comReported
  8. 08Amazon Threat Intelligence says attacker-run AI agents needed 11 minutes to go from mapping MONAI Label's API to writing files outside their intended foldershiftdelete.netReported
  9. 09The 11-minute figure for the MONAI Label attack runs from API mapping to file write and excludes target selection and the later escalation to rootaviatrix.aiReported
  10. 10Steps one through four of the MONAI Label attack chain fit inside 11 minutesagentbeam.comReported
  11. 11Amazon dates the Cairn attacks to September 8 through 10aws.amazon.comReported
  12. 12Removed during the check; its text is not republished.assets.theregister.comCut
  13. 13Removed during the check; its text is not republished.assets.theregister.comCut
  14. 14Removed during the check; its text is not republished.assets.theregister.comCut
  15. 15Amazon found the attackers' exposed Cairn instance on September 10, 2026aws.amazon.comVerified
  16. 16Amazon published its report on the Cairn MONAI Label attack on November 20, 2026theregister.comVerified
  17. 17Step five came in a later session: the agents wrote a Python reverse shell into sitecustomize.py, a file Python's site module tries to import at startup unless run with -S.bleepingcomputer.comReported
  18. 18Hacked.com reported that as of November 21, the MONAI Label maintainers had a fix in the code but no patched releasehacked.comVerified
  19. 19Amazon said it identified the operation on September 10 after finding that the attackers had left their own Cairn instance online without authentication.bleepingcomputer.comReported
  20. 20The MONAI Label maintainers advise users to restrict network access, enable authentication and limit permissionshighlimitdesigns.comReported
  21. 21The Register quotes Amazon CISO CJ Moses on two failed operations: "the agents kept adapting for nearly a full day without human direction."theregister.comReported
  22. 22Hacked.com notes a human operator chose the targets and the objective of the Cairn MONAI Label attack, then stepped in again laterhacked.comReported
  23. 23Removed during the check; its text is not republished.pasqualepillitteri.itCut
  24. 24The Register reports the operators used the flaw to break into a university server and, Amazon inferred, a second university network.theregister.comReported
  25. 25The 71 days between September 10 and November 20 equal about 102,000 minutesKoda calculationOur math
  26. 26102,000 minutes divided by 11 means Amazon's public warning took roughly 9,300 times as long as the agents' 11-minute runKoda calculationOur math
  27. 27September 8 through 10 is roughly 48 hours, or 2,880 minutesKoda calculationOur math
  28. 28At 11 minutes per attempt, one agent running nonstop for 2,880 minutes gets about 260 attempts, and ten agents in parallel get about 2,600Koda calculationOur math

How we check · Audit KODA-20261123-CBBDA78DD33B

Browse the Deep Dive archive

Get the morning Signal

240 editions so far, one a day. Unsubscribe anytime.