High 4 Hunt LeadsIOCsAmazon Threat Intelligence

Told to “Get a Shell,” Cairn AI Agents Found Their Own Zero-Day

Amazon Threat Intelligence says a suspected China-linked operator's Cairn AI agents found a path traversal zero-day in MONAI Label on their own, reached file write in 11 minutes and got a root shell. No fixed release yet; lock it down.

Amazon Threat Intelligence says a suspected China-linked operator gave the open-source AI pentest framework Cairn a one-line goal, “obtain shell access,” and its agents found and used a zero-day on their own. The bug was a path traversal flaw in MONAI Label, an open-source tool researchers use to label medical images with AI. Amazon’s write-up, reported by BleepingComputer, says the agents went from mapping the app’s API to writing arbitrary files in about 11 minutes, and later turned that into a root shell. Amazon only saw any of this because the operator left the Cairn server open to the internet without a password.

For defenders

The campaign: roughly 48 hours starting Sept. 8, 2026, aimed at university IP ranges in East Asia outside mainland China. Amazon attributes it to a Chinese-nexus actor with moderate confidence, based on Simplified Chinese prompts, China Standard Time timestamps in scripts and the choice of targets. No group name is given. It’s a different operation from the Cairn intrusions Unit 42 described, and Amazon notes Gambit Security has seen a financially motivated crew using Cairn against online retailers.

The zero-day: MONAI Label’s PUT /datastore/image endpoint takes an image parameter and uses it as a file name without checking it, so a value like ../../../tmp/x writes the upload anywhere the process can write (PUT /datastore/label has the same problem). Authentication is off by default. The maintainers’ advisory (GHSA-qc22-rmgc-vg94, rated critical, CWE-22, no CVE yet) lists versions up to and including 0.8.5 and says the fix, in pull request 1915, ships in the next release. Exploitation is KNOWN, per Amazon, which assesses with high confidence it was a zero-day at the time.

How root came out of it: the agents wrote a Python reverse shell into sitecustomize.py, which Python loads automatically at startup, T1546.018 (Event Triggered Execution: Python Startup Hooks), then hit a training API endpoint that spawns a new Python process. That process ran the payload as root. The operator then handed the agents a proxy into a second university running the same software and told them to go after other machines there.

What failed: a 16-hour, 148-step attempt on an unauthenticated Redis server (replication abuse, sandbox escape, config writes, Log4Shell against a neighboring service, then SSRF through a co-located Qdrant and credential sprays), and a 6-hour spray of more than 30,000 credential combinations built from about 80 real usernames scraped from faculty pages and papers, T1110.003 (Brute Force: Password Spraying).

Network
142.4.98[.]145 ; 142.4.107[.]34 (Amazon: seen Sept. 8 to 10, 2026)

Host
sitecustomize.py written outside the Python install, by the MONAI Label process
PUT /datastore/image?image=../ (path traversal in the image parameter)

What it means for you

Unless you run a research server with MONAI Label on it, there’s nothing for you to patch. The bigger point is speed. A piece of software found a brand-new hole and broke in within minutes, then kept trying other doors for 16 hours without a break. Anything you leave on the internet with no password, or a guessable one, is going to be tried this way, around the clock.

Do this now

  1. If you run MONAI Label, take it off untrusted networks now, turn on authentication (MONAI_LABEL_AUTH_ENABLE=True) and run it as an unprivileged user until the fixed release is out.
  2. Check the server for a sitecustomize.py you didn’t put there and for ../ in datastore upload requests in your logs.
  3. Search firewall and web logs for the two addresses above, especially around Sept. 8 to 10.
  4. Put a password on every Redis and admin panel facing the internet, and use multi-factor login for SSH and VPN so password spraying gets nowhere.

Source article: Chinese-nexus actor’s Cairn AI agents found a zero-day on their own
Publisher: Amazon Web Services Security Blog (Amazon Threat Intelligence)
Published: Nov. 20, 2026
URL: https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/

Executive Summary

