German host's MCP server breached via one SSH-key tool that built shell commands from inputs

shoumikgoswami · reddit · 2026-11-27

German hosting provider mittwald published a postmortem: its MCP server was breached through a single tool.

Attack path: the SSH-key tool generated a key, immediately deleted the private half and returned only the public one — apparently purposeless — but built a shell command from the tool's inputs, letting the attacker run commands inside the server's container and read the OAuth tokens the server holds to act on behalf of users.

Key admission: the company says the server was largely built with AI coding agents and its review practice wasn't ready for that. Further attack attempts via other routes followed the initial breach.

A cautionary case of "AI-written code + unprepared review process" with direct lessons for anyone shipping MCP tools.

Original post →

More from coding & agent

coding & agent channel →