A hosting company built a convenient feature, let AI coding agents write most of it, and then lost thousands of customer and staff access tokens through one careless tool. German host Mittwald published a postmortem about the breach three weeks after it spotted the attack. The story carries a lesson that reaches well beyond Germany.
The feature was an MCP server, which let customers manage hosting through AI assistants. One tool created SSH keys, and the text typed into two of its fields went straight into a command line. An attacker could therefore slip in commands. According to Mittwald, the tool also deleted each private key right after making it, so the keys were useless and the code did nothing valuable.
On October 27 the attacker used the weakness to reach the server’s container and read stored tokens, including those of Mittwald employees. Most had expired by the time the thief tried them, but several hundred still worked. The company revoked everything on November 4.
Mittwald says AI agents wrote most of the server by design, because it wanted early experience with them. It concedes that review rules for agent-written code were immature and that no automated check flagged the mistake. People make this error too, it adds, and a careful review should have caught it. Binding review rules now cover agent-written code.
The damage spread in two phases. First, short-lived containers collected keys, configuration files and database dumps, mostly from Mittwald’s own projects. Mittwald found attacker activity in 56 projects. It also says the intruder did not reach internal infrastructure with the stolen credentials. Second, from November 9 the attacker used hosting accounts that were compromised through other routes, including an old WordPress plugin flaw. Then came a previously unknown hole in Neos, the CMS behind mittwald.de. Through it, the attacker uploaded a script and read the site’s configuration and database. Mittwald took the site offline and reported the flaw to Neos.
Neos rated the flaw critical, scoring 9.8, and patched several Flow versions on November 13. Updating won’t delete files already uploaded, and versions 8.2 and older get no fix, so owners should block script execution under Web/_Resources.
The MCP server stays offline. When it returns, it will have a read-only file system, shorter-lived tokens and tighter network limits.

