Auditing MONAI Label Deployments for Blast Radius After an AI-Agent Zero-Day

Auditing MONAI Label Deployments for Blast Radius After an AI-Agent Zero-Day

pr0h0••17 min read•hacking
AI Usage (88%)

The headline said AI agents exploited a MONAI Label zero-day, but it named no HTTP route, version, authentication requirement, or patch. This walkthrough shows how I audit a MONAI Label deployment after that kind of report: map every reachable entry point, measure filesystem, storage, and credential blast radius, contain the service before a patch exists, and keep confirmed exposure separate from speculation.

On this page

The MONAI Label zero-day report and the question that matters more

The material I was given is thin: a TechGig item dated November 24, 2026 saying Amazon observed AI agents exploiting a zero-day autonomously, and a Hacker News headline from the same day naming MONAI Label alongside a separate N-able MailAssure flaw. That is a headline set, not a technical report. I am not going to reverse-engineer an exploit from a title. I am going to do the thing that helps either way: map what a compromised MONAI Label process in my deployment could reach.

MONAI Label is an annotation server. It serves models to clients (the 3D Slicer plugin and OHIF viewer are the common ones), runs inference and training endpoints, and reads study data from local storage or a DICOM source. That shape matters more than the AI framing: it is a long-running HTTP service with filesystem access to medical images, writable model artifacts, and usually a network path to a PACS or object store.

My position: exposure first, attribution and patching second

If you run MONAI Label and this report is even roughly accurate, the order is: (1) find every reachable entry point, (2) measure what the process can read, write, and authenticate as, (3) close bypasses, (4) only then worry about whether the actor was an agent or a person. Neither the AI attribution nor a pending patch changes step 1. An unpatched service behind a properly enforced identity-aware proxy with a narrow service account is in a very different position from a patched service on a public LoadBalancer with cluster-wide secrets access.

The November 24 reports: confirmed claims and unverified details

What the November 24 reporting actually claims

I want to be precise about the supplied text, because it is easy to inflate.

  • TechGig, November 24, 2026: Amazon reported that AI agents exploited a zero-day vulnerability autonomously. The excerpt is a headline and nothing more.
  • The Hacker News, November 24, 2026: the headline reads "Hackers Exploit N-able MailAssure Flaw While AI Agents Exploit MONAI Label Zero-Day." That headline contains two separate stories joined by "while."

The second item is the one that matters for this post, and the only technical assertion it supports is that MONAI Label is named as the target of zero-day exploitation. The MailAssure half is a different product, a different vendor, and probably a different actor. Merging them is how bad incident write-ups start.

What the supplied excerpts do not tell us

Missing from everything I was given:

DetailStatus in supplied material
Exploit primitive (deserialization, path traversal, SSRF, auth bypass, model loading)Not stated
CVE identifierNot stated
Affected version rangeNot stated
Authentication required before exploitationNot stated
Whether the service was internet-exposedNot stated
Patch or advisory statusNot stated
Indicators of compromiseNot stated

That is less a criticism of the reporting than a description of what a headline carries. But it means any post claiming "MONAI Label is vulnerable to X" right now is filling gaps with invention.

The verification gate before asserting exploit mechanics

Before I would write a single sentence describing the vulnerability class, I want two artifacts: the original Amazon research write-up (or Amazon's own threat-intel post), and a maintainer statement in the Project-MONAI/MONAILabel repository — an advisory, a security release note, or a pinned commit. Until then, the correct internal language is "reported exploitation of an unspecified issue in MONAI Label." Keep the MailAssure story out of the ticket entirely; if your org runs MailAssure, it belongs in a separate workstream with its own advisory.

⚠️

If you are being asked to answer "are we affected" today, answer it in two parts: exposure (we do or do not run a reachable MONAI Label deployment, here is the evidence) and patch status (unknown until a vendor advisory exists, here is our monitoring plan). Do not answer with a vulnerability claim you cannot source.

Build a MONAI Label trust-boundary map to measure blast radius

Snapshot the audit environment before changing anything

Everything below assumes an authorized environment where you own or have written permission to inspect the cluster. Record the baseline before you change anything, because a findings table without a timestamp is not evidence.

kubectl config current-context
kubectl get ns monai -o jsonpath='{.metadata.name}{" uid="}{.metadata.uid}{"\n"}'
kubectl get deploy,statefulset -n monai -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.template.spec.containers[*].image}{"\n"}{end}'
date -u +%Y-%m-%dT%H:%M:%SZ

