Skip to content
Embrace The Red·Indexed by this site · Originally published· Attacks →SelectedAttention39

Researcher discloses hidden instruction attack in MCP tool metadata that can hijack clients such as Claude

MCP: Untrusted Servers and Confused Clients, Plus a Sneaky Exploit

AI summary

Security researcher Johann disclosed that tool metadata in the MCP protocol can carry hidden Unicode Tags instructions that are invisible in the user interface but are interpreted and executed by models such as Claude. The author built a malicious MCP server to demonstrate the full attack chain: embedding invisible instructions in the description of the message_of_the_day tool, inducing Claude to call the enter_matrix tool before calling that tool, while checking the description in the UI shows no anomaly. The attack does not require actually calling the tool; merely adding the malicious server to the conversation context hijacks the session, because tool metadata is automatically inserted into the system prompt. The attack is reproducible on Claude Desktop, GitHub Copilot Agent Mode, and Cursor.

Why it was selected

The author tested with a self-built MCP server, demonstrating how hidden Unicode Tags instructions in tool metadata can bypass UI visibility and trigger unauthorized tool calls.

Related papers
Read originalembracethered.com