Leitwacht reports npm package @ifasn/[email protected] contains malicious code that collects credentials
@ifasn/[email protected] — npm malware advisory · LWA-2026-13588
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.
The advisory provides the mechanism and IOCs by which the malicious MCP package probes for cloud credentials at startup, which teams deploying MCP servers can use to check their own dependencies.