Example output from a lab cluster I used for this walkthrough:

arn:aws:eks:eu-west-1:...:cluster/research-lab
monai uid=6f1c...-redacted
monai-label	projectmonai/monailabel:0.8.5
2026-11-25T09:14:02Z

Image digest beats tag. Resolve it with kubectl get pod -n monai -o jsonpath='{..imageID}' and record that, because 0.8.5 may be repushed and the tag alone will not survive an argument about what was running.

Trace the real request path from annotation client to storage

Draw it as connections, not boxes. In a typical deployment the path is: annotation client (Slicer/OHIF in a browser) → ingress controller → optional auth proxy → the MONAI Label Service on port 8000 → the Python process inside the pod → the app directory (which holds main.py and model weights) → study storage (a mounted volume, or a DICOMweb endpoint like Orthanc) → any configured integrations such as experiment tracking. Whether studies come from a local directory or a DICOMweb server is a configuration decision with very different blast radius: a mounted volume is bounded by filesystem permissions, a DICOMweb integration carries credentials that may reach further than this one deployment.

Build the connection evidence table

ConnectionIdentityDestinationAllowed operationsData sensitivityEnforced at
Slicer/OHIF client → ingresshuman user, OIDClabel.example.orgHTTP API callsImaging studiesIngress + auth proxy
Ingress → Servicenone (network)monai-label.monai.svc:8000All routes on 8000—NetworkPolicy
Service → podnonePod IPAll routes—None by default
Server → studies volumepod UIDPVC monai-studiesRead + writeStudies, labelsFilesystem mode bits
Server → object storeIRSA / instance profileS3 buckets3:GetObject, s3:PutObjectStudiesIAM policy
Server → DICOMwebconfigured credentialorthanc.dicom.svc:8042Query + retrieveStudiesOrthanc auth config
Server → package indexpod egressarbitraryHTTPS—Unknown

That last row is the point. Undocumented egress is not "none"; it is "not yet measured." Write unknown and go find out.

Find which MONAI Label paths are actually exposed

Discover services, ingresses, and host ports with read-only queries

Use field selection so you do not dump ConfigMaps, environment blocks, or secrets into a terminal that is being screen-shared into a bridge call.

kubectl get svc -A -o custom-columns='NS:.metadata.namespace,NAME:.metadata.name,TYPE:.spec.type,PORTS:.spec.ports[*].port,LB:.status.loadBalancer.ingress[*].ip'
kubectl get ingress -A -o custom-columns='NS:.metadata.namespace,NAME:.metadata.name,CLASS:.spec.ingressClassName,HOSTS:.spec.rules[*].host,TLSSECRET:.spec.tls[*].secretName'
kubectl get pods -n monai -o jsonpath='{range .items[*]}{.metadata.name}{" hostNetwork="}{.spec.hostNetwork}{" hostPorts="}{.spec.containers[*].ports[*].hostPort}{"\n"}{end}'

Illustrative output:

NS           NAME          TYPE           PORTS   LB
monai        monai-label   LoadBalancer   8000    203.0.113.10
ingress-nginx controller   LoadBalancer   443,80  203.0.113.11

NS      NAME             CLASS   HOSTS               TLSSECRET
monai   monai-label-ui   nginx   label.example.org   label-tls

monai-label-7c9f  hostNetwork=false hostPorts=

