Elastic Security 9.6 is primarily a product announcement, but it cites a real software supply-chain incident relevant to awareness training. An npm package impersonated a Postmark MCP server and copied every outgoing email to an attacker, showing how developers can be deceived by a package that appears to be a legitimate integration.
How the attack worked
A developer package presented itself as a legitimate Postmark MCP server integration, the kind of tool developers commonly install to connect coding assistants or automation workflows to an email delivery service. Rather than performing only the advertised function, the package copied every outgoing email it handled and sent that copy to an attacker. Because the package mimicked a well known vendor integration, it blended in with the normal flow of developer tooling decisions rather than triggering obvious suspicion.
A related incident involved malicious versions of the Nx build tool, which invoked AI coding tools already installed on a developer machine to search for sensitive files. Both cases show attackers using trusted developer workflows, package installation and build tooling, as the entry point rather than targeting an end user directly.
Why it succeeded
This style of attack succeeds because developers routinely install third party packages and MCP servers to extend coding assistants and automation pipelines, and the review process for these installs is often lighter than for production code changes. A package name and description that closely resemble an official integration can be enough to earn trust. Once installed, the package can operate with whatever permissions it requests, including access to outgoing email, source code, or credentials, without further scrutiny.
What to watch for
- A package that impersonates a well known vendor integration rather than being published or verified by that vendor
- A package or MCP server requesting access to outgoing email, credentials, or source code beyond its stated purpose
- Package names, publishers, repositories, or documentation that do not match official vendor channels
- Build tools or coding agents exhibiting unexpected behavior, such as searching for sensitive files or attempting to establish persistence
How to build resistance
Organizations should require developers to verify package publishers and official sources before installing MCP servers, plugins, or AI agent integrations, and treat any package requesting broad access to email, code, or credentials as high risk until its permissions and provenance are reviewed. Developers should also be trained never to paste credentials or secrets into AI prompts, relying instead on approved secret management processes. Finally, security teams should monitor for coding agents hijacked to execute attacker commands, malicious MCP servers, and unusual persistence attempts by build tools, since these behaviors reflect the same technique category, T1656, seen in both the Postmark and Nx incidents. Building this awareness into developer onboarding and ongoing training reduces the chance that a convincing but fraudulent package goes unnoticed.
Key findings
- Elastic cited a real incident involving an npm package that impersonated a Postmark MCP server.
- The impersonating package copied every outgoing email to an attacker.
- Elastic also cited malicious versions of the Nx build tool that invoked installed AI coding tools to locate sensitive files.
- The new detection content includes coverage for coding-agent hijacking, malicious MCP servers, credentials entered into prompts, jailbreaks, and stolen API keys.
Who’s being targeted
- Commonly targeted roles: Developers, DevOps engineers, Platform engineers, Application security teams, Security operations teams, Engineering leadership.
- Affected industries: Software development, Technology, Organizations using AI coding agents, Organizations using email-delivery integrations.
- Attack channels: website.
- Impersonated: Postmark MCP server.
Red flags to watch for
- The package impersonates a well-known vendor integration rather than being published or verified by the vendor.
- A package requests access to outgoing email or sensitive application credentials that exceed its stated purpose.
- The package name, publisher, repository, or documentation does not match official Postmark channels.
Frequently asked questions
What happened in the fake Postmark package incident?
An npm package impersonating a Postmark MCP server copied every outgoing email to an attacker, exploiting developers who trusted it as a legitimate integration.
How can developers avoid installing malicious MCP servers or packages?
Verify that a package is published by the official vendor, check its documentation and repository against official sources, and treat any request for access to email, credentials, or source code as high risk until reviewed.
Were other similar incidents reported alongside the Postmark case?
Yes, malicious versions of the Nx build tool were also cited, which invoked installed AI coding tools to locate sensitive files on developer machines.
What should organizations do to detect this kind of supply chain abuse?
Monitor for coding agents being hijacked to run attacker commands, malicious MCP servers, credentials pasted into prompts, and unusual persistence attempts by build tools or AI coding assistants.
Read the video transcript
That Postmark MCP server package? It might copy every email. A real npm package posed as a Postmark integration. The pitch: connect your coding assistant to email delivery. Once installed, it copied every outgoing email to someone else. Here's the tell: a familiar vendor name isn't proof. Check the npm publisher, repository, and docs against Postmark's official site, especially when the package wants email access or credentials. Before installing any MCP server, confirm its publisher through the vendor's official site.