Vet MCP packages before installing
Malicious postmark-mcp package BCC'd users' emails · Security incident · Hacker News · koisecurity · Sep 27, 2025
What happened
Koi Security found an npm MCP server impersonating Postmark that, from one version on, quietly blind-copied every email it sent to an attacker-controlled address.
How to prevent it
Install MCP servers only from the vendor's official source, pin versions and review updates.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
Before I install anything my AI suggests in MCP, help me check it's safe. For the package, extension or MCP server [name]: 1) Check it's the official one (publisher, repo link, download count, how recently it was updated, typo-squatted names). 2) List what permissions or access it gets (files, network, env vars, email). 3) Tell me how to pin the version and review install scripts. 4) Check my project for packages with known security advisories, and tell me how to update them. Don't install or remove anything until I confirm.
Why this keeps happening: dependencies, plugins & mcp servers
AI tools suggest packages, editor extensions and MCP servers by name, and attackers publish look-alike or hijacked versions that steal keys or run code on install.
A quick checklist before you ship
- Check the publisher, download history and repository before installing anything an AI suggests.
- Pin versions and use a lockfile; review changes when updating.
- Give MCP servers and extensions the fewest permissions possible.
- Rotate keys if a package you use is reported as compromised.
More on this: every dependencies, plugins & mcp servers story and our related guide.
Tools involved
Related stories
- Remove @ifasn/md-doc-mcp and @ifasn/mmdd-doc-mcp and rotate cloud credentials
Fake Markdown MCP servers on npm grabbed cloud credentials on startup - Clean up before revoking keys after a poisoned npm install
Hijacked tensorlake npm package stole keys and wipes your home folder if you revoke - Search your repos for a 'docs: dependency audit notes' PR, a wfx-docs branch or gaps in workflow run numbers since 10 Nov, and rotate every CI secret if you find one
wfx-loot: 4,837 hijacked GitHub accounts planted a CI secret stealer that grabbed cloud and AI keys from 1,800+ repos
Source: original post on Hacker News ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.