Two LoadBalancers and one Ingress for one annotation service. The monai-label Service is the interesting line: if its security group or cloud firewall allows 0.0.0.0/0 on 8000, the ingress path with its auth proxy is decorative.

Verify reachability from outside and inside the cluster

Pick an approved, non-mutating route — a health or server-info endpoint that does not trigger inference — and test it from outside, then from inside.

curl -sS -o /dev/null -D - --max-time 8 https://label.example.org/info/ | head -n 12
curl -sS -o /dev/null -D - --max-time 8 http://203.0.113.10:8000/info/ | head -n 12

Example output:

HTTP/2 302
location: https://sso.example.org/authorize?...

HTTP/1.1 200 OK
content-type: application/json
server: uvicorn

Interpretation: the ingress route redirects to SSO (expected), while the direct LoadBalancer answers 200 with no authentication challenge at all (unintended reachability). That is a finding regardless of whether any vulnerability exists.

Interpret reachability findings without overstating them

Three outcomes need three different words:

  • Intended authenticated access — the proxy challenges, and only approved identities get through.
  • Unintended reachability — a path answers without the intended control. A bare 200 from /info/ is enough to report; it is not proof the service is exploitable.
  • Inconclusive — timeouts, TLS errors, or a route that hangs. Mark it and retest properly.

The common mistake is treating a 401 on the ingress as proof the whole surface is protected. It proves one host on one port is protected. It says nothing about the Service IP, a hostNetwork pod, a node port, or a second ingress object someone added for a demo.

Measure filesystem, storage, and workload blast radius

Inspect service identity, security context, and mounts

kubectl get pod -n monai -l app.kubernetes.io/name=monai-label -o json \
| jq -r '.items[] | {pod: .metadata.name,
                     sa: .spec.serviceAccountName,
                     automount: .spec.automountServiceAccountToken,
                     hostNetwork: .spec.hostNetwork,
                     runAsUser: .spec.containers[0].securityContext.runAsUser,
                     privileged: .spec.containers[0].securityContext.privileged,
                     readOnlyRoot: .spec.containers[0].securityContext.readOnlyRootFilesystem}'

Then look specifically for host mounts and runtime sockets:

kubectl get pod -n monai -o json | jq -r '
  .items[] as $p
  | $p.spec.volumes[]? | select(.hostPath) as $v
  | $p.spec.containers[] | .volumeMounts[]? | select(.name == $v.name)
  | "\($p.metadata.name) \($v.name) \($v.hostPath.path) mount=\(.mountPath) ro=\(.readOnly // false)"'

Note that readOnly lives on the volume mount, not on the hostPath block — a fact people get wrong when they grep for readOnly: true at the wrong level. A mounted docker.sock or containerd.sock is a container escape primitive, not a hardening nit.

What each mount class exposes if the process is compromised

Mount classTypical pathConfidentialityIntegrityAvailability
Studies volume (read/write)/opt/monai/studiesFull study accessLabels can be overwrittenDeletion stops annotation
Model/app directory/opt/monai/appModel IPModel swap, code change via app filesTraining pipeline broken
emptyDir scratch/tmpLowLowLow
hostPath to node root/var/lib/...Node-levelNode-levelNode-level
Runtime socket/var/run/docker.sockCluster-levelCluster-levelCluster-level

The integrity row is the one people skip. Overwriting labels corrupts a dataset quietly; overwriting model weights poisons every future inference. Neither requires reading a single patient image.

Sample findings and how I rank them

Paths below are synthetic, matching the shape of a real deployment:

FindingPathPermsClassPriority
Container runs as rootprocess UIDuid=0Isolation failureP1
Runtime socket mounted/var/run/docker.sockrwIsolation failureP1
hostPath node log dir/var/logrwIsolation failureP1
Studies volume world-writable/opt/monai/studies0777Hardening gapP2
App dir writable by server user/opt/monai/apprwHardening gapP2
Root filesystem writable/rwHardening gapP3

