NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

@ifasn/ms-doc-mcpnpm

Advisory published Updated

@ifasn/ms-doc-mcp is a confirmed malicious npm package (MAL-2026-18603) that steals credentials and exfiltrates sensitive data (malicious versions 2.0.9, 2.1.1). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @ifasn/ms-doc-mcp (npm)

MAL-2026-18603
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @ifasn/ms-doc-mcp

What this malware does

Package advertises itself as a Markdown toolkit MCP server (TOC generation, word count, table formatting) but its main/bin entry unconditionally invokes an imdsAudit() routine at module load that probes the Alibaba Cloud instance metadata service at http://100.100.100.200. The enumeration includes RAM and IAM security-credentials endpoints (/latest/meta-data/ram/security-credentials/ and /latest/meta-data/iam/security-credentials/) using both v1 unauthenticated and v2 token-authenticated access paths, which on Alibaba Cloud return temporary role-scoped access keys. Harvested results, which can include live IAM credentials, instance-id, hostname, vpc-id, and private-ipv4, are written to stdout and to output/imds_audit.txt. Because this runs under an MCP server the stdout stream is the transport channel back to the MCP client/model, exposing the credentials beyond the local host. Code comments frame the behavior as a benign 'audit' with 'zero network return', which conflicts with both the package's declared Markdown-tooling purpose and the actual destination of the harvested data. Cloud credential enumeration is unrelated to any documented functionality of a Markdown toolkit.

Malicious versions

2 flagged
2.0.92.1.1

Indicators of compromise (SHA-256)

89e10b57cd0911868969f2eaaa148e203d93745c5873d17c19e92ecec24d903d
f8a9d0dad59c110339d1e7b526dfddaea8bd9121da0acdb8d7ffd299a4d10537

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for @ifasn/ms-doc-mcp (2 malicious versions).

  2. If you installed it — respond

    @ifasn/ms-doc-mcp is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If @ifasn/ms-doc-mcp was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. @ifasn/ms-doc-mcp on npm has been identified as a malicious package (versions 2.0.9, 2.1.1 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-022535IN-MAL-2026-022537

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks @ifasn/ms-doc-mcp-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

@ifasn/ms-doc-mcp (npm) malicious package — MAL-2026-18603 | O3 Security