# Qilin-Linked Campaign Exploits MCP Gateway and LLM Framework Flaws (CVE-2026-59822, CVE-2026-42271, CVE-2026-48710) for RCE and Cryptomining

> Wiz.io honeypots logged 90 days of active exploitation against AI infrastructure — LiteLLM/MCP gateways, LangChain, Flowise, Langflow, OpenWebUI, and Node-RED — chaining an MCP auth bypass (CVE-2026-59822), an MCP test-endpoint command injection (CVE-2026-42271), and a Starlette Host-header bypass (CVE-2026-48710, "BadHost") into unauthenticated RCE. External researchers linked the chain to the Qilin ransomware group; successful compromises deployed the XMRig Monero miner rather than ransomware.

- **Published:** 2026-08-28T00:00:00Z
- **Last reviewed:** 2026-08-31T01:47:21.132Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-2185
- **Card image:** https://intel.threadlinqs.com/og/threat/threat-intel-qilin-litellm-xmrig-mining-tl-2026-2185.webp?v=45db3b66 (Threadlinqs threat intel: Qilin-Linked LiteLLM CVE-2026-42271 Chain: Detection & IOCs (TL-2026-2185) — Critical severity, 24 IOCs, 9 detection rules.)
- **ID:** TL-2026-2185
- **Severity:** CRITICAL (CVSS 10)
- **Category:** VULNERABILITY
- **Status:** ACTIVE
- **Actor:** Qilin ransomware group
- **Detections:** 9 (1 shown free below) · **IOCs:** 24 (3 shown free below)
- **CVEs:** CVE-2026-59822, CVE-2026-42271, CVE-2026-48710

## Description

Wiz Threat Research deployed honeypots mimicking commonly-run AI/ML services (LiteLLM, Flowise, LangChain, Langflow, ChromaDB, Ollama, and others) and observed 90 days of sustained scanning and exploitation. Three distinct vulnerabilities converged into a single attack surface. CVE-2026-59822 is an authentication-bypass flaw in LiteLLM's MCP Streamable HTTP endpoint: when OAuth2-passthrough token validation failed, the handler fell back to an empty UserAPIKeyAuth() object instead of rejecting the request, so any Bearer token — even a single character such as 'x' — granted full MCP tool access. CVE-2026-42271 is a command-injection flaw in two MCP preview/test endpoints, POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list, which accept a full stdio server configuration (command/args/env) and spawn it as a subprocess on the proxy host; originally this required a valid (even low-privilege) API key. CVE-2026-48710 ("BadHost") is a Host-header validation bypass in the Starlette ASGI framework underlying FastAPI, LiteLLM, and much of the Python AI-agent ecosystem: Starlette reconstructed request.url by concatenating the raw, unvalidated Host header with the request path, letting a crafted Host header (e.g. a path-separator character appended) desync what security middleware sees from what the router actually dispatches. Chaining CVE-2026-48710 in front of CVE-2026-42271 removes the authentication requirement entirely, producing fully unauthenticated remote code execution against any network-reachable, unpatched LiteLLM/MCP deployment — a chain researchers rated a combined CVSS of 10.0. In observed honeypot sessions, attackers submitted fake MCP stdio configs whose 'command' field was a Python script that downloaded a cryptominer archive from http://185.62.1.8/mon/mon.zip, extracted it to the hidden directory /tmp/.dbus-cache/, launched the 'gmon' Monero-miner binary detached via start_new_session=True, returned a fabricated-but-valid-looking MCP handshake to mask the compromise, and then deleted the staging directory while the miner persisted in memory. Separately, attackers ran blind/indirect prompt injection against LangChain, Flowise, OpenWebUI, and Node-RED agent deployments — instructing the model to invoke its shell tool — and confirmed successful execution out-of-band via DNS lookups to attacker-controlled OAST-style domains embedding the victim IP/session ID, avoiding any HTTP response that would reveal success. Once confirmed, second-stage commands were pulled from Pastebin (keeping payload content out of logs and allowing dynamic updates) and delivered base64-encoded (echo <b64>|base64 -d|bash -i) to evade naive log-based detection. On compromised Node-RED hosts the XMRig binary was staged at /usr/src/node-red/xmrig to blend into the Node.js process tree; on Langflow hosts it was staged as a binary named 'unicorn' inside /app/data/.claude/, mimicking a Claude Code configuration directory. Rather than hunting for credential files on disk, attackers extracted the LiteLLM master key and API keys directly from the live Python process's module state (e.g. reading litellm.proxy.proxy_server.master_key in memory), and fingerprinted deployments using LiteLLM's known default master key 'sk-1234'. External researchers linked the exploitation chain to the Qilin (aka Agenda) ransomware-as-a-service group, though this attribution is circumstantial: the observed honeypot payload was exclusively XMRig cryptomining, not ransomware deployment, and no primary source in this research confirmed the link beyond 'external researchers.' CVE-2026-42271 was added to the CISA Known Exploited Vulnerabilities catalog on 2026-06-08 based on confirmed in-the-wild exploitation.

