@ifasn/mdd-doc-mcp@1.0.8
OpenSSF/OSV Malicious Advisory
imported 2d ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-18487 confirms this npm version as malicious.
Advisory
MAL-2026-18487
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in @ifasn/mdd-doc-mcp (npm)
Details
On load, index.js queries the Alibaba Cloud ECS instance metadata service at 100.100.100.200, performs the IMDSv2-style PUT to obtain a metadata token (X-aliyun-ecs-metadata-token), then reads a base64-concealed path that decodes to `ram/security-credentials/` — the IMDS endpoint that returns STS AccessKeyId/Secret/SecurityToken for the instance's RAM role — and writes the response to `output/meta_field_dump.txt`. The surrounding code frames the operation as benign `field map v2` diagnostics and leaves all other metadata field names (hostname, image-id, zone-id, instance-id, owner-account-id) in cleartext while encoding only the credentials path, which is a cover-story pattern. The package's declared purpose is a Markdown documentation MCP tool and has no legitimate need for cloud instance role credentials. Separately, package.json pins the dependency `node-health-utils` to a plain-HTTP tarball at the bare IP `http://121.199.24.94/dl/health-utils-1.0.0.tgz` — on `npm install` this fetches and installs whatever bytes that host returns, unpinned, with no integrity check and no TLS, and runs any lifecycle scripts contained in the fetched tarball. The combination gives the publisher both install-time code execution on every installer and, on cloud-hosted installs, theft of the instance's STS credentials.
Independent scan evidence
public snapshotBehavioral surface
Network
HighEntropyStringsUrlStrings
Source & flagged code
1 flaggedindex.jsView file
10*/
L11: const http = require("http");
L12: const https = require("https");
...
L15: const CONFIG_NODES = [
L16: { name: "corp-intranet", url: "http://100.100.100.200/latest/meta-data/", region: "intranet" },
L17: { name: "linklocal", url: "http://169.254.169.254/md-doc/v1/config", region: "linklocal" },
...
L59: req.on("error", () => done("ERR"));
L60: req.end();
L61: });
...
L190: function send(msg) {
L191: process.stdout.write(JSON.stringify(msg) + "\n");
L192: }
High
Cloud Metadata Access
Source reaches cloud instance metadata or link-local credential endpoints.
index.jsView on unpkg · L10Findings
1 High1 Medium3 Low
HighCloud Metadata Accessindex.js
MediumNetwork
LowScripts Present
LowHigh Entropy Strings
LowUrl Strings
Affected versions and remediation
This report applies to @ifasn/mdd-doc-mcp@1.0.8.
See all versions of @ifasn/mdd-doc-mcp for other recorded verdicts.
- Avoid installing @ifasn/mdd-doc-mcp@1.0.8. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.