[ctx]ctxseccontext security: attacks on the harness and context layer of AI agents, plus exploited-now news, hunting and playbooks.

← Context & Harness Attacks · markdown

official (Mittwald postmortem)

Mittwald postmortem: a shell injection in its MCP server's SSH-key tool let an attacker read every active user's OAuth tokens and act in 56 customer projects; follow-on intrusion used a Neos zero-day

  • Entry: MCP tool that generated SSH keys interpolated two tool-call text fields into an ssh-keygen command run through a shell.
  • Blast radius: the server holds valid access/refresh tokens for every active user; the attacker created SSH users and API tokens in others' names and copied config files and credentials. 56 projects confirmed compromised, including projects whose owners never used the MCP server.
  • Timeline: exploited from Oct 27, discovered Nov 4; second phase from Nov 9 using throwaway accounts and a Neos CMS zero-day against mittwald.de on the night of Nov 11-12 (Neos fix Nov 13).
  • Response: MCP server shut down, all tokens revoked, affected projects isolated; mStudio login and SSH were taken down Nov 5-7 and Nov 12-13.
  • Lesson (Mittwald's own): agent-written code raised review volume; no static check flagged execSync with interpolated variables. Never build shell strings from tool parameters, keep token stores out of tool containers, narrow scopes, and lock down egress.

Sources: Mittwald: Postmortem: Wie ein Angreifer über unseren MCP-Server und Neos eindrang · Mittwald: Sicherheitsvorfall am MCP-Server