AI Agents Found and Exploited a Zero-Day on Their Own. Now What?

Rack of servers with network cables in a server room

Amazon says a suspected China-linked operator pointed a team of AI agents at university networks, gave them one goal, “obtain shell access”, and let them work out the rest. After many failed attempts, the agents found an unknown path traversal flaw in MONAI Label, an open-source tool for building medical imaging AI, and used it to get a root shell. The flaw is still unpatched in any released version. If your organization runs research or AI tooling on the network, this is a warning about what the next year of attacks will look like.

What happened

On 20 November 2026, Amazon’s CISO CJ Moses published an account of an investigation by Amazon Threat Intelligence. Amazon found the operator’s server on 10 September, after a campaign that started on 8 September and ran for about 48 hours. The server was running Cairn, an open-source AI penetration testing framework. Cairn is the name of the tool, not of a threat group.

Amazon assesses with moderate confidence that the operator is a Chinese-nexus actor. It bases this on Simplified Chinese prompts, scripts timestamped in China Standard Time, and the choice of targets: universities in East Asia outside mainland China. Amazon did not name a group or tie the activity to a government.

The operator gave the agents a list of target IP addresses. The agents chose their own methods. According to Amazon, most of what they tried failed:

  • A 16-hour run of 148 sequential actions against a Redis service at one university went nowhere.
  • Attempts with Log4Shell, server-side request forgery through a vector database, and password sprays against PostgreSQL and SSH also failed.
  • A six-hour push against a university GPU server, with more than 30,000 username and password combinations, failed too.

Then the agents reached a medical imaging AI application. They identified the framework, mapped its API and found an upload endpoint that took a filename. They tested it for path traversal, and it was vulnerable. Amazon says the agents went from mapping the API to writing arbitrary files on the server in about 11 minutes. Note what the 11 minutes covers: file write, not root. Root came in a later session.

How the attack worked

The GitHub security advisory (GHSA-qc22-rmgc-vg94, rated Critical, CWE-22) explains the bug. The PUT /datastore/image endpoint takes an image ID from the caller and uses it, unchecked, to build the path where the uploaded file is saved. The PUT /datastore/label endpoint has the same problem. A caller can therefore write a file anywhere the server process can write.

The agents used this to plant a Python reverse shell in a sitecustomize.py file, which Python loads automatically when it starts. They then called a training endpoint in the application. Training starts a new Python process, that process loaded the planted file, and the agents had a shell running as root.

Two design choices made this worse. First, authentication in MONAI Label is off by default (MONAI_LABEL_AUTH_ENABLE=False), so anyone who could reach the server could reach the endpoint. Second, the service was running as root, so a file-write bug became full control of the machine.

Amazon also says the operator later gave the agents a tunnel into a second university network running the same software. Amazon infers that this server had already been compromised with the same zero-day; it has not shown proof of that.

Why it matters

The agents were not brilliant. They spent hours on dead ends that a skilled human would have dropped sooner. But they are cheap, they do not get tired, and they kept trying until they found a weak spot nobody had reported before. Amazon says it has high confidence the flaw was a true zero-day, because it found no earlier advisory, issue or database entry for it.

That changes the economics for defenders. Niche software that was “too obscure to target” is no longer safe, because an agent can read an unfamiliar API and probe it for common bug classes in minutes. We made a similar point about the defender’s side when AI-driven bug hunting swelled Patch Tuesday: AI is speeding up discovery for everyone, and attackers will not wait for disclosure timelines like the one in Project Zero’s new 30-day policy.

It also highlights a blind spot. University labs and research teams often run AI and data science tools that IT never set up: annotation servers, notebooks, model training dashboards. These are typically built for convenience, ship with authentication off, and get exposed to the network so colleagues can use them. As with the forgotten access we covered last week, what you do not know you run is what gets you hurt.

The advisory was published on 18 November. At the time of writing, it lists no patched version: the fix (pull request #1915) has been merged into the source code, and the maintainers say it will ship in the next MONAI Label release. Every published version up to and including 0.8.5 is affected. Amazon and the advisory do not report that patient data or clinical systems were involved, and there is no public evidence that they were.

What organizations should do

  1. Find MONAI Label. Check servers, GPU boxes and containers for the monailabel Python package, and check your perimeter scans for its web service. Ask research groups directly; many installs will not be in any asset inventory.
  2. Take it off untrusted networks. Until a fixed release ships, nothing outside a trusted segment or VPN should be able to reach it. The advisory itself recommends this.
  3. Turn authentication on. Set MONAI_LABEL_AUTH_ENABLE=True and do not give the ANNOTATOR role to untrusted users, since that role is enough to reach the vulnerable endpoints.
  4. Stop running it as root. Run the service as an unprivileged user that can write only to its datastore directory. That single step would have turned this compromise into a much smaller problem.
  5. Hunt for signs of compromise. Look for unexpected sitecustomize.py or other startup files in Python paths, new authorized_keys entries or cron jobs, and training jobs nobody started. Amazon published two IP addresses tied to the activity between 8 and 10 September: 142.4.98[.]145 and 142.4.107[.]34.
  6. Apply the same review to all research AI tools. Audit annotation servers, notebook servers and model dashboards for default-off authentication, internet exposure and root privileges. Assume attackers will try every endpoint that accepts a filename.
  7. Make detection fast and automatic. Amazon’s own advice is to prioritize high-confidence detections that trigger automated response, with humans overseeing the outcomes. Agents that run for 16 hours straight will outlast a team that checks alerts once a day.

The bottom line

This is one of the first public, detailed accounts of AI agents finding and exploiting a previously unknown flaw with little human direction. The agents failed far more often than they succeeded, and the bug they found was a basic one. That is the lesson: attackers no longer need rare skill to find basic bugs in obscure software, only time and compute. Defenders who know what they run, keep authentication on and stop running services as root will be well placed for this shift. Those who leave research tools open on the network will be found, by a machine, sooner than they expect.

Leave a Reply

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

Newsletter

Get the WWCN brief

The week’s most important cybersecurity stories and practical guides, explained in plain English.

No spam. Unsubscribe at any time.

Latest

Sections

More from World Wide Cyber News

World Wide Cyber News is published by VisualNest, a web, SEO and cybersecurity studio.