# Suspected Chinese-nexus actors use autonomous AI tool Cairn to discover and exploit MONAI Label path-traversal zero-day (GHSA-qc22-rmgc-vg94)

> Amazon Threat Intelligence reports that a suspected Chinese-nexus operator used the open-source multi-agent AI pentesting framework Cairn to find and exploit an unpatched path-traversal flaw in MONAI Label, a medical-imaging AI application, gaining a root reverse shell on a university server. Activity ran September 8-10, 2026 against East Asian educational institutions outside mainland China; the flaw was disclosed as GHSA-qc22-rmgc-vg94 on November 18, 2026 and has no CVE ID as of the advisory.

- **Published:** 2026-11-20T17:55:28Z
- **Last reviewed:** 2026-11-23T06:07:26.125Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-6605
- **ID:** TL-2026-6605
- **Severity:** CRITICAL (CVSS 9.8)
- **Category:** ZERO_DAY
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 12 (2 shown free below)
- **CVEs:** CVE-2026-133968

## Description

Amazon Threat Intelligence discovered the campaign on September 10, 2026 after the operator left a Cairn instance publicly reachable without authentication, exposing operational history including the operator's prompts. Cairn is an open-source, multi-agent AI penetration-testing framework designed for research and defense. In this case the operator supplied target IP addresses and a short instruction to "obtain shell access", and the agents worked largely without human direction.

Against a university server the agents identified the application framework (MONAI Label), mapped its API endpoints, and found an upload endpoint taking a caller-controlled filename parameter. They tested it for path traversal, and about 11 minutes elapsed between API mapping and arbitrary file writes on the server. In a later session the agents wrote a Python reverse shell into sitecustomize.py, which Python loads automatically at interpreter start-up, and then triggered an API endpoint so the interpreter loaded it, obtaining a shell running as root. The operator subsequently gave the agents a proxy into a second university network running the same vulnerable software and instructed them to target other machines there.

