r/mcp • u/MelodicBlock2027 • 16h ago
discussion A sandbox would not have saved you from postmark-mcp
I keep seeing run your MCP servers in a sandbox as the answer to postmark-mcp. I do run mine isolated, but that was the wrong lesson from that incident, and it matters.
Quick refresher. postmark-mcp was a fake Postmark MCP server on npm, built from the real open source code. The publisher shipped 15 normal versions and built trust. Then version 1.0.16 added one line that BCC'd every email the agent sent to an outside address. Password resets, invoices, internal memos. Koi Security, who caught it, put it at around 1,500 downloads a week.
Now ask what a sandbox would have changed. Nothing. The server was supposed to send email. It held the Postmark key you gave it. The stolen copies left through Postmark itself. No isolation blocks a tool from misusing the exact credential it was handed.
What would have saved you is boring.
Pin versions. Most configs launch servers with npx and no version, so whatever npm resolves today is what runs with your keys. Put the exact version in the config and update on purpose.
Read the diff when you bump. It was a one line change. One line is easy to miss, but only if you never look.
Give every server the smallest token that works. A server that sends from one address does not need a key that can read your whole account.
Isolation still matters, just for a different threat. It is what saves you when a server that runs shell commands or touches files goes bad, or when a prompt injection in some README turns a good server against you. Those I keep off my laptop. The Docker MCP Toolkit covers it locally. I run mine on a boatdotdev VM, so a compromised server finds a scratch disk and two scoped tokens instead of my home folder and ~/.ssh.
Two different problems. Pinning protects you from the package. Isolation protects you from what the package can reach. Most setups I see do neither.