Skip to content
EventPast event

Leitwacht reports malicious npm MCP server package

1 reports1 reporting sourcesLatest report

Start here

AI overview

Leitwacht confirmed through supply chain probing that the npm package @ifasn/[email protected] contains malicious code. The package is a Markdown document MCP server; in addition to directory, statistics and table tools, its entry point index.js, on each load, requests a metadata token from the Alibaba Cloud ECS metadata endpoint 100[.]100[.]100[.]200, then enumerates paths such as instance-id and ram/security-credentials/, and repeatedly requests the IMDSv1 path. The same flow also iterates over process environment variables, writes the names and full values of variables whose names match KEY, TOKEN, SECRET, ALIBABA, DASHSCOPE or CREDENTIAL to output/env_audit.txt and stderr, and probes for Kubernetes service account tokens. The advisory stated that the source code header claims it only records variable names, which does not match the code.

Generated by AI from reports · Updated 6 days ago

Progress timeline

Nov 3
  1. LeitwachtSelected
    Leitwacht reports npm package @ifasn/[email protected] contains malicious code that collects credentials

    Leitwacht confirmed through supply chain probing that npm package @ifasn/[email protected] contains malicious code. The package is a Markdown document MCP server; in addition to directory, statistics and table tools, the entry point index.js requests a metadata token from the Alibaba Cloud ECS metadata endpoint 100[.]100[.]100[.]200 on every load, then enumerates paths such as instance-id and ram/security-credentials/, and repeatedly requests the IMDSv1 path. The same flow also iterates over process environment variables, writing the names and full values of variables whose names match KEY, TOKEN, SECRET, ALIBABA, DASHSCOPE or CREDENTIAL to output/env_audit.txt and stderr, and probes for Kubernetes service account tokens. The advisory says the source header claims only variable names are recorded, which does not match the code.