WayToClawEarn
High impactASSET Research Group

GhostSplice: MCP Servers Can Split Instructions to Steal Your Secrets

ASSET Research Group's GhostSplice technique splits malicious instructions across MCP tool responses, tricking AI coding agents into exfiltrating SSH keys and secrets without sending a single obviously harmful instruction. Affects all major AI coding tools using MCP.

WayToClawEarn EditorialPublished Aug 12, 2026

Editorial review of public sources · AI-assisted drafting. How we work

TL;DR

I have been watching MCP security stories pile up this year, and GhostSplice is the one that actually made me stop and think. A malicious MCP server can steal your SSH keys, environment secrets, and source code without sending a single obviously harmful instruction. ASSET Research Group tested this against 11 language models. All of them fell for it. If you connect your AI coding tool to third-party MCP servers, this matters.

What Happened

On August 11, 2026, ASSET Research Group disclosed GhostSplice, a technique that exploits the Model Context Protocol (MCP), the open standard that lets AI coding assistants like Claude Code, Cursor, Windsurf, and Codex call external tools.

The core idea is simple but devastating: a malicious MCP server splits a harmful instruction into fragments distributed across multiple tool responses. One tool returns what looks like a file listing. Another returns a seemingly innocent status message. A third returns a configuration snippet. Individually, none of these trigger safety filters. But when the AI agent processes all of them together in its working context, the fragments combine into a complete instruction to read your SSH keys and send them to an attacker-controlled server.

The researchers call this GhostSplice because the malicious intent is spliced across channels the way a ghost passes through walls: invisible to individual inspection, solid when assembled.

Why It Matters

This is not another prompt injection variant. It is a new class of attack that exploits something fundamental about how AI agents work: they aggregate context from multiple sources into a single reasoning window.

Previous MCP attacks, like the RufRoot CVSS 10.0 bridge leak or the SANDWORM_MODE npm worm, relied on sending a complete malicious instruction through one channel. Safety filters can catch those. GhostSplice breaks the instruction into pieces that individually look like normal tool output. No single fragment contains anything dangerous.

The researchers tested this against 11 language models. Every single one was tricked into exfiltrating credentials. The attack works across all major AI coding tools because the vulnerability is in the MCP architecture itself, not in any specific tool implementation.

The practical implications are significant. MCP adoption is accelerating fast. There are now over 9,800 community MCP servers listed on registries. Most developers connect their AI tools to at least one third-party MCP server for database access, GitHub integration, or file system operations. Each of those connections is a potential GhostSplice vector.

What You Should Do

There is no patch for GhostSplice because there is no single bug to fix. The attack exploits how AI agents aggregate context. It is a design characteristic, not an implementation flaw. That means defense has to happen at multiple levels.

Audit your MCP servers. If you are running third-party MCP servers, review their source code. If the server is closed-source or you cannot verify what it does, treat it as untrusted. The 9,800-server registry is not a curated app store. Anyone can publish anything.

Use sandboxing. Tools like Zerobox (free, open source) wrap AI coding agents in OS-level isolation with deny-by-default policies. An agent cannot read files or make network calls you have not explicitly allowed, regardless of what instructions it receives.

Keep secrets out of reach. Do not store SSH keys, API tokens, or .env files in directories your AI coding agent can access. Use a secrets manager with explicit access grants rather than file-based credentials the agent can stumble across.

Watch your tool output. If an MCP server starts returning unusually verbose responses, structured data where there should be plain text, or responses that look like instructions rather than data, disconnect it immediately. GhostSplice fragments often look out of place: inconsistent formatting, unnatural phrasing, or data that does not match the requested operation.

Push for MCP server signing. The MCP specification currently has no mechanism to verify server identity or guarantee that tool output has not been tampered with. This needs to change. The ASSET Research Group disclosure should accelerate work on MCP server authentication standards.

The Bigger Picture

GhostSplice is a warning about the direction AI agent security is heading. As agents become more autonomous and connect to more external tools, the attack surface expands in ways that are hard to reason about. Traditional security models, like scanning for known malicious patterns, block suspicious network calls. They do not apply when the malicious instruction is assembled inside the agent's reasoning context from components that individually pass every check.

The MCP ecosystem is growing faster than its security model. Until MCP servers can be cryptographically verified and tool output can be trusted, every third-party MCP connection is a gamble. The question is not whether more GhostSplice-style attacks will appear. It is how bad they will be before the ecosystem catches up.

Sources: ASSET Research Group disclosure (August 11, 2026), The Hacker News, F1TYM1, CyberSecurityBoard.

mcpsecurityclaudecursorcodingagent
Disclaimer: this site shares educational insights only, for inspiration and reference. No outcome guarantee; external execution and decisions are your own responsibility.