Rank P1 separately because those are not "the service is a bit loose" — those are "a bug in the service is a bug in the node." And keep the sentence honest in your report: filesystem permissions show what would be reachable if the process were compromised. They do not show that exploitation occurred.

Audit MONAI Label credentials and effective authorization without revealing secrets

Enumerate secret references and identity bindings without printing secrets

kubectl get pod -n monai -o jsonpath='{range .items[*]}{.metadata.name}{" sa="}{.spec.serviceAccountName}{" automount="}{.spec.automountServiceAccountToken}{"\n"}{end}'
kubectl get sa -n monai -o custom-columns='NAME:.metadata.name,SECRETS:.secrets[*].name,ROLES:.metadata.annotations'
kubectl get secret -n monai -o custom-columns='NAME:.metadata.name,TYPE:.type,KEYS:.data' --no-headers | awk '{print $1, $2}'

The last command prints names and types only — the awk exists to stop anyone from pasting key material into a ticket. For cloud identity, check the pod's annotations for role bindings rather than reading the projected token:

kubectl get sa -n monai monai-label -o jsonpath='{.metadata.annotations}'

An IRSA-style annotation pointing at a role with s3:* on the whole account is a much bigger finding than any single secret.

Test authorization against the real service account

kubectl auth can-i --list --as=system:serviceaccount:monai:monai-label -n monai
kubectl auth can-i get secrets --as=system:serviceaccount:monai:monai-label -n monai

Illustrative output:

Resources    Non-Resource URLs   Resource Names   Verbs
pods         []                  []               [get list watch]
configmaps   []                  []               [get]
...
yes

Both of those commands require impersonate on serviceaccounts for your own identity. If you see a Forbidden error naming your user and the impersonation resource, your audit is misconfigured — that is not a "denied" result. If you see a clean no, the service account genuinely lacks the verb. Establishing a positive control first (kubectl auth can-i get pods --as=...) makes the difference obvious.

Compare intended and effective permissions

Write the intended permission down before you look: "read studies volume, write labels, call the DICOMweb endpoint, no Kubernetes API access." Then diff:

ScopeIntendedEffective (observed)Verdict
Kubernetes APInoneget/list/watch pods, get secretsOver-privileged
S3own prefixbucket-wide read/writeOver-privileged
DICOMwebquery + retrievequery + retrieve + deleteOver-privileged
Token automountdisabledenabledMisconfigured

The priority here is not "most permissions" but "most reusable credential." A token that reads every secret in the namespace is worth more to an attacker than ten narrow ones, because it is a pivot, not a payoff.

Contain the MONAI Label deployment before a patch is available

Close direct bypass paths first

Restrict ingress to the identity-enforcing entry point and remove direct routes to the Service. In practice: delete or internalize the LoadBalancer type on the backend Service, put the real Service behind a ClusterIP, and make the ingress controller the only client. If annotation clients live on a VPN, scope the ingress to that range too. Then confirm the annotation workflow still works from a real client — closing a path and breaking the workflow gets your change reverted by Friday.

Apply a lab-scoped NetworkPolicy with explicit assumptions

📝

Assumptions for the policy below: the pod carries app.kubernetes.io/name=monai-label; the ingress controller runs in namespace ingress-nginx with its default labels; cluster DNS is in kube-system; studies come from Orthanc in namespace dicom; and the CNI actually enforces NetworkPolicy. Flannel alone does not.

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: monai-label-allow-approved
  namespace: monai
spec:
  podSelector:
    matchLabels:
      app.kubernetes.io/name: monai-label
  policyTypes: ["Ingress", "Egress"]
  ingress:
    - from:
        - namespaceSelector:
            matchLabels:
              kubernetes.io/metadata.name: ingress-nginx
          podSelector:
            matchLabels:
              app.kubernetes.io/component: controller
      ports:
        - protocol: TCP
          port: 8000
  egress:
    - to:
        - namespaceSelector:
            matchLabels:
              kubernetes.io/metadata.name: kube-system
          podSelector:
            matchLabels:
              k8s-app: kube-dns
      ports:
        - protocol: UDP
          port: 53
    - to:
        - namespaceSelector:
            matchLabels:
              kubernetes.io/metadata.name: dicom
          podSelector:
            matchLabels:
              app: orthanc
      ports:
        - protocol: TCP
          port: 8042