Amazon Threat Intelligence attributes, with moderate confidence, a campaign run between Sept. 8 and 10, 2026 to an unnamed Chinese-nexus threat actor (no vendor designation or alias is given) that drove Cairn, an open-source autonomous AI penetration-testing framework, against IP ranges belonging to universities in East Asia outside mainland China. The operator supplied target lists and a plain-language goal (“obtain shell access”), and Cairn’s agents planned and adapted each step; Amazon found the activity because the operator’s Cairn instance was exposed to the internet without authentication, revealing prompts in Simplified Chinese, China Standard Time script timestamps and the agents’ output. Amazon notes that Gambit Security separately documented a financially motivated actor using Cairn against online retailers, so the framework is in use for both espionage and crime. In the successful chain, the agents fingerprinted a MONAI Label server, mapped its API, found that the datastore upload endpoint’s image parameter was vulnerable to path traversal (GHSA-qc22-rmgc-vg94, affecting MONAI Label 0.8.5 and earlier, authentication off by default), and achieved arbitrary file write in about 11 minutes; in a later session they wrote a Python reverse shell into sitecustomize.py and triggered a training API endpoint so a new Python interpreter imported it, yielding a root shell. The operator then gave the agents a proxy into a second university network, likely through another server compromised with the same zero-day, and directed them at further hosts. Unsuccessful operations included a 16-hour, 148-action attempt on an unauthenticated Redis instance (replication abuse, Lua sandbox escape, configuration writes, memory corruption, Log4Shell against a co-located service, SSRF through Qdrant to map the Docker network, and credential sprays against PostgreSQL and SSH) and a 6-hour spray of more than 30,000 credential combinations built from about 80 harvested real usernames against SSH, an admin dashboard, a NAS, a VPN and a campus portal. The objective appears to be access to strategically interesting academic networks; impact confirmed by Amazon is root on at least one server and onward access into a second network. Hunt leads, false positive expectations and indicators are detailed below; no detection rules or file hashes were published with the source.

ATT&CK chain: Reconnaissance → Initial Access → Execution → Persistence → Privilege Escalation → Credential Access → Command and Control

Hunt Lead Grid

Hunt Lead Level Hunt Lead Name ATT&CK Risk of False Positives
1 (Junior) Cairn Operator IPs and Rogue sitecustomize.py Sweep T1190 (Exploit Public-Facing Application), T1546.018 (Event Triggered Execution: Python Startup Hooks) Low. The two addresses are campaign infrastructure Amazon tied to this activity, and a sitecustomize.py sitting in a MONAI Label server’s site-packages or working directory is rare; some distributions and managed Python environments ship their own sitecustomize.py, so confirm by owner, modification time and contents (a socket or subprocess call is the giveaway).
2 (Pro) MONAI Label Datastore Path Traversal Requests T1190 (Exploit Public-Facing Application) Low. Legitimate clients send plain image IDs; the rule anchors on ../, its URL-encoded forms or absolute paths in the image or label parameters of PUT /datastore/image and PUT /datastore/label, which normal annotation tools never produce.
3 (Elite) Startup Hook Write to Root Python Reverse Shell T1546.018 (Event Triggered Execution: Python Startup Hooks), T1059.006 (Command and Scripting Interpreter: Python) Medium. Training jobs legitimately spawn Python processes and some reach the internet for models or datasets; the correlation anchors on the web service process writing a Python startup file, followed by a newly spawned interpreter making an outbound connection to a non-allowlisted address or launching a shell.
3 (Elite) Machine-Tempo Password Spraying With Harvested Real Usernames T1589.003 (Gather Victim Identity Information: Employee Names), T1110.003 (Brute Force: Password Spraying) Medium. Internet background noise brute-forces SSH constantly; the rule anchors on one source testing many valid local usernames across several different services (SSH, VPN, portal, NAS, dashboards) for hours without pause, which commodity bots that spray generic names like root and admin don’t do.

Cairn Operator IPs and Rogue sitecustomize.py Sweep

Amazon published two addresses that appear in records from Sept. 8 to 10, 2026, the window of the campaign: 142.4.98[.]145 and 142.4.107[.]34. On the host side, the successful intrusion left a concrete artifact: the agents used the MONAI Label path traversal to write a Python reverse shell into sitecustomize.py, the module the interpreter imports automatically at startup, and then triggered a training endpoint so the next Python process ran it as root. The detection is a retrospective sweep of perimeter firewall, NetFlow, reverse proxy and web server logs for either address, and a file sweep of every host running MONAI Label (and, more widely, any Python service exposed to the internet) for a sitecustomize.py or usercustomize.py that is not part of the distribution’s packaging, with special attention to files whose owner matches the service account or root and whose modification time falls after the service was deployed.

