Oleksandr Kuzmenko, EditorPublished 7 min readAI-assisted · editor-reviewed
TL;DR
- Autonomous AI agents successfully found and exploited a previously unknown zero-day in an open-source medical ML tool.
- The agents reached arbitrary file write capabilities within ~11 minutes of mapping the target's API endpoints.
- Turning authentication on and placing research tools behind firewalls or VPNs mitigates the attack vector entirely.
Autonomous API Mapping to Arbitrary File Write in 11 Minutes
Amazon Threat Intelligence reported that autonomous penetration-testing agents discovered and weaponized a zero-day vulnerability in MONAI Label version 0.8.5 and earlier. The incident was tracked through an exposed instance of Cairn, an open-source AI-driven security framework left unauthenticated by its operators.
Logs revealed a 48-hour automated operation against university servers in East Asia. The autonomous agents mapped the target software API, identified an input validation flaw in a file upload handler, and achieved arbitrary file writes in approximately 11 minutes. In a later session, they planted a Python reverse shell inside an auto-loaded startup file, ultimately securing an interactive root shell.
Root Cause: Unauthenticated Endpoints and Path Traversal
The vulnerability stems from two architectural antipatterns common in machine learning research software:
1. Authentication Disabled by Default: MONAI Label instances accept incoming HTTP requests without credentials out of the box, allowing any actor with network reachability to submit upload payloads. 2. Unvalidated Path Concatenation: The upload handler joins user-provided filenames directly to storage directories without confirming that the resolved canonical path remains confined inside the target root.
A fix is slated for the upcoming MONAI Label release. Teams self-hosting annotation tools, local inference gateways, or Model Context Protocol servers must immediately verify that network endpoints are protected by VPNs or firewall rules and require explicit authentication.