## MITRE ATT&CK

- T1190 Exploit Public-Facing Application
- T1059.006 Python
- T1059.004 Unix Shell
- T1027 Obfuscated Files or Information
- T1140 Deobfuscate/Decode Files or Information
- T1036 Masquerading
- T1564.001 Hidden Files and Directories
- T1552 Unsecured Credentials
- T1071.004 DNS
- T1496 Resource Hijacking
- T1584 Compromise Infrastructure
- T1588.002 Tool
- AML.T0051 LLM Prompt Injection
- T1105 Ingress Tool Transfer
- T1005 Data from Local System

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

**XMRig Dropper Staging via MCP Command Injection — Hidden Directory, Masqueraded Binary, Base64 Bash Execution** (`TL-2026-2185-SPL-002`)

Detects the post-exploitation dropper chain observed after MCP command-injection: a Python/shell process downloading mon.zip from 185.62.1.8, extracting to the hidden staging directory /tmp/.dbus-cache/, launching the 'gmon' miner detached (start_new_session=True), staging XMRig masqueraded as /usr/src/node-red/xmrig or /app/data/.claude/unicorn, base64-decoded piped-to-bash execution, or in-memory access to the LiteLLM master_key.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1059.006, T1059.004, T1027, T1140, T1036, T1564.001, T1552
- **Data sources:** sysmon, linux_auditd, edr_process_telemetry, container_runtime_logs
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

```spl
index=endpoint (sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 OR sourcetype="linux:auditd" OR sourcetype="osquery:process_events")
| eval susp_dl=if(match(CommandLine, "(?i)mon\.zip|185\.62\.1\.8"), 1, 0)
| eval susp_path=if(match(CommandLine, "(?i)/tmp/\.dbus-cache/|/usr/src/node-red/xmrig|/app/data/\.claude/unicorn"), 1, 0)
| eval susp_b64=if(match(CommandLine, "(?i)base64\s+-d\s*\|\s*bash"), 1, 0)
| eval susp_detach=if(match(CommandLine, "(?i)start_new_session\s*=\s*True"), 1, 0)
| eval susp_cred=if(match(CommandLine, "(?i)master_key|proxy_server\.master_key"), 1, 0)
| where susp_dl=1 OR susp_path=1 OR susp_b64=1 OR susp_detach=1 OR susp_cred=1
| stats count min(_time) as first_seen values(CommandLine) as commands values(user) as user by host, ParentImage, Image
| table first_seen host ParentImage Image user commands count
| sort -count
```

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where ProcessCommandLine has_any ("mon.zip", "185.62.1.8", "/tmp/.dbus-cache/", "/usr/src/node-red/xmrig", "/app/data/.claude/unicorn", "start_new_session=True", "master_key")
    or (ProcessCommandLine has "base64" and ProcessCommandLine has "bash")
| project Timestamp, DeviceName, InitiatingProcessFileName, FileName, ProcessCommandLine, AccountName
| summarize Count = count(), Commands = make_set(ProcessCommandLine) by DeviceName, InitiatingProcessFileName, FileName
| where Count > 0
```

### Sigma

```yaml
title: XMRig Dropper Staging and Masquerading via Compromised AI Gateway
id: b2f5c3d7-8e40-4d9b-af32-6a7c9b3d2e51
status: experimental
description: Detects the XMRig dropper chain deployed via MCP command injection - payload download, hidden-directory staging, detached launch, masqueraded binary names, base64-piped bash execution, and in-memory LiteLLM master-key access.
references:
  - https://www.wiz.io/blog/ai-infrastructure-honeypot
  - https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g
author: Threadlinqs Team
date: 2026-08-28
tags:
  - attack.execution
  - attack.t1059.006
  - attack.t1059.004
  - attack.defense-evasion
  - attack.t1027
  - attack.t1140
  - attack.t1036
  - attack.t1564.001
  - attack.credential-access
  - attack.t1552
  - attack.tool.xmrig
logsource:
  category: process_creation
  product: linux
