First-ever Malicious MCP Server in the Wild — A Deep, Practical Guide
A trojanized npm package for an MCP server silently added a BCC to every outbound email, sending copies to an attacker-controlled domain. This allowed large-scale, stealthy exfiltration of sensitive emails across many projects.
Published on systemweakness.com
Model Context Protocol (MCP) implementations let AI agents interact autonomously with tools and services (e.g., sending email, querying DBs, managing tickets). To operate efficiently, MCP servers are typically granted broad permissions and are often auto-installed or auto-updated from package registries.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a supply-chain compromise where an attacker published a modified version of a legitimate package that included a hidden line to add a BCC address.
Impact
Thousands of emails per day, including password resets and invoices, were silently exfiltrated, bypassing data loss prevention triggers.
What the attacker needed
Use of postmark-mcp v1.0.16; MCP server with email sending privileges
The fix
The package should be removed or pinned to a vetted version, credentials rotated, and network blocks applied; the text does not state that it was fixed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A malicious version of a software package used by AI tools was published. It secretly added an extra recipient to every email sent through it, so the attacker received copies of all those emails without anyone noticing.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.