Skip to content

postmark-mcp: the malicious MCP server that BCC’d every email

In September 2025 an unofficial postmark-mcp package on npm started copying every email it sent to an outside address. How it worked, how to check for it and how to choose MCP servers after it.

5 min read
When
September 2025
Component
postmark-mcp, an unofficial MCP server on npm
What was hit
Every email sent through it, copied by BCC to an outside address
Outcome
Removed from npm; installed copies kept running
Fix
None: remove it and rotate what was emailed

postmark-mcp was an MCP server on npm that let an AI agent send email through Postmark. It was not published by Postmark. From version 1.0.16, released in September 2025, it added a hidden BCC to every email it sent, so a copy of each message went to an address at giftshop.club. Koi Security found it and published its findings on September 25, 2025; the same day, Postmark said it had “absolutely nothing to do with this package”. The package has since been removed from npm. Koi Security’s write-up (archived) · Postmark’s statement

  1. September

    Event: A copy of Postmark’s own MCP server is published to npm under the same name, and behaves normally.

  2. September 17

    Damage: Version 1.0.16 adds a hidden BCC to every outgoing email.

  3. September 25

    Fixed or contained: Koi Security publishes its findings. Postmark says it has nothing to do with the package.

  4. September 25

    Partly: The package is gone from npm; copies already installed keep running.

Koi described it as the first malicious MCP server it had seen in the wild. It needed no exploit: the agent called the tool as intended, and the tool did something extra.

How it worked

Postmark (part of ActiveCampaign) maintains an official MCP server on GitHub. According to Koi, the publisher copied that code, published it to npm under the same name, and shipped versions that behaved normally (Koi counts fifteen) before the change. Version 1.0.16 added one line that put a BCC to phan@giftshop[.]club on every outgoing message. Koi reported about 1,500 downloads a week at the time. Koi Security (archived) · Postmark’s official MCP server

Anything an agent sent through the tool was copied: password resets, invoices, internal notes. The agent had no way to notice, because the BCC was added inside the server after the agent handed over the message.

Deleting the package from npm did not remove it from machines that had installed it. A configured MCP server keeps running the version it has.

Check whether you were affected

CheckWhere
Is postmark-mcp in any agent’s MCP configuration, and at which version?The MCP settings of each agent you use (for example Claude Code’s .mcp.json and ~/.claude.json, Cursor’s mcp.json), and npm ls -g postmark-mcp.
Did any message carry a BCC to giftshop.club?Postmark’s message activity and your email logs, from mid-September 2025 onward.
What did those messages contain?Treat any credential, reset link or document sent through the tool as exposed.

Postmark’s advice: remove the package everywhere it is installed, review your email logs, and rotate any credentials that may have been sent by email through it. Postmark’s statement

How to prevent it

  • MCP settings

    Install from the publisher

    The package, the repository and the vendor’s docs should point at each other. A matching name proves nothing.

  • Dependency review

    Pin and review

    Treat a version bump as an update that needs a look; earlier clean releases prove nothing about the next.

    How →
  • Team policy

    An approved list

    Each server’s publisher, pinned version and token scopes, in one place.

    How →
  • The provider’s console

    One token per tool

    A separate credential for each send-capable tool, so you can revoke it alone.

Install MCP servers from the publisher. Check that the npm package, the GitHub repository and the vendor’s documentation point at each other. A matching name on npm proves nothing; in this case the official server lived on GitHub and the npm package belonged to someone else.

Pin versions and review updates. The earlier releases were clean. A server you vetted once can change in its next version, so treat a version bump as a dependency update that needs a look, not something that installs itself.

Keep an approved list. For a team, the list names each server, its publisher, the pinned version and the scopes of the token it holds. AI agent policy template, clause 5 · MCP server security · Audit your MCP servers and permissions

Give send-capable tools their own tokens. Use a separate credential for each tool, so you can revoke it without touching the rest of your mail.

Excellent’s free scan reads supported agents’ logs on a Mac and can show which sessions called which tools. With Pro, Excellent adds a live check that can ask or block before supported risky actions; coverage varies by agent and action. It would not have seen a BCC added inside the server’s own code. Run the free scan · Public AI agent incidents

Related guides

View all