Use edge firewall and NetFlow records, web server or reverse proxy access logs, and EDR or file integrity monitoring on Linux research servers. Sweep back to at least Sept. 1, 2026, and further if your logs allow, because the operator used one compromised server as a proxy into another network and that kind of access tends to outlive the first session. Scope it to university, research and GPU cluster hosts first, then to anything running a Python web service. Block the two addresses at the edge, but don’t treat blocking as the fix: the agents will come from somewhere else next time, while the MONAI Label exposure remains. For sitecustomize.py, compare against the file shipped by the distribution’s package manager (for example by package verification) rather than deleting every copy, since some environments legitimately use one. Any hit on a MONAI Label host, or a sitecustomize.py containing socket, subprocess or base64 decoding logic, should go straight to incident response with the host isolated, since Amazon confirms this path gave root.

Hunt Lead Level: 1 (Junior Analyst)

ATT&CK: Initial Access → T1190 (Exploit Public-Facing Application); Persistence / Privilege Escalation → T1546.018 (Event Triggered Execution: Python Startup Hooks)

Sources: “Chinese-nexus actor’s Cairn AI agents found a zero-day on their own”, Amazon Threat Intelligence, Nov. 20, 2026, https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/ (source article); “Hackers use autonomous AI tool Cairn to find zero-day, take over server”, BleepingComputer, Nov. 20, 2026, https://www.bleepingcomputer.com/news/security/hackers-use-autonomous-ai-tool-cairn-to-find-zero-day-take-over-server/ (additional source, same campaign)

MONAI Label Datastore Path Traversal Requests

The agents identified the MONAI Label framework, enumerated its API, and found an upload endpoint with a file name parameter that they then tested for path traversal; Amazon says they went from API mapping to arbitrary file write in about 11 minutes. The maintainers’ advisory pins the flaw down: PUT /datastore/image takes a caller-controlled image query parameter that LocalDatastore.add_image() joins onto the datastore directory without checking the result stays inside it, so a value such as ../../../tmp/x writes the upload anywhere the process can write; PUT /datastore/label builds its destination from the image ID and label tag the same way. Authentication is disabled by default, and with it enabled the ANNOTATOR role is enough. The detection logic is a match on requests to either endpoint where the image (or label tag) value contains ../, ..\, URL-encoded or double-encoded variants (%2e%2e%2f, %252e%252e%252f), or begins with /, and a second, lower-severity match on bursts of requests that walk the API (OpenAPI or docs pages, then many distinct endpoints) from one source in a few minutes, which is how the agents found the parameter in the first place.

Use reverse proxy or web server access logs in front of MONAI Label (the application’s own logs may not keep full query strings), and a WAF if one sits in front. Sweep back to the server’s deployment date, since the flaw had no advisory until Nov. 18, 2026 and Amazon saw it used as a zero-day in September. Scope to any host exposing MONAI Label, including lab servers that never made it into an asset inventory. False positives should be close to zero because annotation clients send plain identifiers; if a vulnerability scanner fires the rule, allowlist that scanner’s source address, not the pattern. Patching to the release that includes pull request 1915 is the real fix; a WAF rule on ../ helps but encoding tricks can slip past it, and changing only the port or relying on obscurity does nothing against agents that enumerate. A confirmed traversal write should be chained to the third lead to see whether a startup hook or other file was dropped. The pattern, upload endpoints that trust a file name, is generic and worth applying to every Python ML-serving tool you expose.

Hunt Lead Level: 2 (Pro)

ATT&CK: Initial Access → T1190 (Exploit Public-Facing Application)

Sources: “Chinese-nexus actor’s Cairn AI agents found a zero-day on their own”, Amazon Threat Intelligence, Nov. 20, 2026, https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/ (source article); “Path traversal in datastore upload endpoints allows arbitrary file write” (GHSA-qc22-rmgc-vg94), Project MONAI, Nov. 18, 2026, https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94 (additional source, the vendor advisory for this zero-day)

Startup Hook Write to Root Python Reverse Shell

In a session after the first file write, the agents used the same traversal to place a Python reverse shell payload in sitecustomize.py, then called a training API endpoint that makes MONAI Label spawn a fresh Python process; that interpreter imported the payload at startup and connected back as root. The behavioral sequence to build is: the MONAI Label server process (a Python or uvicorn process) creates or modifies sitecustomize.py or usercustomize.py anywhere on the Python path, or any .pth file in site-packages; shortly afterwards, a child Python interpreter of that service starts; and that child opens an outbound TCP connection to an address outside the allowlist of model hubs and dataset mirrors, or spawns /bin/sh, bash or another shell, or duplicates a socket onto standard input and output. Any two of the three steps on the same host within an hour is worth an alert; all three is a confirmed compromise.

