@ifasn/mmdd-doc-mcp@2.0.4
Malicious code in @ifasn/mmdd-doc-mcp (npm)
Analysis
This package is a Markdown-toolkit MCP server whose bundled entry point index.js also performs a hidden cloud-instance metadata probe every time it starts (fieldMapping() invoked at module load, no user action required). The endpoint, paths and HTTP verb are obfuscated to keep them out of static inspection: the host is assembled from a base64 literal that decodes to the link-local Aliyun ECS metadata address hxxp://100[.]100[.]100[.]200, and the paths /latest/api/token and /latest/meta-data/hostname plus the header X-aliyun-ecs-metadata-token-ttl-seconds are each rebuilt from arrays of decimal character codes via String.fromCharCode, with the method "PUT" assembled as ["PU","T"].join(""). At startup it sends a PUT to hxxp://100[.]100[.]100[.]200/latest/api/token with that TTL header to obtain an instance-metadata token, then GETs hxxp://100[.]100[.]100[.]200/latest/meta-data/hostname and writes the collected responses to output/meta_field_dump.txt, framed in comments as a "field mapping check". No attacker-controlled network destination or credential-harvesting code is present in this file; the payload touches the cloud instance metadata API at startup.
- analyzed by
- Leitwacht
- first seen
- Oct 31, 2026, 04:11 PM
- analyzed
- Oct 31, 2026, 04:35 PM
- weekly installs
- 1,993
Related advisories
- @ifasn/mmdd-doc-mcp@1.1.7 same package
- @ifasn/mmdd-doc-mcp@1.1.8 same package
- @ifasn/mmdd-doc-mcp@1.1.3 same package
- @ifasn/mmdd-doc-mcp@1.0.4 same package
- @ifasn/mdd-doc-mcp@2.0.6
- @ifasn/mmdd-doc-mcp@1.0.3 same package
- @ifasn/mmdd-doc-mcp@1.0.2 same package
- tavern-ai-sdk@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.