ChatMate: Remote Prompt Execution on AI Assistants through Sandbox Escaping

No ratings

Presented at Black Hat USA 2026 by

Imagine a user asks an LLM a question about a document. An attacker then gains an interactive prompt on the user's chat session, enabling the attacker to instruct the AI assistant to take actions on behalf of the victim.In this Briefing, we will reveal a novel vulnerability class we call "Remote Prompt Execution" where, similar to remote code execution, an attacker is able to "run" arbitrary prompts on the user's chat session. We will detail a full Copilot chain demonstrating a scenario where uploading a document to Copilot can lead to a full takeover of the Copilot's chat session.We will begin with a bypass of Copilot's safety filters to gain a foothold on its code execution infrastructure running on Azure. Although sandboxed, we chain a privilege escalation (PE) vulnerability to elevate an unprivileged user to root permissions, unlocking a new attack surface.The research culminates in a critical vulnerability discovery in the ACR Image Streaming service, accessible from the sandbox due to the container's network architecture. We will detail the black-box methodology leading to an arbitrary file write primitive on the host filesystem as root, leading to a full compromise. Ultimately, these vulnerabilities impacted many Azure services beyond Copilot.This is the first demonstration of an escape from the Copilot code execution sandbox to its host, enabling full compromise of a user's Copilot session by simply querying a single document—allowing the attacker to steal information from the user's Microsoft 365 environment.