AI Agent Exploits Zero-Day in Medical Imaging Software
An autonomous AI agent exploited a critical zero-day vulnerability in medical imaging software to achieve arbitrary file writes and full root access on a university server within 11 minutes. Amazon attributed the operation with moderate certainty to a China-associated threat actor utilizing the Cairn framework.

Key Takeaways
- An autonomous AI agent discovered and exploited an unpatched path traversal vulnerability within 11 minutes without human intervention.
- Exploitation targeted Project MONAI Label, leveraging insecure file writing to achieve arbitrary code execution as root.
- Threat actors injected a reverse shell into Python startup scripts to maintain persistence and trigger execution during model training.
- Mitigation requires updating MONAI Label to version 0.8.6, enforcing authentication, and running containers with non-root privileges.
Security teams managing machine learning workloads and healthcare research infrastructure must immediately audit public-facing application endpoints and verify container privilege configurations. A recent incident involving an autonomous AI agent demonstrated that unauthenticated services can be identified, weaponized, and compromised at machine speed without continuous human guidance. Threat actors deployed an automated agentic framework against an East Asian university server running specialized medical imaging software, discovering an unpatched zero-day vulnerability and establishing root-level code execution within approximately 11 minutes. Amazon Threat Intelligence attributed the campaign with moderate certainty to a China-associated threat actor cluster operating the open-source Cairn multi-agent framework.

