Cairn Agent Defense: Free Security Fixes Need a Better Sales Team

The 11 minutes in Dark Reading’s headline are saucy! Root? What? OMG. Can it be true?

No.

Unfortunately, it isn’t the story they pretend to have. The 11 minutes actually ended at just a file write. The real story behind the title AI Agents Zip From Flaw Discovery to Root Access in 11 Minutes, is actually found in an Amazon Threat Intelligence report. Cairn AI agents ran against East Asian universities by an operator Amazon ties to China with moderate confidence. Amazon says the agents took about 11 minutes to go from mapping the API of MONAI Label, an open-source server for annotating medical images, to writing arbitrary files on it.

Got root? Nope. Root came later. Another session.

How they got root is important. The urge to count the clock ticks gets in the way of telling the better story. The agents wrote a Python reverse shell into sitecustomize.py, a file Python loads at startup, then called a training endpoint that started a fresh Python process. That process loaded the payload, and because the server ran as root, the shell connected back as root.

I’ll say it again. The server ran as root. So getting to root is, like, right there for the grabbing.

Every step after the file write entry point depended on how the server had been configured. The agents could reach it. I guess that’s something worth calling out, because it doesn’t have to be that way, but set that aside. The bigger point here is the server ran software that accepts requests without a login by default, its process ran as root, and it was free to open a connection out to the attacker. In a separate session the operator tunneled into a second university network, where the agents reached a server running the same software, and Amazon infers the same bug was used there.

The MONAI maintainers named three of these four conditions in their advisory. It states “Authentication is disabled by default,” which means any client that can reach a default install can exploit the bug, and even with authentication on, an account with the annotator role is enough. The security steps here are free, as in actually FREE:

  • Turn authentication on and keep the annotator role away from untrusted users.
  • Keep the server off untrusted networks.
  • Run the server as an unprivileged user that can write only to its datastore.

The fourth condition, a server allowed to connect back out, goes unmentioned by the maintainers and by every expert I have been reading so far in the retelling of the story. A reverse shell is, as the phrase implies, literally desperate for an outbound connection.

The patch took quite a while to arrive. The attack began on 8 September and ran for about 48 hours. The fix was merged on 19 October, the advisory went up on 18 November with no patched version listed, and MONAI Label 0.8.6 shipped on 22 November. That’s a long ten weeks from exploitation to the patched release. I’m not saying that because it has to be sped up, as much as the three free workarounds were available day one.

Even I have been guilty of suggesting a response to AI vuln speed is to increase patch speed. Seems logical. They go faster, we go faster. However, it’s much better expressed at attack faster, defend faster. Vuln/patch is the false dichotomy that needs to be pulled apart. A zero-day arrives before its patch by definition, so the race in this case starts with a handicap. On the other hand, finding the bug is cheap and fast for everyone. Cairn found this one. My own open-source, free, setup I give to organizations lyrik.wirken.ai, reproduced Anthropic’s Mythos showcase findings for $0.745. Discovery speed belongs to everyone now. That means settings of the defender can outpace attackers, agent to agent.

Dark Reading pulled two vendors into a discussion of what defenders should do. That’s like asking a salesman what people should buy. Amazon’s report pitches itself, while the other vendors oriented readers towards what could be paid.

Amazon went with the phrase prioritize “high-confidence detections that trigger automated response,” with humans overseeing outcomes. The same report describes Amazon’s honeypot-based active defense, built into the AWS network at no extra cost to customers. At least that’s like saying buckle your seatbelt, instead of buy a better one. Except the universities weren’t riding in Amazon’s car. Amazon says they weren’t AWS customers, and it had no direct way to notify them. And the settings in the MONAI advisory appear nowhere in Amazon’s guidance.

Cris Thomas, the L0pht alum now a security advocate at Semgrep, whose shame embargo I wrote about earlier, told Dark Reading to review code as it is written. Sounds right. And he said to automate the monitoring and containment of suspicious activity on the server. Also wise. He called this list the fundamentals. But here’s my shocked face to read Semgrep’s homepage that promises to “secure code as it’s written.” In October Thomas published a Semgrep post titled Your Security Tools Won’t Save You. His advice to Dark Reading still points at the tools. That’s the security industry in a nutshell. Do the fundamentals to cook your dinner, where the fundamentals means this ginsu knife right now can be yours for just $19.95, operators are standing by, mention fundamentals and get a free chef hat.

Ross Filipek, CISO at Corsica Technologies, recommended continuous log analysis, an inventory of exposed assets, restricted access to applications only staff need, and a decision in advance on who can isolate a server after hours. That sounds great! I agree. And again, look at how surprised I am that Corsica is a managed security provider selling 24/7 SOC and MDR/SIEM services. I will credit Filipek for stretching into one other point. Restricting access matches the maintainers’ advice to keep the server off untrusted networks, even when it doesn’t lead to a Corsica purchase.

Who Buy Signal
Amazon: automated response to high-confidence detections Cloud with built-in honeypot defense
Semgrep: code review as it is written, automated monitoring and containment Code scanning
Corsica: log analysis, asset inventory, restricted access, after-hours isolation 24/7 SOC, MDR/SIEM
MONAI maintainers: authentication on, off untrusted networks, unprivileged user Nothing

It comes across to me as the group with nothing to sell is the one that wrote the best advice, which matches how the server was popped.

The maintainers released a weak default, which is also a fundamental issue in the story. The 0.8.6 release notes describe authentication as disabled by default and announce no change about this bad practice. They ask operators to apply the hardening “regardless of version.” The fix is right there, yet the maintainers act like it’s not their job to flip the switch into fail-safe. Here’s a fuse burning on a package that will blow everything up, make sure you put it out when I had it to you.

CISA and the FBI put the safety burden on manufacturers in 2024, where it belongs. Their Secure by Design alert on directory traversal says “Approaches to avoid directory traversal vulnerabilities are known,” and its core tenet is that manufacturers build safe behavior into the product itself. Project MONAI had already shipped path traversal bugs in its core library in September 2025 and January 2026.

Amazon’s report also holds a second story, and the coverage told only half of it. Before MONAI Label, the agents spent about 16 hours and 148 actions on a university Redis server configured to allow access without authentication.

Pardon me while I scream out the window for a minute.

The attackers tried replication tricks, a scripting sandbox escape, configuration writes and memory corruption against Redis, and Log4Shell against another service on the same host. They used an SSRF flaw in a Qdrant instance on the same host to map the internal Docker network, then sprayed credentials at PostgreSQL and SSH. Another operation built about 80 usernames from faculty directories and academic papers and tried more than 30,000 credential combinations against SSH and other campus services. Every attempt failed.

Qdrant again.

The CVSS 9.8 I reported to Qdrant back on July 9, published on 22 October, was an internal API that accepts unauthenticated calls by default.

The report lists what the agents tried and leaves all the defenses that stopped them off the table? Working defenses, simple and quick, somehow aren’t the story. I guess free and quiet are hard to sell. Will someone please stand up and do a better job of selling what needs nobody to pay anything except attention?

Amazon saw all of it clearly because the operator left the Cairn panel on a public server running without authentication.

I guess if there’s one thing to take away from all this, it is that MONAI Label ships with authentication missing, and missing authentication on the attacker’s own panel gave Amazon the prompts and output to show how authentication shouldn’t be missing.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.