detection:
  selection_download:
    CommandLine|contains:
      - 'mon.zip'
      - '185.62.1.8'
  selection_stage:
    CommandLine|contains:
      - '/tmp/.dbus-cache/'
      - '/usr/src/node-red/xmrig'
      - '/app/data/.claude/unicorn'
  selection_detach:
    CommandLine|contains: 'start_new_session=True'
  selection_b64bash:
    CommandLine|contains|all:
      - 'base64'
      - 'bash'
  selection_cred:
    CommandLine|contains: 'master_key'
  condition: 1 of selection_*
falsepositives:
  - Legitimate DBus/system cache directories on some Linux distributions (verify exact path and binary hash before alerting)
  - Developers debugging LiteLLM master_key configuration via legitimate admin tooling
level: critical
```

**Known false positives:**

- Legitimate DBus/system cache directories on some Linux distributions
- Developers or admins legitimately referencing master_key while debugging LiteLLM configuration

**Tuning notes:** Pin selection_stage to exact file hashes once samples are collected to reduce path-only false positives; scope to containers/hosts running LiteLLM, Node-RED, or Langflow; alert-only (no auto-kill) until path/hash correlation confirms malicious intent.

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

- [indicator]/MCP Auth-Bypass and BadHost Chain Exploitation Attempt (Sentinel) (locked: unlock with TL Creds)
- XMRig Dropper Staging via MCP Command Injection (Sentinel) (locked: unlock with TL Creds)
- XMRig Mining-Pool C2 and DNS OOB Confirmation Traffic (Sentinel) (locked: unlock with TL Creds)
- [indicator]/MCP Auth-Bypass and BadHost Chain Exploitation Attempt (Sigma) (locked: unlock with TL Creds)
- XMRig Dropper Staging via MCP Command Injection (Sigma) (locked: unlock with TL Creds)
- XMRig Mining-Pool C2 and DNS OOB Confirmation Traffic (Sigma) (locked: unlock with TL Creds)
- [indicator]/MCP Auth-Bypass and BadHost Chain Exploitation Attempt (CVE-2026-59822/CVE-2026-48710/CVE-2026-42271) (locked: unlock with TL Creds)
- XMRig Mining-Pool C2 and Prompt-Injection DNS Out-of-Band Confirmation Traffic (locked: unlock with TL Creds)

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

## Sample indicators (3 of 24)

Defanged, TLP:CLEAR.

- IP address: `185.62.1[.]8`
- Domain: `pool[.]hashvault[.]pro`
- IP address: `185.84.98[.]85`

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

## Sources

- [Hackers Target AI Infrastructure](https://cybersecuritynews.com/hackers-target-ai-infrastructure/)
- [Attacks on AI Infrastructure: 90-Day Honeypot Telemetry](https://www.wiz.io/blog/ai-infrastructure-honeypot)
- [CVE-2026-59822: LiteLLM MCP Authentication Bypass via OAuth2 Passthrough Fallback (GHSA-7488-6r32-c95q)](https://github.com/BerriAI/litellm/security/advisories/GHSA-7488-6r32-c95q)
- [CVE-2026-42271: LiteLLM Authenticated Command Execution via MCP stdio test endpoints (GHSA-v4p8-mg3p-g94g)](https://github.com/BerriAI/litellm/security/advisories/GHSA-v4p8-mg3p-g94g)
- [CVE-2026-48710: Starlette Security Restriction Bypass via Malformed Host Header (GHSA-86qp-5c8j-p5mr)](https://github.com/Kludex/starlette/security/advisories/GHSA-86qp-5c8j-p5mr)
- [CVE-2026-42271: LiteLLM Unauthenticated RCE (chained with CVE-2026-48710)](https://horizon3.ai/attack-research/vulnerabilities/cve-2026-42271-chained-with-cve-2026-48710/)
- [LiteLLM Flaw CVE-2026-42271 Exploited in the Wild, Chains to Unauthenticated RCE](https://thehackernews.com/2026/06/litellm-flaw-cve-2026-42271-exploited.html)
- [CISA Adds Two Known Exploited Vulnerabilities to Catalog](https://www.cisa.gov/news-events/alerts/2026/06/08/cisa-adds-two-known-exploited-vulnerabilities-catalog)
- [CISA KEV Highlights LiteLLM RCE (CVE-2026-42271) & Check Point VPN Auth Bypass (CVE-2026-50751)](https://socradar.io/blog/cisa-kev-litellm-cve-2026-42271-check-point-cve-2026-50751/)
- [Qilin - Threat Actor Profile](https://analyst1.com/threat-actors/qilin-threat-actor-profile/)

## 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): https://intel.threadlinqs.com/mcp

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