This intrusion marks a critical transition in the threat landscape, showing how offensive multi-agent frameworks reduce the operational cycle between initial asset discovery and full system compromise. Organizations must evaluate their internet-facing systems through rigorous attack surface management and maintain strict container isolation to prevent rapid privilege escalation across exposed infrastructure.
Affected Versions and Operational Conditions
The primary target of the attack was Project MONAI Label, an open-source intelligent image labeling and annotation platform widely utilized in medical imaging and deep learning research. The affected software versions and configurations include:
Affected Versions: MONAI Label releases through version 0.8.5, distributed via PyPI packages and official container deployment images.
Patched Release: MONAI Label version 0.8.6, which implements strict filename sanitization and directory resolution controls.
Default Authentication State: The software was deployed with default settings where built-in authentication was disabled (configured with
MONAI_LABEL_AUTH_ENABLE=False), exposing REST API routes directly to inbound network traffic.Elevated Container Privileges: The application process ran with root user privileges inside its host container environment, a common misconfiguration in academic and research environments seeking to simplify hardware acceleration access.
Exposed Storage Endpoints: Application datastore upload handlers, specifically the
PUT /datastore/imageandPUT /datastore/labelendpoints, were reachable without network perimeter boundaries or authentication gateways.
When deployed under these conditions, any network client capable of reaching the web application could interact directly with backend file management APIs, allowing autonomous agents to systematically probe parameters without triggering authentication barriers.
CVE-2026-133968 — CVSS Score
Critical path traversal leading to arbitrary file write and remote code execution.
MONAI Label Vulnerability Status
Affected versions
- MONAI Label through 0.8.5
Fixed versions
- MONAI Label 0.8.6
Technical Root Cause and Path Traversal Flaw
The fundamental technical root cause is a path traversal flaw (classified under CWE-24) within the application's file storage logic. The API routes designed to accept uploaded medical scans and annotations accepted arbitrary filename values from incoming HTTP PUT requests. The underlying Python codebase passed user-controlled filename strings directly to file transfer routines, such as shutil.copy(), without path normalization, input sanitization, or boundary validation against the designated datastore root directory.
Because directory traversal sequences like ../../ were not stripped or blocked, an attacker could supply relative path sequences to write arbitrary file content into any location accessible to the process on the underlying filesystem. In this intrusion, the autonomous AI agent leveraged the arbitrary file write primitive to achieve remote code execution through Python startup environment manipulation:
Startup Hook Hijacking: The agent targeted Python's module initialization behavior by writing a malicious payload directly into
sitecustomize.pylocated within the system's Python module search directory.Payload Structure: The injected file contained a standard Python reverse shell configured to establish an outbound TCP connection back to the attacker's command listener.
Execution Trigger: Instead of waiting for a system reboot or service restart, the agent issued an HTTP request to the application's
/trainendpoint. In MONAI Label, triggering a model training task initiates a fresh Python subprocess.Privilege Inheritance: As the new Python process spawned, it automatically imported
sitecustomize.pybefore executing application code. Because the base service executed as root, the spawned reverse shell inherited complete root privileges.
Understanding such complex multi-step attack chains highlights why regular penetration testing is indispensable for identifying hidden logic flaws before adversaries locate them.
Active Exploitation Status and Observed Attack Chain
Amazon Threat Intelligence observed active exploitation in the wild, noting that the entire initial intrusion phase was completed autonomously in approximately 11 minutes. The adversary utilized Cairn, an open-source multi-agent autonomous framework. The operator initialized the campaign by providing target university IP ranges and setting an overarching objective in Simplified Chinese instructing the agents to gain shell access.
The observed exploitation lifecycle unfolded through several distinct stages:
Initial Reconnaissance: The autonomous agents scanned the target IP address, cataloged listening network ports, mapped exposed HTTP routes, and identified the running MONAI Label service.
Vulnerability Discovery: Sub-agents tested input parameters on exposed datastore upload routes, observing that traversal sequences in the upload filename parameter resulted in successful file creation outside the application boundary.
Arbitrary File Write: Within 11 minutes of first network contact, the agents confirmed write capability and placed the reverse shell script into the Python runtime search path.
Process Execution and Shell Delivery: The agent triggered the training endpoint, initiating the reverse shell and connecting back to external attacker infrastructure hosted on external IP addresses including
142.4.98.145and142.4.107.34.Subsequent Lateral Operations: Once root access was established, the adversary leveraged the compromised university host as a local network proxy. The agents subsequently conducted automated internal discovery against neighboring infrastructure, including a Redis container and an internal Qdrant vector database, while attempting credential spray attacks against administrative portals.
The operational agility demonstrated by this autonomous framework underscores how machine-driven exploitation compresses the detection and reaction window for defending teams.
Autonomous Agent Exploitation Chain
- 1Reconnaissance
API routes mapped autonomously
- 2Zero-Day Discovery
Path traversal identified on upload API
- 3Arbitrary File Write
Reverse shell written to sitecustomize.py
- 4Execution Trigger
HTTP request to /train runs hook as root
- 5Lateral Operations
Compromised host used as proxy pivot
Blast Radius and Enterprise Scope
While the confirmed incident targeted academic research environments in East Asia, the blast radius of this attack class extends across healthcare enterprises, pharmaceutical developers, and organizations running self-hosted artificial intelligence platforms. The impact includes:
Compromise of Sensitive Research Data: Medical imaging environments routinely process confidential diagnostic datasets, proprietary algorithmic models, and clinical research data subject to stringent privacy regulations.
Infrastructure Weaponization: Gaining root privileges on high-performance compute nodes grants attackers substantial GPU and CPU compute power, which can be repurposed for password cracking, cryptocurrency mining, or secondary offensive operations.
Internal Network Foothold: As demonstrated in the campaign, attackers quickly converted the compromised server into a proxy pivot point, allowing them to bypass perimeter firewalls and inspect internal subnets.
Identity and Credential Exposure: Compromised servers frequently contain API tokens, cloud provider metadata credentials, and SSH keys that expand adversary access into connected cloud environments.
Institutions operating complex research and machine learning stacks must ensure continuous vulnerability assessments are conducted to prevent untrusted services from serving as initial entry vectors.
Intrusion Blast Radius
- Medical Imaging Datasetshigh
- GPU Compute Clustershigh
- Internal Vector & Cache Storesmedium
- Campus Internal Subnetshigh
Patch Deployment, Mitigation, and Verification
Securing systems against this vulnerability and similar autonomous exploit patterns requires immediate software upgrades combined with structural architectural hardening.
Patch Deployment
Administrators must immediately update Project MONAI Label to version 0.8.6 or later. Upgrades can be performed via PyPI using pip install -U monailabel>=0.8.6 or by deploying updated container images tagged 0.8.6 or newer. The update implements rigorous path validation that neutralizes path traversal characters in datastore upload parameters.
Workarounds and Environmental Hardening
If an immediate software upgrade cannot be applied, organizations should apply the following mitigations without delay:
Enable Application Authentication: Configure
MONAI_LABEL_AUTH_ENABLE=Truein the application environment variables and enforce strict role-based access control to restrict annotator access to authenticated users.Network Perimeter Isolation: Ensure MONAI Label, Redis, and associated vector databases are strictly isolated from the public internet. Access should be restricted through private corporate VPNs, bastion hosts, or zero-trust network access (ZTNA) solutions.
Enforce Least Privilege: Modify Dockerfile definitions or deployment manifests so that the application service runs under a dedicated, unprivileged operating system user rather than root. File write permissions should be strictly confined to designated upload folders.
Verification and Threat Hunting
Defenders should verify their environments for indicators of prior exploitation by conducting the following forensic and monitoring checks:
Web Server Log Inspection: Search web application firewall and proxy logs for HTTP
PUTrequests directed at/datastore/imageor/datastore/labelcontaining directory traversal characters such as..or%2e%2e.Integrity Monitoring of Python Paths: Review Python runtime directories for unexpected files, specifically inspecting
sitecustomize.pyandusercustomize.pyacross all Python package directories.Process Hierarchy Monitoring: Inspect process creation events where Python web application processes spawn unexpected child shells, such as
/bin/bash,/bin/sh, or outbound socket connections initiated directly after calls to training endpoints.Network Connection Auditing: Inspect firewall and NetFlow records for outbound connections to known suspicious infrastructure, including
142.4.98.145and142.4.107.34.
Any system exhibiting unauthorized modifications within Python startup paths should be immediately isolated, forensically imaged, and rebuilt from known clean configuration baselines.
Indicators of Compromise
- cveCVE-2026-133968MONAI Label path traversal flawcveCVE-2026-133968MONAI Label path traversal flaw
- ip142.4.98.145Adversary command listener / attack infrastructureip142.4.98.145Adversary command listener / attack infrastructure
- ip142.4.107.34Adversary command listener / attack infrastructureip142.4.107.34Adversary command listener / attack infrastructure
Remediation & Hardening Checklist
- Upgrade MONAI Label to version 0.8.6 or laterInstall via PyPI or update container deployment image
- Enable built-in authenticationSet MONAI_LABEL_AUTH_ENABLE=True and enforce role-based access
- Isolate server behind VPN or zero-trust boundaryRemove MONAI Label, Redis, and Qdrant instances from public routing
- Drop container root execution privilegesRun application daemon as an unprivileged service user
- Inspect Python runtime paths for startup hooksAudit sitecustomize.py and usercustomize.py for unauthorized modifications
How to Defend Against Similar Threats
- Upgrade MONAI Label installations immediately to version 0.8.6 or newer to remediate the path traversal vulnerability.
- Enable mandatory authentication by configuring MONAI_LABEL_AUTH_ENABLE to True and restrict access behind a secure VPN.
- Implement file integrity monitoring on Python site-packages directories to detect unauthorized additions of sitecustomize.py.
- Reconfigure container runtime environments to execute application processes under non-privileged service accounts rather than root.
Threat Intel FAQ
How did the AI agent achieve arbitrary file execution in MONAI Label?
What software versions are affected by this vulnerability?
What immediate steps should security teams take to mitigate risk?
Could a similar threat affect your organization?
If your team may be exposed to a similar threat, FemtoSec can help validate blast radius, prioritize remediation, and connect the issue to a practical security program.
Related Threats

June 21, 2026
Libsodium and NaCl Zero-Day Risks: Enterprise Impact
A threat actor is reportedly offering a malware framework exploiting vulnerabilities in libsodium and NaCl. We analyze the risks to enterprise cryptographic integrity and provide mitigation steps.

August 28, 2026
AI Commerce Platform Zero-Day Breach Analysis
A threat actor has claimed the exfiltration of 25 million records and 14 GB of internal data from conversational commerce platform bitbybit Studio, allegedly exploiting an unpatched zero-day vulnerability in public-facing infrastructure.

November 17, 2026
Unauthenticated RCE Zero-Day Exploit in Dolibarr ERP
Underground forum advertisements show an unauthenticated remote code execution zero-day exploit targeting Dolibarr version 24.0.2. Security teams must restrict exposed enterprise endpoints immediately.