Applying this YAML is not evidence of isolation. A CNI that ignores policy, or a selector that matches no pod, both produce a clean kubectl apply and zero enforcement.

Reduce privilege: tokens, host access, and storage writes

Set automountServiceAccountToken: false on the pod spec if the workload does not call the Kubernetes API — it usually does not. Drop hostPath volumes and runtime socket mounts outright. Set readOnlyRootFilesystem: true with an emptyDir for scratch. Mount studies read-only if the workflow allows, and write labels through a separate scoped path. These are preventive, and they take effect immediately. Incident-driven credential rotation is a different action: if you suspect compromise, preserve evidence first, then rotate, because rotation destroys the token you wanted to test.

Verify allowed and denied paths with bounded tests

Run the probe from a canary pod carrying the same labels, or exec into the workload in a lab. I would not exec into a production pod without a change record — it starts a process on a host you are investigating.

kubectl exec -n monai deploy/monai-label -- python -c "


for host, port in [('orthanc.dicom.svc', 8042), ('example.com', 443)]:
    s = socket.socket(); s.settimeout(3)
    try:
        s.connect((host, port)); print(host, port, 'connected')
    except Exception as e:
        print(host, port, type(e).__name__)
    finally:
        s.close()
"

Illustrative output:

orthanc.dicom.svc 8042 connected
example.com 443 timeout

That is the shape you want: the required destination works, the unlisted one fails. Note the limit — timeout means "no connection" and could be a wrong port, a dead DNS record, or an enforcing policy. Confirm by removing the policy in a lab and watching the same test fail differently. Also remember NetworkPolicy cannot filter by hostname; if you need FQDN-scoped egress you need a CNI feature such as Cilium toFQDNs or an egress gateway.

Detect exploitation through behavior, not AI-agent signatures

Correlate the logs you actually have

Six sources are worth checking, in this order of usefulness: ingress/proxy access logs (records the client, path, status), application logs (tracebacks around inference routes), process telemetry (child processes from the Python server), outbound connection records (VPC flow logs, CNI flow logs), storage audit events (S3 access logs, filesystem audit), and Kubernetes audit logs if enabled. If a source is not enabled, write "not available" rather than "no evidence" — those are different claims in a report.

Signals that merit investigation: a python server process spawning a shell; an outbound connection from the workload to a destination absent from your baseline; writes to the studies volume outside the annotation path; a request burst with a high 4xx/5xx ratio from one client. None of those proves zero-day exploitation, and none distinguishes an AI agent from a person with a script.

A small proxy/egress correlator with fixture input

proxy.jsonl (synthetic):

{"ts":"2026-11-24T03:04:10Z","workload":"monai-label","client":"203.0.113.44","method":"POST","path":"/infer/segmentation","status":500}
{"ts":"2026-11-24T03:06:02Z","workload":"monai-label","client":"203.0.113.44","method":"GET","path":"/info/","status":200}

egress.jsonl (synthetic):

{"ts":"2026-11-24T03:05:31Z","workload":"monai-label","dst":"198.51.100.9:443","bytes":18432}
{"ts":"2026-11-24T03:07:12Z","workload":"monai-label","dst":"dicom.internal:4242","bytes":2048}
// correlate.mjs — illustrative only; fixtures are synthetic


const readJsonl = (p) =>
  readFileSync(p, "utf8").trim().split("\n").map((line) => JSON.parse(line));

const requests = readJsonl("proxy.jsonl");
const egress = readJsonl("egress.jsonl");

