AI Agent-Driven Cyberattacks: What the MONAI Label Zero-Day Campaign Teaches About Hardening ML Tooling

AI Agent-Driven Cyberattacks: What the MONAI Label Zero-Day Campaign Teaches About Hardening ML Tooling

AI Agent-Driven Cyberattacks: What the MONAI Label Zero-Day Campaign Teaches About Hardening ML Tooling

In September 2026, a set of autonomous agents mapped the API of an open-source medical imaging annotation server, found a path traversal bug nobody had reported, and turned it into a root shell. Amazon says the step from API mapping to arbitrary file write took about eleven minutes. That is the clearest public case yet of ai agent cyberattacks discovering and weaponising a zero-day without a human picking the bug.

It matters now because the vulnerable software, MONAI Label, sits in a category most organisations never threat-model: research ML tooling. Annotation servers, notebooks, experiment trackers and cluster dashboards are often started by a researcher, bound to 0.0.0.0, and left running with authentication off. Agents make finding those servers cheap and persistent.

You will leave with a verified account of the campaign, a model of why ML tooling is a soft target, and a defender architecture with safe code, detection rules and patch SLAs you can apply this week.

What this covers: the verified facts, how agentic offence changes attacker economics, the ML tooling attack surface, a layered defence (inventory, auth, path canonicalisation, isolation, egress, Falco detection), a threat-model table, and failure modes.

Context and Background

On 20 November 2026, Amazon Threat Intelligence published “Chinese-nexus actor’s Cairn AI agents found a zero-day on their own” on the AWS Security Blog, written by CJ Moses, CISO of Amazon Integrated Security. The attribution wording is careful: Amazon “assesses with moderate confidence that this is a Chinese-nexus threat actor,” citing Simplified Chinese prompts, China Standard Time timestamps in scripts, and targeting of universities likely to be of strategic interest. Amazon separately assessed with high confidence that the bug was a genuine zero-day, because it found no matching fix, issue, advisory or prior database entry.

The campaign began on 8 September 2026 and ran for roughly 48 hours against IP space belonging to East Asian universities outside mainland China. Amazon found it on 10 September, when it identified a publicly hosted, unauthenticated instance of Cairn. Cairn is an open-source autonomous penetration-testing framework. The exposed server leaked project configurations, operator prompts and model output, which is why defenders now have an unusually detailed record of what the agents tried.

The flaw is tracked as GitHub Security Advisory GHSA-qc22-rmgc-vg94, rated critical. It affects the monailabel pip package at versions 0.8.5 and earlier, and is classed as CWE-22, improper limitation of a pathname to a restricted directory. As of the advisory’s publication on 18 November 2026, it lists no CVE and no patched release. The fix lives in pull request #1915, which the advisory says “will be included in the next MONAI Label release.” The Cloud Security Alliance notes that PR #1915 was merged on 19 October 2026.

This incident did not arrive alone, and it is not the only sign that AI agent cyberattacks have moved from research demos into operations. One week earlier, Amazon described a different set of China-nexus operators using the ARTEX agent framework to harvest API keys from exposed LLM gateways such as LiteLLM, One API and Dify. That campaign leaned on known bugs like Langflow’s CVE-2025-3248. If you have read our analysis of agentic AI security and prompt injection, note the inversion: that post is about attacks on agents. This one is about agents as the attacker, aimed at the infrastructure ML teams run.

ML tooling has a history here. The ShadowRay campaign, disclosed by Oligo Security in March 2024, abused CVE-2023-48022, the unauthenticated Ray Jobs API, to run commands on exposed clusters. MLflow’s CVE-2023-1177 was a path traversal rated 9.3 and fixed in 2.2.1. The bug classes repeat. What changed in 2026 is who, or what, is looking for them.

How AI Agent Cyberattacks Worked Against MONAI Label

AI agent cyberattacks use a planner model that breaks an operator’s goal into tasks, worker agents that run scanners and HTTP clients, and a shared memory of findings. In the MONAI Label case, the agents mapped the API, found an upload endpoint that trusted a caller-supplied file identifier, wrote files outside the datastore, and converted that write into code execution.

AI agent cyberattacks kill chain against a MONAI Label annotation server from API mapping to root reverse shell

Figure 1: The reported MONAI Label kill chain, from operator goal to root shell and lateral reuse.

