Amazon says Cairn AI agents exploited MONAI Label zero-day

Amazon says Cairn AI agents exploited MONAI Label zero-day

Add CyberWorldOpsto your preferred sources on Google
Amazon says Cairn AI agents exploited MONAI Label zero-day
AI

Illustrative image generated with AI

AI agents used by a hacker found an unpatched flaw in a medical imaging application and later exploited it to gain administrator-level control of a university server, Amazon Threat Intelligence said. The vulnerability affects MONAI Label, whose maintainers have merged a fix and published protective steps for organizations running the software.

The campaign targeted university IP addresses in East Asia outside mainland China over approximately 48 hours beginning September 8, 2026. Amazon discovered the activity on September 10 through an unauthenticated, publicly accessible installation of Cairn, an open-source framework that coordinates AI agents for penetration testing. Its exposed history included project settings, attacker prompts and agent output.

MONAI Label administrators should pay particular attention to network exposure and permissions. The project’s security advisory says authentication is disabled by default, allowing any network client that can reach a default installation to exploit the flaw. When authentication is enabled, an account with the ANNOTATOR role is sufficient.

From an upload parameter to root access

Amazon said the operator supplied target IP addresses and variations of the instruction “obtain shell access.” The agents then planned and adjusted their attacks without the operator selecting each step.

Against the medical imaging application, they identified its framework, mapped its API—the interfaces used to invoke application functions—and found an upload parameter vulnerable to path traversal. That flaw lets a caller manipulate a file path to reach locations outside the intended directory. In about 11 minutes, the agents progressed from mapping the API to writing arbitrary files on the server.

Root access came in a later session. The agents wrote malicious Python code into sitecustomize.py, which Python automatically imports when an interpreter starts. They then invoked a training API endpoint to launch a Python process. It loaded the code and opened a reverse shell, a connection back to the attacker that enabled remote commands, running as root.

Amazon assessed with high confidence that the flaw was a zero-day at discovery: it found no corresponding fix, issue, advisory or prior vulnerability-database entry for the project.

The MONAI Label advisory explains that PUT /datastore/image accepts an unvalidated image query parameter as an image ID. LocalDatastore.add_image() appends an extension, joins the ID to the datastore directory and copies the upload to that path without checking that it remains inside the datastore. For example, ../../../tmp/x can direct the upload outside that directory, wherever the process has write permission. LocalDatastore.save_label(), used by PUT /datastore/label, similarly constructs destinations from the image ID and label tag.

The maintainers say arbitrary file writes can enable remote code execution through overwritten application code, .ssh/authorized_keys entries or cron scheduling files. Overwriting configuration files can also cause denial of service.

After the discovery, the human operator supplied a proxy into a second university network and directed the agents to target other machines there. Amazon inferred that the operator had compromised the proxy-connected server using the same flaw because it ran the same vulnerable software.

Persistent attacks also failed

Other operations in the campaign showed sustained activity without successful access. Against a university Redis instance, an in-memory database accessible without authentication, the agents performed 148 sequential actions over roughly 16 hours. They tried abusing replication to load unauthorized code, escaping its scripting sandbox, writing configuration files and corrupting memory. A Log4Shell injection attempt against another service on the system also failed.

The agents then used a server-side request forgery vulnerability in a neighboring Qdrant instance—a flaw allowing requests from the server—to map the internal Docker container network. They tried credential spraying against PostgreSQL, SSH and other services, without success.

A separate operation targeted a university GPU research server for more than six hours. The agents gathered about 80 real usernames from faculty directories, laboratory websites, archived pages and academic papers. They tested more than 30,000 credential combinations against SSH remote login and, elsewhere on the university network, an administration dashboard, network storage, a VPN server and the campus portal. They found no working login.

Amazon attributed the campaign to a Chinese-nexus actor with moderate confidence, citing Simplified Chinese prompts, script timestamps configured to China Standard Time and university targets it considered likely to hold strategic interest for China.

Cairn coordinates agents through a shared graph of facts and hints, with a dispatcher scheduling work in dedicated containers. It supports different models and worker backends, including Claude Code, Codex and Pi. Ars Technica reported that Palo Alto Networks had also observed GLM 5.2, DeepSeek V4 Flash and DeepSeek V4 Pro in use with it.

In a separate campaign described earlier in November, Palo Alto Networks reported 25 autonomous operations against at least 19 semiconductor, defense and civil society organizations, with at least 10 breached. Reported outcomes included access to dozens of valid credentials, exposure of more than one million personal-data records at one organization, retrieval of military and government identities, persistent administrator accounts and modification of a live industry standards-ballot document. Attackers supplemented Cairn’s built-in exploitation and data-exfiltration instructions with claims that the work was authorized. Amazon also cited Gambit Security’s separate reporting on a financially motivated actor targeting online retailers with Cairn.

Fixes and defensive response

Amazon notified the project’s maintainers, who merged the fix in pull request #1915 and published an advisory. The issue was first reported privately against the MONAI repository, then moved to MONAI Label because that repository contains the affected code. The MONAI Label advisory says the fix will be included in its next release.

The patch resolves upload destinations and rejects paths outside the datastore image and label directories. The image endpoint also reduces IDs to their basename and rejects empty or dot-prefixed IDs with HTTP 400.

Until they can upgrade, administrators should follow the maintainers’ workarounds: enable authentication with MONAI_LABEL_AUTH_ENABLE=True, withhold ANNOTATOR access from untrusted users, keep the server off untrusted networks and run it as an unprivileged user whose write access is limited to the datastore directory.

AWS worked through a government partner to notify the affected organizations, which were not AWS customers and had no direct notification path. Amazon listed 142[.]4.98.145 and 142[.]4.107.34 as indicators appearing in records dated September 8–10, 2026.

Amazon says its AWS network protections use honeypots and traffic analysis to identify scanning actors and help restrict their activity at no extra customer cost. For defenders facing the speed and persistence observed here, it recommends prioritizing high-confidence detections that trigger automated response, with people overseeing outcomes.

Read next

Sources

Back to home

Latest Cybersecurity News

All cybersecurity news →