Skip to content
EventPast event

Snyk flags two versions of an npm package as malicious

2 reports2 reporting sourcesLatest report

Start here

AI overview

A GitHub security advisory flags versions 2.0.9 and 2.1.1 of the npm package @ifasn/ms-doc-mcp as containing malicious code, with no fixed version available. The package describes itself as a Markdown toolkit MCP server providing table of contents generation, word counting and table formatting, but its main/bin entry calls imdsAudit() when the module loads, probing the Alibaba Cloud instance metadata service at 100.100.100.200, enumerating RAM and IAM security credential endpoints, and using both the v1 unauthenticated and v2 token authentication access paths. The temporary role access keys, instance ID, hostname, vpc-id and private network address obtained are written to stdout and output/imds_audit.txt; when the package runs in an MCP server, stdout is precisely the channel back to the MCP client and model, so credentials may leak from the local host. Code comments describe this behavior as an audit with zero network exfiltration, which does not match the package's declared Markdown tool purpose. Snyk flagged the package as malicious on November 4, 2026, with a CVSS score of 9.3 (critical), and states that there have been attack attempts or successful attacks. The package has been removed from the official package manager and appears to impersonate a legitimate organization, but that organization is unrelated to the package author. Snyk notes that the attack can be launched over the network, requires no special conditions, privileges or user interaction, and has a major impact on confidentiality, integrity and availability.

Generated by AI from reports · Updated 18 days ago

Progress timeline

Nov 4
  1. GitHub Security AdvisoriesSelected
    Versions 2.0.9 and 2.1.1 of the npm package @ifasn/ms-doc-mcp contain malicious code

    A GitHub security advisory flags versions 2.0.9 and 2.1.1 of the npm package @ifasn/ms-doc-mcp as containing malicious code, with no fixed version yet. The package describes itself as a Markdown toolkit MCP server providing table-of-contents generation, word counting and table formatting, but its main/bin entry calls imdsAudit() at module load, probing the Alibaba Cloud instance metadata service at 100.100.100.200, enumerating RAM and IAM credential endpoints, and using both the v1 unauthenticated and v2 token-authenticated access paths. The temporary role access keys, instance ID, hostname, vpc-id and private network address it obtains are written to stdout and to output/imds_audit.txt, and when the package runs inside an MCP server, stdout is exactly the channel that returns data to the MCP client and model, so credentials may leak off the local host. Code comments describe this behavior as an audit with zero network exfiltration, which does not match the package's declared Markdown tool purpose.

  2. Snyk
    Snyk flags @ifasn/ms-doc-mcp as a malicious package: suspected of impersonating a legitimate organization, CVSS 9.3 (critical)

    On November 4, 2026, Snyk flagged @ifasn/ms-doc-mcp as a malicious package with a CVSS score of 9.3 (critical), and stated that there have been attack attempts or successful attacks. The package contains malicious code and has been removed from the official package manager; it is suspected of impersonating a legitimate organization, but that organization is unrelated to the package author. Snyk notes that the attack can be launched over the network without special conditions, privileges, or user interaction, and has a significant impact on confidentiality, integrity, and availability.