const WINDOW_MS = 5 * 60 * 1000;
const bucket = (iso) => Math.floor(Date.parse(iso) / WINDOW_MS);
const key = (workload, iso) => `${workload}#${bucket(iso)}`;

const BASELINE = new Set(["dicom.internal:4242", "mlflow.internal:5000"]);

const byBucket = new Map();
for (const e of egress) {
  if (BASELINE.has(e.dst)) continue;
  const k = key(e.workload, e.ts);
  if (!byBucket.has(k)) byBucket.set(k, []);
  byBucket.get(k).push(e);
}

const findings = [];
for (const r of requests) {
  const interesting = r.status >= 400 || r.path.includes("/infer");
  if (!interesting) continue;

  const out = byBucket.get(key(r.workload, r.ts));
  if (!out) continue;

  findings.push({
    workload: r.workload,
    window: new Date(bucket(r.ts) * WINDOW_MS).toISOString(),
    request: `${r.method} ${r.path} ${r.status}`,
    client: r.client,
    egress: out.map((e) => `${e.dst} ${e.bytes}B`),
  });
}

console.table(findings);

Abridged output from the fixture run:

workload      window                    request                        client         egress
'monai-label' '2026-11-24T03:05:00.000Z' 'POST /infer/segmentation 500' '203.0.113.44' [ '198.51.100.9:443 18432B' ]

That is a lead, not a verdict. The 500 could be an OOM; the egress could be a legitimate telemetry call nobody documented. That is why the baseline set at the top matters more than the correlation logic — build it from a week of normal operation, not during an incident.

Detection limits worth stating in the report

Unusual child processes, unexpected destinations, and storage writes are all correlation candidates. None of them proves exploitation, and none of them attributes the action to an AI agent. Any tool claiming to detect "AI-agent behavior" from network traffic alone is selling you a heuristic with a marketing wrapper. I would rather have a boring deterministic rule — "alert when this workload opens a connection outside its seven-destination baseline" — than a classifier I cannot audit.

Turn audit findings into containment and recovery decisions

Rank remediation by demonstrated exposure

Fix in this order: publicly reachable instances running as root, then instances with runtime sockets or hostPath mounts, then workloads with shared-data write access beyond their own prefix, then reusable credentials (cluster-wide secrets read, account-wide S3), then hardening nits. The ranking is by demonstrated exposure and privilege, not by how easy the fix is.

If compromise is suspected: preserve, revoke, rebuild

If the evidence points to actual compromise: preserve before you clean. Snapshot the pod's filesystem and logs to a location the workload cannot write to, capture the audit log window, then restrict access, revoke the credentials that were reachable, and rebuild from trusted artifacts. Patching and redeploying is not cleanup — a patched image on a node that still hosts a persistence mechanism is a rolled-back incident, not a closed one.

Acceptance checklist for a MONAI Label audit

  • Entry points tested from external and internal vantage points, results recorded with timestamps
  • Isolation verified by a bounded test, with a negative control
  • Service account, cloud identity, and storage permissions narrowed to the intended list
  • Telemetry for proxy, egress, and storage writes actually enabled and queryable
  • Vendor-confirmed remediation identified, or explicitly marked "unknown, monitoring the advisory feed"
  • Untested paths and remaining uncertainty written down

Further reading and evidence to retain

Supplied reporting (secondary, not an advisory)

Both items below are secondary reporting, published November 24, 2026, and neither is a vulnerability advisory. Retain them with that label attached.

  • TechGig, "Amazon reports AI agents exploited zero-day vulnerability autonomously" (November 24, 2026) — secondary reporting, headline-level detail only.
  • The Hacker News, "Hackers Exploit N-able MailAssure Flaw While AI Agents Exploit MONAI Label Zero-Day" (November 24, 2026) — secondary reporting; treat the MailAssure portion as a separate incident.

Primary documentation to keep

Add incident-specific primary research to this list only after you have the original Amazon write-up and a maintainer advisory in hand. Until then, the observed facts are the ones in your own audit output.

Share this post

More posts

Loading comments…