The diagram traces the sequence Amazon published. An operator sets a goal (“obtain shell access” in Amazon’s quote) and a target list. A planner splits the work and dispatches workers. Workers fingerprint services, try known exploits and credential attacks, and record results on a shared blackboard. When known paths fail, the agents examine reachable applications more closely. Against MONAI Label, a datastore upload endpoint yielded an arbitrary file write, the write became code execution on the next Python process start, and the actor reused the technique on a second university’s server through an operator-supplied proxy.

The bug class is old; the discovery was not

Nothing about the vulnerability is novel. The advisory describes it plainly. The PUT /datastore/image endpoint takes an image query parameter and uses it as the image identifier without validation. LocalDatastore.add_image() joins that identifier onto the datastore’s image directory and copies the upload there with shutil.copy(). The resolved path is never checked to lie inside the datastore. PUT /datastore/label, backed by LocalDatastore.save_label(), builds its destination the same way.

That is textbook CWE-22. Any static analysis tool that tracks taint from an HTTP parameter into a filesystem sink can flag it. The point is not that agents found something clever. The point is that they found something ordinary, in software nobody was looking at, faster and more patiently than most human operators would have bothered to.

Amazon’s account is specific on cost. Before the zero-day, the agents spent about 16 hours and 148 sequential actions on a Redis server at one university, trying replication abuse, sandbox escape, config-file writes and memory corruption. Against a university GPU server they built about 80 usernames from public sources and tested more than 30,000 credential combinations over more than six hours across SSH, an admin dashboard, network storage, a VPN and a campus portal. Both failed. The agents moved on, and the annotation server is where they succeeded.

Arbitrary file write is code execution in a Python process

Defenders, and many triage tools, often rate “arbitrary file write” below “remote code execution.” In a Python service, that gap is thin. Python’s site module runs at interpreter start-up and imports sitecustomize and usercustomize modules if they exist on the path. It also processes .pth files in site-packages directories, and lines in a .pth file that begin with import are executed. So any process that can write into a directory on the interpreter’s module search path can plant code that runs the next time Python starts.

Amazon reports the agents did exactly this, writing a reverse-shell payload into sitecustomize.py. They then called a training API endpoint, which spawned a fresh Python process. That process ran the planted module and connected out. Because the server ran as root, the shell was root.

Three defaults compounded each other. Authentication was off, because MONAI Label ships with MONAI_LABEL_AUTH_ENABLE=False. The service ran with write access to its own interpreter’s site-packages. And the host allowed arbitrary outbound connections, so a reverse shell could reach its controller. Remove any one and this chain breaks, although a different chain might still work. That is the core argument of this post: harden the defaults that turn a CWE-22 into a root shell, not just the one bug.

Persistence and breadth change the arithmetic

Amazon summarised the takeaway as “agentic offensive operations are already happening,” and noted the Redis work “ran continuously for 16 hours without breaks, sleep, or working-hour constraints.” For a defender, that sentence is the economic shift in one line. Human operators ration attention. They abandon a target after an hour of dead ends because other targets are cheaper. An agent framework does not get bored. Its marginal cost per extra hour is inference spend and proxy bandwidth.

The ARTEX report a week earlier made the same point from a different angle: “None of the techniques in these campaigns were new. What AI agents change is the speed and persistence of the attacker.” Both reports describe a planner, workers and a shared knowledge store. Both target internet-exposed AI infrastructure. Neither required a novel exploit technique. The defender’s lesson from AI agent cyberattacks is uncomfortable. The long tail of forgotten, unauthenticated research services used to be protected by obscurity and attacker indifference. Neither protection survives an attacker whose attention is cheap.

What is verified and what is not

Some details circulating in secondary coverage are not in Amazon’s post. Amazon’s post does not name affected versions or a CVE; those come from the GitHub advisory, which lists versions up to 0.8.5 and no CVE. Amazon does not say how many targets were on the agents’ list. According to the Cloud Security Alliance research note, The Register cited a separate Gambit Security investigation linking a Chinese operator using Cairn to at least 105 attacks in September 2026. The same note says that figure is not clearly tied to this campaign, and we have not verified it independently. Treat it as context, not as a measured scope. Amazon also notes the affected organisations were not AWS customers and were notified through a government partner. Public reporting does not indicate that clinical systems or patient data were involved; the confirmed victims were university research servers.

Why ML Tooling Security Lags Behind Production Systems

ML tooling is where AI agent cyberattacks are finding the easiest footholds, and ML tooling security lags because the tools are built for researcher velocity on trusted networks, then deployed onto untrusted ones. Annotation servers, notebooks, experiment trackers, cluster dashboards and model servers share four traits: they listen on the network, they accept files, they execute code by design, and many ship with authentication off or optional.

