{
  "id": "malicious-mcp-servers-npm-2026-11",
  "name": "Malicious MCP servers on npm (ifasn, gadgethumans)",
  "date_reported": "2026-11-02",
  "researcher": "OpenSSF, Leitwacht",
  "org": "OpenSSF, Leitwacht",
  "sources": [
    {
      "url": "https://github.com/ossf/malicious-packages",
      "title": "OpenSSF Malicious Packages repository",
      "publisher": "OpenSSF"
    },
    {
      "url": "https://www.pillar.io/blog/deadbugz-malicious-mcp-server-aug-2026",
      "title": "Deadbugz: Malicious MCP Server on npm",
      "publisher": "Pillar Security"
    },
    {
      "url": "https://socket.dev/glossary/mcp-security",
      "title": "Socket: MCP Security and the SANDWORM_MODE campaign",
      "publisher": "Socket"
    },
    {
      "url": "https://github.com/advisories/GHSA-556m-xfwj-7wff",
      "title": "@ifasn/ms-doc-mcp Malicious Package (MAL-2026-18603)",
      "publisher": "GitHub Advisory Database"
    },
    {
      "url": "https://osv.dev/vulnerability/MAL-2026-19148",
      "title": "MAL-2026-19148: malicious code in @rfewqa-fes/mnm-doc-mcp",
      "publisher": "Amazon Inspector / OSV"
    },
    {
      "url": "https://github.com/advisories/GHSA-qwfq-cw9x-55x4",
      "title": "@lemili9804/mcp-weather-server malware advisory",
      "publisher": "GitHub Advisory Database"
    },
    {
      "url": "https://github.com/advisories/GHSA-34p7-qcxm-gc39",
      "title": "mcp-contract-tester malware advisory (MAL-2026-19082)",
      "publisher": "GitHub Advisory Database"
    },
    {
      "url": "https://github.com/advisories/GHSA-vgx2-8w7x-xr8v",
      "title": "@bestcoolman/dev-mcp malware advisory (MAL-2026-19052)",
      "publisher": "GitHub Advisory Database"
    },
    {
      "url": "https://vibevulns.com/issues/malicious-npm-mcp-servers-mnm-doc-mcp-weather-contract-tester-2026-11/",
      "title": "Roundup of November 2026 malicious npm MCP servers",
      "publisher": "VibeVulns"
    },
    {
      "url": "https://osv.dev/vulnerability/MAL-2026-19204",
      "title": "MAL-2026-19204: malicious code in my-mcp-server-driving-license-ocr",
      "publisher": "Amazon Inspector / OSV"
    },
    {
      "url": "https://github.com/advisories/GHSA-wg5f-m5mv-gmjg",
      "title": "my-mcp-server-driving-license-ocr malware advisory",
      "publisher": "GitHub Advisory Database"
    },
    {
      "url": "https://pypi.org/project/my-mcp-server-driving-license-ocr/0.1.3",
      "title": "my-mcp-server-driving-license-ocr 0.1.3",
      "publisher": "PyPI"
    },
    {
      "url": "https://github.com/advisories/GHSA-72xc-q3v8-7grp",
      "title": "karma365-mcp malware advisory",
      "publisher": "GitHub Advisory Database"
    },
    {
      "url": "https://github.com/advisories/GHSA-gfpg-48q7-c68h",
      "title": "@go-gost/mcp-darwin-x64 malware advisory",
      "publisher": "GitHub Advisory Database"
    }
  ],
  "magicsword_coverage": [],
  "borderline": false,
  "borderline_note": null,
  "ai_role": "ai_agent_or_mcp_as_target",
  "ai_role_secondary": null,
  "ai_role_detail": null,
  "technique_summary": "Multiple malicious MCP servers published on npm. @ifasn/md-doc-mcp and @ifasn/mmdd-doc-mcp probe cloud metadata endpoints, read sensitive files (/etc/shadow, SSH keys, .env, Kubernetes tokens), and exfiltrate to 121.199.24.94. @ifasn/ms-doc-mcp versions 2.0.9 and 2.1.1 (GHSA-556m-xfwj-7wff, MAL-2026-18603) use imdsAudit() function to steal Alibaba Cloud IMDS credentials from 100.100.100.200 and exfiltrate them over MCP stdout. gadgethumans-mcp versions 1.0.10-1.0.15 leak WALLET_PRIVATE_KEY environment variable in HTTP header on every tool call. Published with OpenSSF GHSA-rvw8-22w3-342v, GHSA-4h5p-w547-9qmv (Nov 2) and Leitwacht LWA-2026-13557, LWA-2026-13564. Aug 12, 2026: Pillar Security disclosed Deadbugz malicious MCP server (GitHub zellkernel) stealing AI model credentials and API keys. Feb 20, 2026: Socket discovered SANDWORM_MODE campaign spreading malicious MCP servers targeting developer credentials. November 9-12 additions: @rfewqa-fes/mnm-doc-mcp 1.0.0 (MAL-2026-19148, Amazon Inspector) ships an inert MCP stub in index.js. Its package.json pulls the only dependency, node-health-utils, as an off-registry tarball over plain HTTP from http://121.199.24.94/dl/health-utils-1.0.0.tgz, so whatever that host serves, including lifecycle scripts, runs at npm install. package.json sha256 f8ad55746cfac30b0a9401634b2728afc93e6dc20a85c511efd0ed312e466e8d. Package tarball sha1 f3ad664b487c4041e7e66e5744656ed44e1a6f6a. GitHub also marked @lemili9804/mcp-weather-server 1.0.3 and 1.0.6 (GHSA-qwfq-cw9x-55x4), mcp-contract-tester all versions (GHSA-34p7-qcxm-gc39, MAL-2026-19082), and @bestcoolman/dev-mcp (GHSA-vgx2-8w7x-xr8v, MAL-2026-19052) as malware, with no published behavior write-up. The entry now covers PyPI as well. my-mcp-server-driving-license-ocr 0.1.3 (MAL-2026-19204, GHSA-wg5f-m5mv-gmjg, Amazon Inspector, Nov 12) exposes an MCP tool, analyze_image, described as driving-license OCR. It POSTs the caller's image URLs or base64 bytes over plain HTTP to the hardcoded http://42.193.222.35:8000/ocr_pic and overwrites any MY_API_URL setting so the destination cannot be changed. karma365-mcp 2.1.0 (GHSA-72xc-q3v8-7grp, Nov 13) and @go-gost/mcp-darwin-x64 0.1.0 (GHSA-gfpg-48q7-c68h, Nov 12) are GitHub malware advisories with no published behavior. Attack exploits trust in the MCP ecosystem and in npm and PyPI.",
  "initial_access": "User installs malicious MCP server from npm",
  "ai_tooling_and_models": [
    "MCP servers",
    "npm packages (@ifasn/md-doc-mcp, @ifasn/mmdd-doc-mcp, @ifasn/ms-doc-mcp, gadgethumans-mcp, @rfewqa-fes/mnm-doc-mcp, @lemili9804/mcp-weather-server, mcp-contract-tester, @bestcoolman/dev-mcp, karma365-mcp, @go-gost/mcp-darwin-x64)",
    "PyPI package my-mcp-server-driving-license-ocr 0.1.3"
  ],
  "other_tooling": [
    "Cloud metadata probing (AWS, GCP, Azure)",
    "File system access (/etc/shadow, SSH keys, .env, k8s tokens)",
    "HTTP exfiltration"
  ],
  "victims_and_sectors": "AI agent developers, organizations using MCP servers",
  "regions": [
    "Multiple regions"
  ],
  "attribution_or_cluster": "unknown",
  "scale_and_metrics": "Multiple malicious MCP packages identified (ifasn, gadgethumans, Deadbugz, SANDWORM_MODE); exact installation count unknown",
  "prevention_angle": "Verify MCP server sources before installation; review MCP server permissions and network access; monitor cloud metadata endpoint access; detect unauthorized file reads of sensitive paths; inspect HTTP headers for credential leakage; use MCP server sandboxing; inventory installed MCP packages",
  "related_magicsword_projects": [
    "LOLSkills"
  ],
  "source_notes": "OpenSSF GHSA-rvw8-22w3-342v and GHSA-4h5p-w547-9qmv published Nov 2 2026; Leitwacht advisories LWA-2026-13557 and LWA-2026-13564; GitHub advisory GHSA-556m-xfwj-7wff (MAL-2026-18603) for @ifasn/ms-doc-mcp\n\nRelevant detection rules:\n- Monitor access to cloud metadata endpoints (169.254.169.254, 100.100.100.200 (Alibaba), metadata.google.internal, etc.)\n- Alert on unauthorized reads of /etc/shadow, ~/.ssh/id_rsa, ~/.ssh/id_ed25519, .env files\n- Detect access to Kubernetes service account tokens (/var/run/secrets/kubernetes.io/)\n- Monitor HTTP headers for sensitive environment variable leakage (WALLET_PRIVATE_KEY, AWS_SECRET_ACCESS_KEY, etc.)\n- Alert on npm package installations from unverified sources\n- Note: Cloud metadata access typically detected via network monitoring or instance-level audit logs (CloudTrail, Azure Monitor, GCP Cloud Logging). File access requires host-based file integrity monitoring.\n",
  "iocs": {
    "domains": [],
    "ips": [
      "121.199.24.94",
      "42.193.222.35"
    ],
    "hashes": [
      "f8ad55746cfac30b0a9401634b2728afc93e6dc20a85c511efd0ed312e466e8d",
      "f3ad664b487c4041e7e66e5744656ed44e1a6f6a"
    ],
    "urls": [
      "https://github.com/zellkernel"
    ]
  },
  "timeline": {
    "first_seen": "2026-02-20",
    "last_updated": "2026-11-13",
    "updates": [
      {
        "date": "2026-02-20",
        "source": "Socket",
        "summary": "SANDWORM_MODE malicious MCP server campaign disclosed"
      },
      {
        "date": "2026-08-12",
        "source": "Pillar Security",
        "summary": "Deadbugz malicious MCP server (GitHub zellkernel) stealing AI credentials"
      },
      {
        "date": "2026-11-02",
        "source": "OpenSSF, Leitwacht",
        "summary": "@ifasn/md-doc-mcp, @ifasn/mmdd-doc-mcp, gadgethumans-mcp malicious packages disclosed"
      },
      {
        "date": "2026-11-04",
        "source": "GitHub Advisory Database",
        "summary": "@ifasn/ms-doc-mcp versions 2.0.9 and 2.1.1 disclosed stealing Alibaba Cloud IMDS credentials via imdsAudit() (GHSA-556m-xfwj-7wff)"
      },
      {
        "date": "2026-11-09",
        "source": "GitHub Advisory Database",
        "summary": "@bestcoolman/dev-mcp marked malware (GHSA-vgx2-8w7x-xr8v, MAL-2026-19052). No behavior write-up published."
      },
      {
        "date": "2026-11-10",
        "source": "GitHub Advisory Database",
        "summary": "@lemili9804/mcp-weather-server 1.0.3 and 1.0.6 (GHSA-qwfq-cw9x-55x4) and mcp-contract-tester all versions (GHSA-34p7-qcxm-gc39, MAL-2026-19082) marked malware. No behavior write-up published."
      },
      {
        "date": "2026-11-12",
        "source": "Amazon Inspector",
        "summary": "@rfewqa-fes/mnm-doc-mcp 1.0.0 (MAL-2026-19148) pulls node-health-utils over plain HTTP from 121.199.24.94. index.js is an inert MCP stub. my-mcp-server-driving-license-ocr 0.1.3 (MAL-2026-19204) POSTs images to http://42.193.222.35:8000/ocr_pic. @go-gost/mcp-darwin-x64 0.1.0 is marked malware with no behavior write-up."
      },
      {
        "date": "2026-11-13",
        "source": "GitHub Advisory Database",
        "summary": "karma365-mcp 2.1.0 marked malware (GHSA-72xc-q3v8-7grp). No behavior write-up published."
      }
    ]
  },
  "last_reviewed": "2026-11-15",
  "confidence": "high",
  "region_notes": "Multiple regions reflects global npm and MCP user base",
  "atlas_techniques": [
    {
      "id": "AML.T0010.001",
      "rationale": "Attackers published malicious MCP servers through npm package ecosystem",
      "source_urls": [
        "https://github.com/ossf/malicious-packages"
      ]
    },
    {
      "id": "AML.T0011.001",
      "rationale": "Malicious MCP servers run persistently as agent tooling",
      "source_urls": [
        "https://github.com/ossf/malicious-packages"
      ]
    },
    {
      "id": "AML.T0055",
      "rationale": "Packages exfiltrate credentials from environment variables and sensitive files",
      "source_urls": [
        "https://github.com/ossf/malicious-packages"
      ]
    },
    {
      "id": "AML.T0025",
      "rationale": "MCP servers probe cloud metadata endpoints for credentials and instance information",
      "source_urls": [
        "https://github.com/ossf/malicious-packages"
      ]
    }
  ],
  "attack_flow": {
    "nodes": [
      {
        "id": "publish",
        "title": "Malicious MCP servers published to npm",
        "description": "Three packages published including @ifasn/md-doc-mcp, @ifasn/mmdd-doc-mcp, and gadgethumans-mcp 1.0.10-1.0.15",
        "kind": "access",
        "source_urls": [
          "https://github.com/ossf/malicious-packages"
        ]
      },
      {
        "id": "install",
        "title": "User installs malicious MCP server",
        "description": "Developer or organization adds malicious package to MCP configuration",
        "kind": "ai",
        "source_urls": [
          "https://github.com/ossf/malicious-packages"
        ]
      },
      {
        "id": "probe",
        "title": "Server probes for sensitive information",
        "description": "ifasn packages probe cloud metadata endpoints and read /etc/shadow, SSH keys, .env, k8s tokens",
        "kind": "execution",
        "source_urls": [
          "https://github.com/ossf/malicious-packages"
        ]
      },
      {
        "id": "exfil-files",
        "title": "File-based credentials exfiltrated",
        "description": "ifasn packages send stolen credentials to 121.199.24.94",
        "kind": "impact",
        "source_urls": [
          "https://github.com/ossf/malicious-packages"
        ]
      },
      {
        "id": "exfil-header",
        "title": "Wallet keys leaked in headers",
        "description": "gadgethumans-mcp sends WALLET_PRIVATE_KEY in HTTP header on every tool call",
        "kind": "impact",
        "source_urls": [
          "https://github.com/ossf/malicious-packages"
        ]
      }
    ],
    "edges": [
      {
        "source": "publish",
        "target": "install"
      },
      {
        "source": "install",
        "target": "probe"
      },
      {
        "source": "probe",
        "target": "exfil-files"
      },
      {
        "source": "probe",
        "target": "exfil-header"
      }
    ]
  },
  "category": "attacks-on-ai",
  "attribution": {
    "actor_name": "Unknown npm and PyPI publishers (ifasn, gadgethumans, rfewqa-fes, lemili9804, bestcoolman, zellkernel, karma365, go-gost)",
    "country": "Unknown",
    "motivation": "cybercrime",
    "attributed_by": "OpenSSF, Leitwacht, GitHub Advisory Database, Amazon Inspector, Pillar Security, Socket",
    "confidence": "medium"
  },
  "ai_involvement_confidence": "confirmed",
  "detections": [
    {
      "name": "Curl Download Activity from npm Package Install",
      "format": "elastic",
      "url": "https://github.com/elastic/detection-rules/blob/main/rules/cross-platform/command_and_control_curl_download_from_npm_install.toml",
      "notes": "Endpoint, cross-platform. curl spawned from an npm or npx process tree. Fits packages whose install fetches an off-registry tarball. It does not see the PyPI OCR tool's runtime HTTP POST."
    },
    {
      "name": "Suspicious PowerShell from npm Package Install",
      "format": "elastic",
      "url": "https://github.com/elastic/detection-rules/blob/main/rules/windows/execution_suspicious_powershell_from_npm_install.toml",
      "notes": "Windows. PowerShell started from an npm install script. Use when the remote tarball or a GHSA-flagged MCP package runs a Windows lifecycle script."
    },
    {
      "name": "Plain-HTTP tarball and GHSA-only packages",
      "format": "guidance",
      "notes": "Also block http://121.199.24.94/dl/health-utils-1.0.0.tgz and http://42.193.222.35:8000/ocr_pic. The OCR package exfiltrates at tool-call time, not at pip install, and no cited rule matches an MCP tool POSTing image bytes. karma365-mcp, @go-gost/mcp-darwin-x64, @lemili9804/mcp-weather-server, mcp-contract-tester, and @bestcoolman/dev-mcp are confirmed malicious by GitHub but have no published behavior."
    }
  ]
}