Join Linux EDR or auditd file events (watch rules on site-packages and the service’s working directory), process creation events with parent lineage, and outbound connection logs from the host firewall, NetFlow or EDR network telemetry. Sweep back 90 days on MONAI Label hosts and other internet-facing Python services, since the operator reused footholds as proxies. Baseline the domains and addresses legitimate training jobs reach (model registries, package mirrors, storage buckets) and allowlist them by destination, not by process name, because every training job is just “python”. Don’t rely on hash-blocking the payload: the agents generate code on the fly, so there is no stable hash, and Amazon published none. Running the service as a non-root user with write access limited to the datastore, as the advisory recommends, removes the root half of this chain. A full sequence should be escalated to incident response and the host rebuilt, since a root shell on a research server can reach credentials and shared storage. Python startup hooks are a general persistence technique that has also appeared in poisoned PyPI packages, so this correlation is useful well beyond MONAI.

Hunt Lead Level: 3 (Elite)

ATT&CK: Persistence / Privilege Escalation → T1546.018 (Event Triggered Execution: Python Startup Hooks); Execution → T1059.006 (Command and Scripting Interpreter: Python)

Sources: “Chinese-nexus actor’s Cairn AI agents found a zero-day on their own”, Amazon Threat Intelligence, Nov. 20, 2026, https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/ (source article)

Machine-Tempo Password Spraying With Harvested Real Usernames

Against one university, the agents first built a list of about 80 real usernames from faculty directories, lab websites, archived pages and academic papers, then tested more than 30,000 credential combinations over more than six hours against a GPU server’s SSH and, elsewhere on the same network, an admin dashboard, a network storage device, a VPN server and the campus portal. In the Redis operation the agents also sprayed PostgreSQL, SSH and other services after mapping an internal Docker network through an SSRF in a co-located Qdrant instance, and kept going for roughly 16 hours and 148 actions. The detection logic is stateful: count, per source address (and per /24, since operators rotate), the number of distinct services and distinct valid usernames that see failed authentications over a rolling six to twenty-four hour window, and alert when one source hits three or more different services with a username set that overlaps your real directory, at a steady rate that doesn’t pause for nights or weekends.

Correlate SSH authentication logs, VPN concentrator logs, identity provider or campus portal sign-in logs, NAS and admin dashboard logs, and database authentication failures, normalized to source and username. Sweep back to September 2026 for the published window, then run it continuously. The useful filter against background internet noise is whether attempted usernames are valid accounts; commodity bots spray root, admin and test, while these agents used names researched from public pages. Allowlist your own vulnerability scanners and penetration testers by source. Account lockout alone is the wrong primary control because it lets an attacker lock out real faculty; prefer multi-factor authentication on SSH and VPN, SSH keys instead of passwords on research servers, and rate limiting per source. A spray that is followed by any success, or by a login from a new location for a targeted user, should be escalated immediately. This pattern generalizes to any agentic or automated attacker, since tireless, broad, well-researched spraying is exactly what these tools make cheap.

Hunt Lead Level: 3 (Elite)

ATT&CK: Reconnaissance → T1589.003 (Gather Victim Identity Information: Employee Names); Credential Access → T1110.003 (Brute Force: Password Spraying)

Sources: “Chinese-nexus actor’s Cairn AI agents found a zero-day on their own”, Amazon Threat Intelligence, Nov. 20, 2026, https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/ (source article)

Hash Appendix

Cairn campaign artifacts

Neither Amazon nor BleepingComputer published file hashes; the reverse shell payload was generated by the AI agents and written into sitecustomize.py, so no stable sample exists. No hashes were looked up in OTX AlienVault or VirusTotal for this report.

MD5s

(not available)  # sitecustomize.py -> agent-written Python reverse shell (Python startup hook)

SHA1s

(not available)  # sitecustomize.py -> agent-written Python reverse shell (Python startup hook)

SHA256s

(not available)  # sitecustomize.py -> agent-written Python reverse shell (Python startup hook)

References Appendix

  • “Chinese-nexus actor’s Cairn AI agents found a zero-day on their own”, Amazon Web Services Security Blog (Amazon Threat Intelligence), Nov. 20, 2026, https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/
  • “Hackers use autonomous AI tool Cairn to find zero-day, take over server”, BleepingComputer (Bill Toulas), Nov. 20, 2026, https://www.bleepingcomputer.com/news/security/hackers-use-autonomous-ai-tool-cairn-to-find-zero-day-take-over-server/
  • “Path traversal in datastore upload endpoints allows arbitrary file write” (GHSA-qc22-rmgc-vg94), Project MONAI / MONAILabel, Nov. 18, 2026, https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94

More from the Roundup