ML tooling security attack surface map showing annotation servers, notebooks, MLflow, Ray dashboard and model servers exposed to autonomous AI hacking

Figure 2: The ML tooling attack surface. Each tool combines network exposure, file intake and a code-execution path.

The map groups the common tools by the property an agent would probe first. Some expose an unauthenticated control plane. Some take uploads whose names or contents reach the filesystem. Some load serialised objects that can execute code on deserialisation. Almost all run as a privileged user on a GPU host with broad network reach. The arrows show the route an agent follows from discovery to code execution to the assets that matter, such as cloud credentials, datasets and model weights.

Exposed by default, protected by assumption

Several mainstream ML tools assume a trusted network and say so. Anyscale’s position on CVE-2023-48022, as recorded in vulnerability databases, is that Ray is “not intended for use outside of strictly controlled network environments”; the CVE remains disputed. The Ray Jobs API on the dashboard port (8265 by default) accepts job submissions without authentication, and a job is arbitrary code. That design is reasonable inside a locked-down VPC. It is catastrophic when a researcher port-forwards a cluster to a public IP to check a training run from a laptop.

MONAI Label follows the same pattern with its auth flag defaulting to off. Jupyter is better, because it has required a token by default for years, but teams routinely disable the token for convenience or run it behind a shared reverse proxy with no per-user identity. MLflow’s tracking server historically shipped without built-in authentication; it later added an optional basic-auth layer. The common thread is that authentication is a deployment decision left to people whose job is not deployment.

File intake is the vulnerable seam

Annotation and data-management tools exist to move files. That means filename handling, archive extraction and path joining sit on the hot path of every feature. The bug classes are well known: path traversal through identifiers (MONAI Label, MLflow CVE-2023-1177), Zip Slip during archive extraction (MONAI core had a Zip Slip advisory in its NGC bundle download, GHSA-9rg3-9pvr-6p27), and symlink following inside uploaded archives.

Medical imaging adds format complexity. DICOM parsing is intricate, and MONAI core’s CVE-2026-48705, fixed in 1.6.1, concerned non-finite values in DICOM geometry fields that a crafted upload to a default MONAI Label deployment could use to corrupt results. That is not code execution, but it shows that every upload path in these tools is an attack surface with data-integrity consequences as well as system ones.

Deserialisation is code execution with a nicer name

Python’s pickle format can execute arbitrary callables during load. Many model formats either are pickle or wrap it. PyTorch changed torch.load to default to weights_only=True in release 2.6, which restricts unpickling to tensors and a vetted allow-list of types. That was a meaningful hardening step. It does not help code that passes weights_only=False explicitly, older pinned PyTorch versions, or other libraries that call pickle.load, joblib.load or cloudpickle on files fetched from a shared store.

For an attacker with an arbitrary write, a model registry is a second persistence point. Replace a checkpoint that a scheduled evaluation job loads with weights_only=False, and the payload runs in the evaluation worker. Our post on AI model supply chain security and provenance covers signing and attestation for exactly this reason.

The host is usually over-privileged

Research servers are built to make GPUs easy to use. That typically means root inside the container, the host’s NVIDIA devices mounted, a writable home directory shared over NFS, cloud credentials in environment variables, and unrestricted egress for package installs and dataset downloads. Each is defensible on its own. Together they mean that any code execution bug in any tool on the box is game over for the box, and often for the cloud account behind it.

The table below summarises the surface. It is a starting inventory, not an exhaustive list, and the default-auth column reflects each project’s documented default at the time of writing; verify against the version you run.

Tool class Example Typical exposure Auth default Code-exec path an agent would probe
Annotation server MONAI Label HTTP API, file upload Off (MONAI_LABEL_AUTH_ENABLE=False) Path traversal write to interpreter start-up files
Notebook JupyterLab HTTP, terminals, kernels Token required by default Token disabled, kernels execute any code
Experiment tracker MLflow HTTP UI and REST Historically none; optional basic auth Artifact path traversal, model deserialisation
Cluster dashboard Ray Dashboard and Jobs API on 8265 None on Jobs API Job submission is arbitrary code
Model server KServe, Ray Serve, BentoML Inference HTTP or gRPC Depends on ingress Model loading of untrusted artefacts
LLM gateway LiteLLM, One API HTTP admin and proxy Default or weak master keys reported Credential theft rather than code exec

