Attackers exploit AI infrastructure with MCP RCE and blind prompt injection
Attackers are actively targeting self-hosted AI services using MCP remote code execution, blind prompt injection, and AI-native post-exploitation techniques.
Security & privacy Wiz Research 27 Aug 2026 Disclosure Real-world evidence
Published as “Inside 90 days of attacks on AI infrastructure”
Why it matters
Organizations must treat internet-exposed AI services as high-value assets and apply strict authentication, monitoring, and rapid patching to mitigate these emerging attack vectors.
Summary
Wiz operated honeypots on a variety of AI/ML services for 90 days and observed three distinct attack patterns: (1) exploitation of an authentication bypass and a command-injection flaw in LiteLLM's MCP gateway and test endpoints to achieve remote code execution and run cryptominers; (2) blind prompt injection against AI agent frameworks such as LangChain and Node-RED, confirmed via DNS callbacks to attacker-controlled OAST domains; (3) AI-native post-exploitation where attackers extract model provider API keys and master keys directly from process memory. The evidence comes from live telemetry and captured request/response logs, but some payloads are reconstructed rather than directly observed. The write-up emphasizes the need for strict authentication, monitoring, and rapid patching of AI infrastructure.
What they found 4
- Any Bearer token, even a single character, grants full MCP access on vulnerable LiteLLM gateways.
“Any Bearer token (even just a single character, e.g., x) grants full MCP access.”
- Command injection in LiteLLM MCP test endpoints allows attackers to download and run a cryptominer.
“Attackers submitted a fake MCP stdio server configuration where the command field contained a Python script that downloaded and executed a cryptominer, then returned a valid MCP handshake so the connection test would appear to succeed.”
- Blind prompt injection can be verified via DNS queries to attacker-controlled OAST domains.
“If the agent had a shell tool and ran it, a DNS query would fire to an attacker-controlled callback domain (often hosted in an OAST provider), confirming execution without revealing any output in the response.”
- Attackers extract LiteLLM master keys from the running process's Python module state in memory.
“On LiteLLM, rather than searching for credential files on disk, attackers queried the running process's Python module state directly to extract the master key from memory, since it doesn’t exist in a file on the disk.”
Caveats 4
- While we don't have the natural language prompt in these cases, public prompt injection playbooks that target AI agents follow a consistent structure.
- This is a reconstruction consistent with the observed process tree and documented injection techniques, not a captured payload.
- We don't have the natural language prompt in these cases; the shown prompt is a reconstruction.
- The described payload delivery via Pastebin is inferred, not directly observed.
What’s new here 4
- Identification of an authentication bypass in LiteLLM's MCP gateway (CVE-2026-59822) that accepts any Bearer token.
- Discovery of a command-injection vulnerability in LiteLLM's MCP test endpoint (CVE-2026-42271) used to launch cryptominers.
- Demonstration of blind prompt injection against AI agents using DNS OAST callbacks for out-of-band confirmation.
- Description of AI-native post-exploitation techniques that query Python module state to steal master keys.
In the news
- —CISA Expands KEV Catalog with Multiple Actively Exploited Zero‑Day Flaws Across Major Vendors CVE-2026-59822
- —Multiple remote code execution and authentication bypass flaws disclosed across AI, industrial and email software CVE-2026-42271
- —Unauthenticated RCE in LiteLLM via Starlette Host Header Bypass (CVE‑2026‑42271) CVE-2026-42271
- —PoeLLM malware hijacks exposed AI servers for cryptomining and exploit deployment CVE-2026-42271