{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ruby-baileys/MAL-2026-18693.json"
      },
      "package": {
        "ecosystem": "npm",
        "name": "ruby-baileys",
        "purl": "pkg:npm/ruby-baileys"
      },
      "versions": [
        "1.5.17",
        "1.5.18"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "https://cyberxyz.io"
      ],
      "name": "CyberXYZ",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "iocs": {
      "domains": [],
      "files": [
        {
          "digests": {
            "sha256": "40ed81a8d29803b6a1f027a2014c2c421ad3e538d30ea0d57c876978831fe622"
          },
          "paths": [
            "src/Socket/index.js"
          ]
        }
      ],
      "ips": [],
      "urls": [
        "https://whatsapp.com/channel/0029VbDO8tI2phHLTSN2ed0U",
        "https://whatsapp.com/channel/0029VbDXYlKDJ6H1D7Dm0f13"
      ]
    }
  },
  "details": "ruby-baileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. When the socket connects, code in src/Socket/index.js sends the WhatsApp w:mex FOLLOW query for channel invite codes 0029VbDO8tI2phHLTSN2ed0U, 0029VbDXYlKDJ6H1D7Dm0f13, using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).",
  "id": "MAL-2026-18693",
  "modified": "2026-11-05T05:15:05.960582057Z",
  "published": "2026-10-26T00:00:00Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/ruby-baileys"
    },
    {
      "type": "WEB",
      "url": "https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "Malicious code in ruby-baileys (npm)"
}