The GitHub advisory GHSA-qc22-rmgc-vg94 (published 2026-11-18, severity listed as Critical, CWE-22, no CVE assigned, no CVSS score published) describes the root cause: the PUT /datastore/image endpoint accepts a caller-controlled `image` query parameter used as the image ID without validation. LocalDatastore.add_image() appends the extension, joins the value to the datastore image directory and writes the upload with shutil.copy(); LocalDatastore.save_label() (PUT /datastore/label) builds its destination similarly. A value such as ../../../tmp/x writes uploaded content anywhere the MONAI Label process can write. Authentication is disabled by default (MONAI_LABEL_AUTH_ENABLE=False), so any client that can reach the server can exploit it; with auth enabled the ANNOTATOR role suffices. The advisory lists affected versions as <= 0.8.5 and, at the time of the fetch, shows no patched release (fix in PR #1915, to be included in the next release), while press coverage states maintainers released a security update on November 18. Defenders should verify the installed build includes the PR #1915 fix.

The same operator's agents also ran unsuccessful operations: a roughly 16-hour, 148-action attempt to take over a Redis server (abusing replication, scripting-sandbox escape, config writes, memory corruption), a Log4Shell injection, an SSRF against a Qdrant instance, and a 6+ hour credential spray against a university GPU server (80 usernames collected from public sources; more than 30,000 credential combinations per The Record). Reporting differs on whether the Log4Shell attempt was part of the Redis operation.

Attribution to a Chinese-nexus actor is moderate confidence, based on Simplified Chinese prompts, China Standard Time timestamps on executed scripts, and target selection. Amazon assesses with high confidence that the flaw was a zero-day, because no fix, issue, advisory, or prior mention existed in vulnerability databases. Cairn abuse has also been reported separately by Gambit Security (a financially motivated, apparently Chinese operator running Cairn with Strix and Hermes against retailers) and by Google GTIG (use against the US aerospace sector); these are distinct activity clusters and are not shown to be the same operator. No payload code, hashes, or domains were published in the sources reviewed.

## MITRE ATT&CK

- T1595 Active Scanning
- T1588.007 Obtain Capabilities: Artificial Intelligence
- T1190 Exploit Public-Facing Application
- T1059.006 Command and Scripting Interpreter: Python
- T1574 Hijack Execution Flow
- T1110 Brute Force
- T1090 Proxy
- T1595.002 Active Scanning: Vulnerability Scanning
- T1589 Gather Victim Identity Information
- T1588.002 Obtain Capabilities: Tool
- T1110.003 Brute Force: Password Spraying
- T1572 Protocol Tunneling
- T1546.018 Event Triggered Execution: Python Startup Hooks
- T1592 Gather Victim Host Information
- T1110.001 Brute Force: Password Guessing
- T1046 Network Service Discovery

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**TL-2026-6605 MONAI Label Datastore Path Traversal Upload (GHSA-qc22-rmgc-vg94) — Exploitation** (`TL-2026-6605-SPL-001`)

Detects PUT requests to the MONAI Label /datastore/image and /datastore/label endpoints whose caller-controlled image parameter contains directory-traversal sequences (../, %2e%2e%2f, ..%5c), the arbitrary-file-write primitive in GHSA-qc22-rmgc-vg94 (CWE-22, monailabel <= 0.8.5, no CVE assigned) that the Cairn-driven operator used to reach a root shell. Authentication is disabled by default, so any reachable client can trigger it. The PUT upload also delivers attacker-controlled content to the server (ingress transfer, T1105), later used for the sitecustomize.py reverse shell. Behaviour-first: it does not depend on attacker IPs.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1190, T1105
- **Data sources:** web_access_logs, index=web sourcetype=access_combined, CommonSecurityLog, sigma:webserver
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

```spl
index=web (sourcetype=access_combined OR sourcetype=apache:access OR sourcetype=nginx:plus:access) method=PUT (uri="/datastore/*" OR uri_path="/datastore/*")
| eval req_full=coalesce(uri, uri_path.if(isnotnull(uri_query),"?".uri_query,""))
| eval decoded_uri=urldecode(urldecode(req_full))
| where match(decoded_uri,"[.][.]/") OR match(lower(req_full),"[.][.]%5c")
| eval src=coalesce(clientip,src,src_ip)
| stats count AS attempts min(_time) AS firstTime max(_time) AS lastTime values(req_full) AS requests values(status) AS http_status BY src host
| convert ctime(firstTime) ctime(lastTime)
| eval rule="TL-2026-6605 MONAI Label datastore path traversal GHSA-qc22-rmgc-vg94"
```

### Microsoft KQL

```kql
CommonSecurityLog
| where TimeGenerated > ago(24h)
| where RequestMethod =~ 'PUT' and RequestURL has '/datastore/'
| where RequestURL matches regex @'(?i)([.][.]/|[.][.]%2f|%2e%2e(/|%2f|%5c)|[.][.]%5c)'
| project TimeGenerated, SourceIP, DestinationIP, DeviceVendor, RequestMethod, RequestURL, RequestClientApplication
| order by TimeGenerated desc
```

### Sigma

```yaml
title: MONAI Label Datastore Path Traversal Upload (GHSA-qc22-rmgc-vg94)
id: 6b1f0c52-3a7e-4d1c-9e55-0c1a2f7d8b01
status: experimental
description: Detects PUT requests to the MONAI Label /datastore/ upload endpoints (image, label) carrying directory traversal sequences in the image parameter, the arbitrary file write flaw GHSA-qc22-rmgc-vg94 (CWE-22, monailabel <= 0.8.5) exploited by a Cairn-driven operator.
references:
  - https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94
  - https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/
author: Threadlinqs Team
date: 2026/11/20
tags:
  - attack.initial_access
  - attack.t1190
  - attack.command_and_control
  - attack.t1105
  - attack.tool.cairn
logsource:
  category: webserver
detection:
  selection_method:
    cs-method: 'PUT'
  selection_path:
    c-uri|contains: '/datastore/'
  selection_traversal:
    c-uri|contains:
      - '../'
      - '..%2f'
      - '%2e%2e%2f'
      - '..%5c'
      - '%2e%2e%5c'
  condition: all of selection_*
falsepositives:
  - Vulnerability scanners or authorised penetration tests against MONAI Label
  - Reverse proxies that normalise paths and log the raw client value
level: high
```

**Known false positives:**

- Authorised vulnerability scans or penetration tests that probe the MONAI Label datastore endpoints with traversal payloads
- Reverse proxies or WAFs that log the raw client URI of requests they subsequently block

**Tuning notes:** Point index/sourcetype at the proxy or web tier in front of MONAI Label (default port 8000). If the app is fronted by a WAF, also alert on allowed (non-blocked) results only. Allowlist known scanner source IPs. Pair with a host-side check that the installed build includes PR #1915.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- Agent-Speed MONAI Label API Mapping Followed by Datastore Write (Cairn) — Exploitation (locked: unlock with TL Creds)
- Root Shell Spawned by Python / MONAI Label Service Interpreter — Post-Exploitation (locked: unlock with TL Creds)
- High-Volume SSH Credential Spray Across Many Usernames Against ML/GPU Servers (locked: unlock with TL Creds)
- Log4Shell JNDI Injection Attempt in Web Request Fields — Exploitation (locked: unlock with TL Creds)
- Python Process Writing Execution-Hijack or Persistence Files — Post-Exploitation (locked: unlock with TL Creds)
- Tunnelling / Proxy Utilities Executed on Linux Server — C2 / Lateral Movement (locked: unlock with TL Creds)
- Python Startup Hook [indicator] Created or Modified — Post-Exploitation Persistence (locked: unlock with TL Creds)
- Python or MONAI Label Process Outbound Reverse Shell / Cairn Infrastructure — C2 (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (2 of 12)

Defanged, TLP:CLEAR.

- IP address: `142.4.98[.]145`
- IP address: `142.4.107[.]34`

Full set of 12 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [Hackers use autonomous AI tool Cairn to find zero-day, take over server (BleepingComputer)](https://www.bleepingcomputer.com/news/security/hackers-use-autonomous-ai-tool-cairn-to-find-zero-day-take-over-server/)
- [Chinese-nexus actors: Cairn AI agents found a zero-day on their own (Amazon Security Blog)](https://aws.amazon.com/blogs/security/chinese-nexus-actors-cairn-ai-agents-found-a-zero-day-on-their-own/)
- [GHSA-qc22-rmgc-vg94: Path traversal in datastore upload endpoints allows arbitrary file write](https://github.com/Project-MONAI/MONAILabel/security/advisories/GHSA-qc22-rmgc-vg94)
- [MONAI Label PR #1915 (path traversal fix)](https://github.com/Project-MONAI/MONAILabel/pull/1915)
- [China attackers deployed AI agents that autonomously found and exploited a 0-day to take over a university server (The Register)](https://www.theregister.com/security/2026/11/20/china-attackers-deployed-ai-agents-that-autonomously-found-and-exploited-a-0-day-to-take-over-a-university-server/5311382)
- [Amazon says Chinese hackers used Cairn AI tool to discover apparent zero-day during attack on university (The Record)](https://therecord.media/amazon-research-cairn-ai-university-attacks-possible-zero-day)
- [Malicious AI agents steal 600K credit cards, infect 100+ sites with skimmers (BleepingComputer, Gambit Security research)](https://www.bleepingcomputer.com/news/security/malicious-ai-agents-steal-600k-credit-cards-infect-100-plus-sites-with-skimmers/)
- [Gambit Security: autonomous AI agents, online retailers, $25 a company](https://gambit.security/blog-posts/autonomous-ai-agents-online-retailers-25-a-company)
- [Google warns that fully-automated AI attacks are coming soon (BleepingComputer, GTIG research)](https://www.bleepingcomputer.com/news/security/google-warns-that-fully-automated-ai-attacks-are-coming-soon/)
- [Google GTIG: Agentic threat activity crosses a significant threshold](https://cloud.google.com/blog/topics/threat-intelligence/agentic-threat-activity-crosses-a-significant-threshold)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-6605
