Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    MAL-2026-18603 (GHSA-3F74-WCV7-JW8F)

    Vulnerability from ossf_malicious_packages – Published: 2026-11-04 06:11 – Updated: 2026-11-17 02:24 – Source website
    Malicious package
    Summary
    Malicious code in @ifasn/ms-doc-mcp (npm)
    Affected package
    Ecosystem Package Versions
    npm @ifasn/ms-doc-mcp
    Affected: All versions (semver)
    2.0.92.1.1
    Details
    Amazon Inspector IN-MAL-2026-022535 Reported 2026-11-04 06:11

    Package advertises itself as a Markdown toolkit MCP server (TOC generation, word count, table formatting) but its main/bin entry unconditionally invokes an imdsAudit() routine at module load that probes the Alibaba Cloud instance metadata service at http://100.100.100.200. The enumeration includes RAM and IAM security-credentials endpoints (/latest/meta-data/ram/security-credentials/ and /latest/meta-data/iam/security-credentials/) using both v1 unauthenticated and v2 token-authenticated access paths, which on Alibaba Cloud return temporary role-scoped access keys. Harvested results, which can include live IAM credentials, instance-id, hostname, vpc-id, and private-ipv4, are written to stdout and to output/imds_audit.txt. Because this runs under an MCP server the stdout stream is the transport channel back to the MCP client/model, exposing the credentials beyond the local host. Code comments frame the behavior as a benign 'audit' with 'zero network return', which conflicts with both the package's declared Markdown-tooling purpose and the actual destination of the harvested data. Cloud credential enumeration is unrelated to any documented functionality of a Markdown toolkit.

    GitHub Advisory Database GHSA-3f74-wcv7-jw8f Reported 2026-11-17 02:11

    Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

    Amazon Inspector IN-MAL-2026-022537 Reported 2026-11-04 06:11

    No description from this source.

    Indicators
    Type Indicator Hashes
    Evidence file index.js
    sha256 e685d160b6d1780fe3024e4336d090a928ce071d4d3829b20db52198c8269a61
    tlsh 4512c705f1b738350a59a1749a0bc41eb935e6033986de50f65cc2682f8d4ac96bbbfc
    Package archive ms-doc-mcp-2.0.9.tgz
    sha1 b65455820dee98fab61211c2af0e6b971b522d59
    sha512_sri sha512-mz+A7+yzjncu4OUWkFWpH7GwOwJBXxM7NuISBMYh7HA1x67MFR0g6dD26Rc6Upvy3/zM+ysP4ddXOWy0gGd19A==
    CWE
    • CWE-506 - Embedded Malicious Code
    Credits
    Amazon Inspector inspector-research@amazon.com

    {
      "affected": [
        {
          "database_specific": {
            "cwes": [
              {
                "cweId": "CWE-506",
                "description": "The product contains code that appears to be malicious in nature.",
                "name": "Embedded Malicious Code"
              },
              {
                "cweId": "CWE-506",
                "description": "The product contains code that appears to be malicious in nature.",
                "name": "Embedded Malicious Code"
              },
              {
                "cweId": "CWE-506",
                "description": "The product contains code that appears to be malicious in nature.",
                "name": "Embedded Malicious Code"
              }
            ],
            "indicators": {
              "evidence_files": [
                {
                  "path": "index.js",
                  "sha256": "e685d160b6d1780fe3024e4336d090a928ce071d4d3829b20db52198c8269a61",
                  "tlsh": "4512c705f1b738350a59a1749a0bc41eb935e6033986de50f65cc2682f8d4ac96bbbfc"
                }
              ],
              "package_integrity": [
                {
                  "filename": "ms-doc-mcp-2.0.9.tgz",
                  "hashes": {
                    "sha1": "b65455820dee98fab61211c2af0e6b971b522d59",
                    "sha512_sri": "sha512-mz+A7+yzjncu4OUWkFWpH7GwOwJBXxM7NuISBMYh7HA1x67MFR0g6dD26Rc6Upvy3/zM+ysP4ddXOWy0gGd19A=="
                  }
                }
              ]
            }
          },
          "package": {
            "ecosystem": "npm",
            "name": "@ifasn/ms-doc-mcp"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                }
              ],
              "type": "SEMVER"
            }
          ],
          "versions": [
            "2.0.9",
            "2.1.1"
          ]
        }
      ],
      "aliases": [
        "GHSA-3f74-wcv7-jw8f"
      ],
      "credits": [
        {
          "contact": [
            "inspector-research@amazon.com"
          ],
          "name": "Amazon Inspector",
          "type": "FINDER"
        }
      ],
      "database_specific": {
        "malicious-packages-origins": [
          {
            "id": "IN-MAL-2026-022535",
            "import_time": "2026-11-04T06:20:41.333005475Z",
            "modified_time": "2026-11-04T06:11:33Z",
            "sha256": "89e10b57cd0911868969f2eaaa148e203d93745c5873d17c19e92ecec24d903d",
            "source": "amazon-inspector",
            "versions": [
              "2.0.9"
            ]
          },
          {
            "id": "IN-MAL-2026-022537",
            "import_time": "2026-11-04T06:20:41.491406022Z",
            "modified_time": "2026-11-04T06:11:51Z",
            "sha256": "f8a9d0dad59c110339d1e7b526dfddaea8bd9121da0acdb8d7ffd299a4d10537",
            "source": "amazon-inspector",
            "versions": [
              "2.1.1"
            ]
          },
          {
            "id": "GHSA-3f74-wcv7-jw8f",
            "import_time": "2026-11-17T02:22:55.858453202Z",
            "modified_time": "2026-11-17T02:11:29Z",
            "ranges": [
              {
                "events": [
                  {
                    "introduced": "0"
                  }
                ],
                "type": "SEMVER"
              }
            ],
            "sha256": "4ece6401b6660c6812b1bca8b0deb8f9f0a2a0d259cd9b26e01ec87d83d35e48",
            "source": "ghsa-malware"
          }
        ]
      },
      "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (89e10b57cd0911868969f2eaaa148e203d93745c5873d17c19e92ecec24d903d)\nPackage advertises itself as a Markdown toolkit MCP server (TOC generation, word count, table formatting) but its main/bin entry unconditionally invokes an imdsAudit() routine at module load that probes the Alibaba Cloud instance metadata service at http://100.100.100.200. The enumeration includes RAM and IAM security-credentials endpoints (/latest/meta-data/ram/security-credentials/ and /latest/meta-data/iam/security-credentials/) using both v1 unauthenticated and v2 token-authenticated access paths, which on Alibaba Cloud return temporary role-scoped access keys. Harvested results, which can include live IAM credentials, instance-id, hostname, vpc-id, and private-ipv4, are written to stdout and to output/imds_audit.txt. Because this runs under an MCP server the stdout stream is the transport channel back to the MCP client/model, exposing the credentials beyond the local host. Code comments frame the behavior as a benign \u0027audit\u0027 with \u0027zero network return\u0027, which conflicts with both the package\u0027s declared Markdown-tooling purpose and the actual destination of the harvested data. Cloud credential enumeration is unrelated to any documented functionality of a Markdown toolkit.\n\n## Source: ghsa-malware (4ece6401b6660c6812b1bca8b0deb8f9f0a2a0d259cd9b26e01ec87d83d35e48)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n",
      "id": "MAL-2026-18603",
      "modified": "2026-11-17T02:24:33.841723149Z",
      "published": "2026-11-04T06:11:33Z",
      "references": [
        {
          "type": "PACKAGE",
          "url": "https://www.npmjs.com/package/@ifasn/ms-doc-mcp/v/2.0.9"
        },
        {
          "type": "PACKAGE",
          "url": "https://www.npmjs.com/package/@ifasn/ms-doc-mcp/v/2.1.1"
        },
        {
          "type": "ADVISORY",
          "url": "https://github.com/advisories/GHSA-3f74-wcv7-jw8f"
        }
      ],
      "schema_version": "1.7.4",
      "summary": "Malicious code in @ifasn/ms-doc-mcp (npm)"
    }