Defender Architecture: Hardening ML Tooling Against Autonomous AI Hacking

Hardening ML tooling against autonomous AI hacking means removing the defaults that chain a single bug into full compromise. Put identity in front of every ML UI, keep services off the internet, canonicalise every file path, run as an unprivileged user on a read-only root filesystem, deny egress by default, and alert on writes to interpreter start-up files.

Layered defender architecture for ML tooling security with inventory, identity proxy, path validation, container isolation, egress control and Falco runtime detection

Figure 3: Six defensive layers, each mapped to the step of the MONAI Label kill chain it stops or detects.

The figure stacks controls from the network edge inward. Inventory and exposure scanning come first, because you cannot protect a server you do not know exists. An identity-aware proxy sits in front of every UI and API. Inside the application, input validation and path canonicalisation stop CWE-22 at the source. The container runs non-root with a read-only root filesystem and a writable volume only for the datastore. Network policy denies egress except to named destinations. Runtime detection watches for the specific artefacts this attack class produces. The outcome boxes map each layer to the step of the kill chain it breaks or, for runtime detection, the response it fires.

Layer 1: Know what is exposed

AI agent cyberattacks start with internet-wide scan data, certificate transparency logs and code search. You should start with the same sources, pointed at yourself. Enumerate every public IP and DNS name your organisation owns, including university departments and cloud accounts opened on a research grant. Fingerprint HTTP services on common ML ports: 8000, 8080, 8265, 8888, 5000 and 6006 are typical starting points, though any port can be used. Match titles, favicons and API paths for MONAI Label, Jupyter, MLflow, Ray, TensorBoard, Gradio and Streamlit.

The goal is a living inventory with an owner per service. A one-off scan is better than nothing, but a weekly diff that pages an owner when a new ML UI appears on a public address is what actually changes outcomes. Exposure is measured in days; an agent’s discovery loop is measured in hours.

Layer 2: Identity in front of every ML UI

Do not rely on each tool’s built-in authentication, because several have none and the rest differ. Put an identity-aware reverse proxy in front of all of them: an OAuth2 or OIDC proxy, a cloud IAP, or a zero-trust access gateway. Require single sign-on with phishing-resistant MFA, and map groups to tools. For machine-to-machine APIs, use short-lived tokens bound to a workload identity rather than static API keys.

Then turn on the tool’s own authentication anyway. For MONAI Label, the advisory’s workaround is to set MONAI_LABEL_AUTH_ENABLE=True and not grant the ANNOTATOR role to untrusted users, because that role alone is enough to reach the vulnerable endpoints. Defence in depth here is cheap. If the proxy is misconfigured, the application still says no.

Layer 3: Canonicalise every path, and prefer server-generated names

The safest way to handle a client-supplied file identifier is not to use it as a path at all. Generate a server-side identifier, store the client’s name as metadata, and write to a path you constructed. When you must accept a client identifier, apply an allow-list pattern, resolve the final path, and verify containment. The function below is a defensive pattern, not a patch for MONAI Label; the upstream fix is PR #1915.

import os
import re
from pathlib import Path

# Allow-list: starts with an alphanumeric, then letters, digits, dot, underscore, hyphen.
# No slashes, no backslashes, no NUL, and it cannot be "." or "..".
SAFE_ID = re.compile(r"[A-Za-z0-9][A-Za-z0-9._-]{0,127}")
ALLOWED_SUFFIXES = {".nii", ".nii.gz", ".nrrd", ".dcm", ".png"}

class UnsafePath(ValueError):
    pass

def resolve_in_root(root: Path, file_id: str, suffix: str) -> Path:
    """Return an absolute path inside root, or raise UnsafePath."""
    if suffix not in ALLOWED_SUFFIXES:
        raise UnsafePath("suffix not allowed")
    if not SAFE_ID.fullmatch(file_id):
        raise UnsafePath("identifier fails allow-list")
    root_real = root.resolve(strict=True)            # follows symlinks once, at the root
    candidate = (root_real / f"{file_id}{suffix}").resolve(strict=False)
    if not candidate.is_relative_to(root_real):       # Python 3.9+
        raise UnsafePath("path escapes datastore root")
    if candidate.parent != root_real:                 # flat layout: no sub-directories
        raise UnsafePath("unexpected directory")
    return candidate

