AI Agents Weaponized to Exploit Zero-Day Vulnerability in Medical Imaging Software

In a chilling demonstration of the accelerating intersection between artificial intelligence and offensive cyber operations, security researchers at Amazon have uncovered a campaign where AI agents autonomously identified and exploited a zero-day vulnerability in MONAI Label. This open-source medical imaging AI application, widely utilized in research and clinical settings for automated annotation and model training, became the target of a sophisticated campaign that highlighted both the agility of modern threat actors and the critical lag between vulnerability discovery and software patching.

According to a report released by Amazon on Friday, the attack occurred over a 48-hour period starting September 8, primarily targeting university networks across East Asia, excluding mainland China. Amazon security analysts, who have attributed the campaign to a China-nexus threat actor with moderate confidence, observed the agents operating with chilling efficiency. In one instance, the AI-driven attack cycle required only 11 minutes to move from initial exploration to the successful execution of arbitrary file writes outside the application’s designated storage directory.

Autonomous Exploitation and the "Cairn" Framework

The discovery came to light after Amazon security researchers stumbled upon a server used by the attackers on September 10. The server was hosting an instance of "Cairn," an open-source framework specifically designed to coordinate AI agents for security testing purposes. In an unusual turn of events, the researchers found the server running without authentication, allowing them to inspect the very prompts and commands the attackers had fed into their AI agents.

The operational logs revealed a stark, goal-oriented methodology. The attackers provided their AI agents with a single, clear objective: "obtain shell access." The agents, acting with autonomy, probed the MONAI Label application and successfully identified a flaw in its file-upload mechanism. By manipulating this feature, the agents were able to bypass directory restrictions, effectively writing malicious files to sensitive areas of the server’s file system.

In subsequent sessions, the agents utilized this same vulnerability to execute malicious code, ultimately granting them full, unauthorized control over the targeted servers. Amazon’s analysis confirmed that the flaw was indeed a zero-day at the time of discovery, as there were no prior patches, security advisories, or entries in public vulnerability databases that addressed the specific path traversal issue.

A Critical Patch Stuck in Limbo

The revelation of this exploitation has placed a spotlight on the often-sluggish nature of the open-source patch lifecycle. While the security community and the MONAI Label project maintainers have acknowledged the severity of the flaw, the remediation process has been marred by a significant delay in deployment.

On Wednesday, the maintainers of MONAI Label issued a formal GitHub security advisory. The advisory confirms that the vulnerability affects version 0.8.5 and all preceding versions of the software. While a fix for the flaw was officially merged into the project’s main codebase on October 19 via pull request #1915, it has yet to be bundled into a public release. As of late November, the most current version available on the Python Package Index (PyPI) remains 0.8.5, which was last updated on November 25, 2024—a date that ironically follows the discovery of the flaw by several weeks.

This leaves users of the software in a precarious position. The advisory highlights that the default configuration of MONAI Label does not require authentication, meaning that any server exposed to the internet is potentially vulnerable to an immediate, automated compromise. Even in instances where administrators have taken the step of enabling authentication, the vulnerability remains exploitable by any user assigned the "ANNOTATOR" role, a common permission level in collaborative medical imaging environments.

Mitigating Risk in the Absence of a Patch

For administrators currently managing MONAI Label installations, the lack of a patched release necessitates immediate defensive action. Organizations must first conduct a thorough audit of their infrastructure to identify any servers running version 0.8.5 or earlier. Until a formal release is published that incorporates the fix from pull request #1915, the project maintainers have recommended specific workarounds to limit the attack surface.

Beyond implementing these temporary mitigations, the reality of the situation requires a more proactive approach to incident response. Because Amazon has documented active, successful exploitation of this flaw, the assumption should be that any exposed server might already be compromised. Administrators are urged not to rely solely on future patches; instead, they should conduct comprehensive forensic reviews of their existing servers.

Key indicators of compromise include unexpected modifications to application files, the presence of unauthorized executable scripts, or unusual patterns in server traffic. It is critical to note that simply enabling authentication or updating the software after the fact will not remediate an intrusion that has already occurred. If an attacker has gained shell access, they likely possess the persistence required to maintain their foothold even after the primary vulnerability is addressed.

The incident serves as a stark warning to the healthcare and research sectors regarding the security of AI-integrated software. As frameworks like Cairn make it increasingly trivial for actors to deploy autonomous agents against legacy or unpatched software, the window for defense is narrowing. The 11-minute turnaround observed by Amazon demonstrates that the speed of discovery and exploitation is vastly outpacing traditional human-led response cycles.

As the MONAI Label team works toward a new release, the burden of security falls squarely on the shoulders of the administrators managing these high-value research tools. The transition from manual hacking to autonomous, AI-driven exploitation is no longer a theoretical risk—it is a current operational reality. In the absence of a patched release, vigilance, internal network segmentation, and rigorous log monitoring remain the most effective tools for protecting medical imaging data from these emerging, automated threats. Until the software is updated, the risk of full server takeover remains a persistent threat, requiring organizations to treat their MONAI Label deployments as high-risk assets within their wider network security strategy.

Share:

Asro writes for Tech Maze.