Agentic AI Security
postmark-mcp: An MCP Server That Turned Malicious in One Update
In September 2025, an unofficial MCP server for Postmark added a hidden BCC to every email it sent, after fifteen clean versions. A post-incident reading, and the supply chain controls that apply to MCP servers.
On 25 September 2025, Koi Security reported that postmark-mcp, an npm package offering an MCP server for sending email through the Postmark service, had started copying every message it sent to an outside address. Postmark, whose name the package used, published a statement the same day: “Postmark had absolutely nothing to do with this package or the malicious activity.” The OSV database recorded the package as malicious the next day, with this description: “This package turned malicious in v1.0.16 and exfiltrates email data via BCC.”
The OWASP Top 10 for Agentic Applications, published in December 2025, lists the case among the attack scenarios for ASI04, Agentic Supply Chain Vulnerabilities.
A copy of the official code, with one added line
According to The Register’s reconstruction, the developer “took the legitimate code from the Postmark MCP server’s GitHub repository,” added a line that blind-copied every email, and published the result to npm under a name that matched the official project. Postmark’s own server was published on GitHub and had not been published on npm. Koi’s analysis found versions 1.0.0 to 1.0.15 clean, and described the change in the next release in two sentences: “Version 1.0.16 adds the BCC. Nothing else changes.” Snyk’s analysis of a later version shows the added line, a Bcc header pointing to an address at the domain giftshop[.]club. The package was later removed from npm; according to Koi, as reported by The Register, the developer removed it.
| What is known | Source | |
|---|---|---|
| Established | The package was not Postmark’s; version 1.0.16 added a hidden BCC to every email; the package was removed from npm | Postmark, Koi, OSV, Snyk, The Register |
| Claimed by Koi | About 1,500 downloads a week, and an estimate of 3,000 to 15,000 emails a day sent to the attacker | Koi, as reported by The Register |
| Claimed by Postmark | It knows of only one Postmark customer that used the package | Postmark, as reported by The Register |
| Not established | How many organizations used versions 1.0.16 and later, and what the emails contained | The Register: “we don’t know how many organizations were affected” |
Source: Koi Security (25 September 2025); Postmark statement (25 September 2025); Snyk (25 September 2025); OSV MAL-2025-47604 (26 September 2025); The Register (29 September 2025). Classification is the author's.
The two figures are far apart, and they come from different methods. Koi’s estimate, as The Register reports it, starts from weekly npm downloads and assumes a share of installations in active use and a daily email volume for each. Postmark’s comes from its own side as the email provider, and it has not said how it was established.
Why the attack needed so little
Nothing in the attack exploited a vulnerability. The server did what it was installed to do, sending email with the user’s Postmark credentials, and one added header sent a copy elsewhere, which was enough because of three conditions.
Trust was earned before it was abused. Fifteen versions behaved as expected. A review at installation time, before 1.0.16, would have found nothing, and any process that accepted new versions automatically would have accepted the sixteenth.
The server sat on the data path. An MCP server that sends email sees the full content of every message it sends. That position, and the credential that goes with it, is what made a single line of code worth adding.
Network controls would not have caught it. The copy was sent as a BCC through the email provider itself, to which the server legitimately connects. An egress allowlist that permits the provider’s API, as it must, lets the exfiltration through. In my reading, the evidence would sit in the provider’s logs, which is where Postmark directed its customers.
Controls that apply to any MCP server
The ASI04 guidance in the OWASP agentic Top 10 covers this case directly. Two of its controls would have prevented the compromise, and two would have cut it short.
- Install from the publisher’s documented source. OWASP asks organizations to “use curated registries and block untrusted sources.” For MCP servers, that means an internal catalog of approved servers, each traced to the vendor’s own repository or documentation, so that a package with a matching name does not pass for the official one.
- Pin versions and review every update. OWASP’s guidance is to “Allowlist and pin” and to “Pin prompts, tools, and configs by content hash and commit ID.” A pinned server stays on a reviewed version, and the diff from 1.0.15 to 1.0.16 was a single added line, which a review would have shown.
- Monitor what the tool does with legitimate access. OWASP’s continuous validation asks to “monitor behavior, privilege use, lineage, and inter-module telemetry for anomalies.” Here, the useful signal was in the email provider’s logs: every message carrying a recipient nobody had added.
- Be able to revoke quickly. The “Supply chain kill switch” in the same guidance calls for mechanisms that “instantly disable specific tools, prompts, or agent connections across all deployments.” An organization that knows where each MCP server runs can remove one within hours of an advisory.
Postmark’s advice to affected users matches the last two and adds a third step: remove the package, check email logs for any suspicious activity, and consider rotating any credentials that may have been sent by email during the compromise period.
An MCP server holds a credential and sits between an agent and a business system, which makes it a privileged dependency. For every MCP server in use, the inventory should record who publishes it, which version is running, who reviews its updates and how it can be revoked.