def write_upload(root: Path, file_id: str, suffix: str, src: Path) -> Path:
    dest = resolve_in_root(root, file_id, suffix)
    flags = os.O_WRONLY | os.O_CREAT | os.O_EXCL | getattr(os, "O_NOFOLLOW", 0)
    fd = os.open(dest, flags, 0o640)                  # refuses to overwrite or follow a symlink
    with os.fdopen(fd, "wb") as out, open(src, "rb") as inp:
        while chunk := inp.read(1 << 20):
            out.write(chunk)
    return dest

Four details matter. The allow-list rejects separators outright, so most traversal attempts fail before any path arithmetic. resolve() then collapses .. segments and symlinks so the containment check compares real locations, and is_relative_to is a component-wise check, unlike a naive str.startswith that would accept /data/store-evil as inside /data/store. O_EXCL refuses to overwrite an existing file, which blocks replacing a legitimate image or a planted file. O_NOFOLLOW refuses to open a final-component symlink, narrowing the race between check and write.

URL decoding must happen once, before validation, in the framework. Never decode again after validating. And remember the label endpoint: in MONAI Label both add_image and save_label shared the flaw, so audit every path join, not only the one a report names.

Layer 4: Make the container boring

Run the service as a dedicated non-root user. Mount the root filesystem read-only, so site-packages and the interpreter cannot be modified. Give the process one writable volume for its datastore and a tmpfs for scratch. Drop all Linux capabilities, set allowPrivilegeEscalation: false, and apply the runtime’s default seccomp profile. With those settings, the reported chain fails at the write to sitecustomize.py even if the traversal bug is present, because the target directory is not writable.

If researchers need an interactive environment with package installs, give them a separate sandbox and keep the long-running service immutable. Our comparison of Firecracker, gVisor and Kata sandboxes for AI agents applies here, because the same isolation that contains your own agents contains an attacker’s foothold. For cluster-level enforcement, see our guide to Kubernetes Pod Security Standards, admission control and seccomp.

Layer 5: Deny egress by default

A reverse shell needs an outbound connection. So does credential exfiltration, payload staging and most command-and-control. An annotation server needs to talk to its clients, its storage, and perhaps an internal model registry. It does not need the whole internet. A default-deny egress policy turns a successful exploit into a dead end. The Kubernetes example below allows DNS and one internal storage service and denies everything else.

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: monai-label-egress
  namespace: research-imaging
spec:
  podSelector:
    matchLabels:
      app: monai-label
  policyTypes: ["Egress"]
  egress:
    - to:
        - namespaceSelector:
            matchLabels:
              kubernetes.io/metadata.name: kube-system
          podSelector:
            matchLabels:
              k8s-app: kube-dns
      ports:
        - { protocol: UDP, port: 53 }
        - { protocol: TCP, port: 53 }
    - to:
        - podSelector:
            matchLabels:
              app: imaging-object-store
      ports:
        - { protocol: TCP, port: 9000 }

Package installs move to build time, behind a proxy that logs and allow-lists registries. Model downloads go through an internal mirror. This is more operational work than it sounds, which is exactly why most research clusters skip it. Our walk-through of default-deny network policy with Cilium and Calico covers staged rollout without breaking workloads. Also block the cloud instance metadata endpoint from pods that do not need it; SSRF to metadata was on the ARTEX playbook.

Layer 6: Detect the artefacts, not the attacker

You will not out-run AI agent cyberattacks with manual log review. You can, however, write high-confidence detections for the few things this attack class must do. Writing to Python start-up hooks is rare in a healthy service. A Python server spawning an interactive shell is rarer. The Falco rules below target both. They use Falco’s documented spawned_process and container macros and the shell_binaries list from the default ruleset, so load them after the default rules.

- list: python_startup_hooks
  items: [sitecustomize.py, usercustomize.py]

- macro: ml_tooling_container
  condition: >
    container.image.repository contains "monailabel" or
    container.image.repository contains "mlflow" or
    container.image.repository contains "jupyter" or
    k8s.ns.name = "research-imaging"

- rule: Python Startup Hook Written in ML Tooling Container
  desc: >
    A process wrote sitecustomize.py, usercustomize.py or a .pth file inside an
    ML tooling container. Legitimate only during image build, never at runtime.
  condition: >
    evt.type in (open, openat, openat2) and evt.is_open_write=true
    and fd.typechar='f' and container and ml_tooling_container
    and (fd.filename in (python_startup_hooks) or fd.name endswith ".pth")
  output: >
    Python start-up hook written (file=%fd.name proc=%proc.cmdline
    parent=%proc.pname user=%user.name image=%container.image.repository
    pod=%k8s.pod.name ns=%k8s.ns.name)
  priority: CRITICAL
  tags: [ml_tooling, persistence, python]

- rule: Shell Spawned by Python in ML Tooling Container
  desc: A Python server process started a shell inside an ML tooling container.
  condition: >
    spawned_process and container and ml_tooling_container
    and proc.name in (shell_binaries) and proc.pname startswith "python"
  output: >
    Shell spawned by Python (shell=%proc.name cmd=%proc.cmdline
    parent=%proc.pcmdline image=%container.image.repository pod=%k8s.pod.name)
  priority: CRITICAL
  tags: [ml_tooling, execution, python]

Jupyter is a special case: its terminals legitimately spawn shells, so scope the second rule away from notebook images or accept that it is noisy there. Pair these with an application-layer signal from the reverse proxy. Requests to PUT /datastore/* with ../, percent-encoded dots or slashes, or absolute paths in the query string should never appear in healthy traffic. Neither should a training-endpoint call within seconds of a datastore write from the same client. For a deeper look at the engines that run rules like these, see our comparison of Falco, Tetragon and Tracee for Kubernetes runtime detection.

Amazon’s own recommendation is to “prioritize high-confidence detections that trigger automated response” and to keep humans overseeing outcomes rather than every action. In practice that means wiring these two rules to an action, such as killing the pod and cordoning the node, rather than to a ticket queue.

Threat Model and Attacker Economics for AI Agent Cyberattacks

A threat model for ML tooling should assume an attacker with unlimited patience, broad scan coverage and competent exploitation of known bug classes. The table below maps the threats this campaign and its neighbours exercised to the controls that break them. It is written for a typical university or enterprise research cluster; adapt the residual-risk column to your environment.

Threat Entry condition Impact if unmitigated Primary control Secondary control Residual risk
Unauthenticated API abuse ML UI reachable from internet, auth off Data theft, job submission, code exec Identity-aware proxy, no public exposure App-level auth enabled Insider or compromised SSO account
Path traversal write (CWE-22) Upload endpoint trusts client identifier Arbitrary file write, then code exec Server-generated names, canonical containment check Read-only root filesystem Bugs in other file-handling paths
Start-up hook persistence Writable site-packages or user site dir Code runs on every Python start Immutable image, non-root user Falco rule on hook writes Writable venv on shared volume
Unsafe deserialisation Models loaded with pickle-based loaders Code exec in training or eval workers weights_only=True, safetensors, signed artefacts Separate eval sandbox Third-party libraries calling pickle
Reverse shell and C2 Unrestricted outbound network Interactive control, lateral movement Default-deny egress Shell-spawn detection Tunnelling over allowed destinations
Credential theft Cloud keys in env vars or metadata reachable Cloud account takeover, AI spend abuse Workload identity, metadata blocked Spend and usage anomaly alerts Long-lived keys in notebooks or repos
Credential spraying SSH, VPN or dashboards with passwords Account compromise MFA, key-only SSH, rate limiting Lockout and alerting on spray patterns Legacy services without MFA
Slow patching Fix merged but unreleased Known-vulnerable window stays open Commit-level tracking, build from source Compensating controls Untested source builds

Worked numbers: what persistence buys an attacker

The figures here come from Amazon’s report; the per-hour rates are our arithmetic on them. The Redis operation ran 148 sequential actions over about 16 hours. That is an average of about 9.25 actions per hour, or one action roughly every 6.5 minutes, sustained without a break. A human tester can work that pace for a few hours, then stops. The agent did not. The credential operation tested more than 30,000 combinations from about 80 derived usernames across five services, which works out to several hundred passwords tried per username, spread across protocols.

Now look at what succeeded. Eleven minutes from API mapping to file write on MONAI Label. In other words, the failed operations consumed more than 22 hours of agent time, and the successful one took minutes. That ratio is the strategic point. An agent’s advantage is not that it is smarter on any one target. It is that it can afford to spend a day failing on hard targets and still reach the soft one, at a cost that is mostly inference tokens.

An illustrative way to frame this for planning: suppose a human operator spends one working day per target and an agent framework runs ten targets concurrently around the clock. Over a week, the human covers about five targets while the agent covers on the order of seventy target-days. These numbers are illustrative, not measured, and real agent throughput is bounded by rate limits, proxies and model quality. The direction is not in doubt, though. Breadth and persistence stop being scarce. Exposure that was low-risk because nobody bothered to look becomes high-risk because looking costs almost nothing.

Patch SLAs when the patch is a commit, not a release

The MONAI Label timeline offers a sobering lesson for patch management. Exploitation began on 8 September 2026. The fix was merged on 19 October, 41 days later. The public advisory followed on 18 November, 71 days after exploitation began. As of 21 November, the CSA note reports no tagged release containing the fix, and the newest monailabel package on PyPI remained 0.8.5 from November 2024.

A patch SLA that starts the clock at “vendor release available” would not have started at all. For research tooling maintained by small teams, you need a policy for three states, not one.

The first state is “advisory published, no release.” Apply compensating controls within 24 to 72 hours: remove public exposure, enable authentication, restrict roles, and make the filesystem read-only. The second state is “fix merged, no release.” Decide within a week whether to build from the fixing commit after staging tests. The CSA note points out that PR #1915 bundles CI and dependency changes, which is a real reason to test first. The third state is “release available.” Upgrade on your normal critical-vulnerability SLA, typically days, not weeks.

Track advisories at the repository level, not just through CVE feeds. GHSA-qc22-rmgc-vg94 has no CVE, so scanners keyed only on CVE identifiers would miss it. Software composition analysis tools that ingest the GitHub Advisory Database, or OSV, will see GHSA identifiers. Our guide to SBOM and VEX triage covers how to record “affected, compensating control applied” so the state survives handoffs.

Detection and response sequence for ML tooling security from traversal request to automated containment and patch

Figure 4: A detection-and-response sequence for the reported chain, showing where each control fires and what it triggers.

The sequence shows an agent’s requests passing through the identity proxy, the application and the runtime sensor. If the proxy is bypassed or misconfigured, the WAF rule flags the traversal pattern. If the write lands anyway, the Falco hook-write rule fires before any process restarts. The response automation isolates the pod and revokes its workload credentials, then a human reviews the outcome and decides whether to rebuild and patch. The goal is that containment never waits for a human; judgement does.

Trade-offs, Gotchas, and What Goes Wrong

Every control above has a cost or a failure mode. Being honest about them is what keeps a hardening programme alive after the first incident review.

Identity proxies break tools that assume direct access. Some ML clients, such as annotation plug-ins in desktop viewers or SDKs that call a tracking server, do not handle an OIDC redirect. You will need a token-based path for them, and that path tends to become the new weak point. Scope those tokens narrowly and make them short-lived.

Read-only filesystems surface hidden writes. Research code writes caches, compiled kernels and temporary files in surprising places, such as ~/.cache, Triton and Torch compile caches, and Hugging Face hub directories. Expect a week of EROFS errors before you have mapped them all to explicit volumes. The fix is to declare those paths, not to give up and make the root writable.

Egress denial fights the research workflow. Researchers install packages and pull datasets constantly. If you block egress without providing a mirror and a fast exception process, people will work around you, typically by running tools on personal cloud accounts you cannot see. Budget for the mirror before you announce the policy.

Detection rules drift. The .pth condition will fire during image builds and legitimate pip install in notebooks. Scope by container image or namespace, test against a week of real traffic, and keep a record of every suppression. A Falco rule that pages on every build is a rule that gets disabled.

Path validation is easy to get subtly wrong. The common anti-patterns are checking with str.startswith instead of component-wise containment, validating before URL decoding, forgetting Windows separators and drive letters on cross-platform tools, and validating one endpoint while a sibling endpoint shares the same helper. The MONAI Label advisory itself names two endpoints.

Inventory is never complete. Graduate students and contractors will start servers on cloud accounts outside central IT. Accept that your scan will miss some, and make the safe path the easy path: a templated, pre-hardened deployment that researchers want to use because it is faster than rolling their own.

Do not over-learn from one incident. AI agent cyberattacks will not keep using the same bug. This campaign succeeded through a path traversal. The next might use deserialisation, a Ray job submission, or a leaked token in a notebook. Controls that break classes, such as identity, immutability, egress and runtime detection, age better than signatures for one bug. Finally, treat the attribution with the same care Amazon did. “Moderate confidence” is not certainty, and your controls should not depend on who the attacker is.

Practical Recommendations

Start with exposure, because it is the cheapest control and the one AI agent cyberattacks exploit first. Then remove the defaults that turn a bug into a root shell. Then make detection fast enough that containment does not depend on someone reading an alert. If you run MONAI Label specifically, act on the advisory now rather than waiting for a release: enable authentication, restrict the ANNOTATOR role, take the server off untrusted networks, and run it unprivileged with write access only to the datastore.

If an instance was reachable from untrusted networks before you mitigated it, assume compromise. Check for unexpected sitecustomize.py, usercustomize.py and .pth files, new cron entries and SSH keys, and review proxy logs for traversal patterns and the indicators Amazon published. Rebuild rather than clean. A host where an attacker had root cannot be trusted by inspection.

For the broader ML platform, treat research infrastructure as production infrastructure from a security standpoint. That does not mean production change control for every notebook. It means the same asset inventory, the same identity layer, the same patch tracking and the same runtime sensors. If you are choosing a serving stack, factor these controls into the decision; our KServe vs Ray Serve vs BentoML ADR discusses where authentication and isolation live in each.

A short checklist to run this week:

  • Scan your public address space for ML UIs and APIs; assign an owner to each finding.
  • Put an identity-aware proxy with MFA in front of every ML UI; enable app-level auth too.
  • Patch or mitigate MONAI Label 0.8.5 and earlier per GHSA-qc22-rmgc-vg94.
  • Run ML services non-root with a read-only root filesystem and one writable data volume.
  • Apply default-deny egress with DNS, storage and a package mirror allowed; block instance metadata.
  • Deploy runtime rules for start-up hook writes and Python-spawned shells, wired to automated isolation.
  • Load models with weights_only=True or safetensors; reject pickle from shared stores.
  • Track GHSA and commit-level fixes, not only CVEs; define SLAs for “advisory, no release.”

Frequently Asked Questions

What are AI agent cyberattacks?

AI agent cyberattacks are intrusions in which software agents driven by large language models plan and execute attack steps with little human direction. An operator sets a goal and targets, a planner model breaks the goal into tasks, and worker agents run scanners, exploit attempts and credential attacks, sharing results through a common memory. The MONAI Label campaign Amazon disclosed in November 2026 is notable because the agents found and exploited a previously unknown vulnerability themselves. The underlying techniques were conventional; the speed, breadth and persistence were what changed.

Is there a CVE for the MONAI Label vulnerability?

Not at the time of writing. The flaw is tracked as GitHub Security Advisory GHSA-qc22-rmgc-vg94, published on 18 November 2026 and rated critical. It affects the monailabel package at versions 0.8.5 and earlier and is classified as CWE-22 path traversal in the PUT /datastore/image and PUT /datastore/label endpoints. The advisory lists no patched release; the fix is in pull request #1915, merged in October, and will ship in the next release. Track the advisory identifier directly, because CVE-only scanners will not see it.

How do I protect a MONAI Label server right now?

Follow the advisory’s workarounds. Set MONAI_LABEL_AUTH_ENABLE=True, because authentication is off by default, and do not grant the ANNOTATOR role to untrusted users, since that role can reach the vulnerable endpoints. Remove the server from untrusted networks and put an authenticating reverse proxy in front of it. Run the process as an unprivileged user that can write only to the datastore. If the server was exposed before you mitigated it, assume compromise, check Python start-up hook files, and rebuild the host.

Why is ML tooling a common target for autonomous AI hacking?

ML tools are designed for researcher speed on trusted networks, then often deployed on reachable ones. Many ship with authentication off or optional, accept file uploads, and execute code by design through jobs, kernels or model loading. They typically run as root on GPU hosts with cloud credentials and unrestricted egress. That combination means one ordinary bug yields a valuable foothold. Autonomous agents make it cheap to scan for these services continuously and to keep probing until something gives.

How does path traversal lead to remote code execution in Python apps?

Path traversal gives an attacker an arbitrary file write wherever the process has permission. In Python, several files execute automatically at interpreter start-up: sitecustomize.py, usercustomize.py, and import lines in .pth files inside site-packages. If the vulnerable service can write to those locations, an attacker plants code there and waits for, or triggers, a new Python process. In the reported campaign, a training API call spawned that process. A read-only root filesystem and non-root user break this step.

Will AI agents replace human attackers?

Not on current evidence, and the reports do not claim it. Amazon describes operators setting goals and constraints, and in this campaign a human supplied a proxy into a second university network. The ARTEX campaign also relied on human operators for direction. What agents replace is the tedious middle of an intrusion: enumeration, retrying, and grinding through dead ends for hours. That shifts attacker economics toward breadth and persistence, which is why fundamentals such as exposure and authentication matter more, not less.

Further Reading

By Riju — about

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

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