Skip to content
Heist/ feed
Back to feed
Unrated

Malicious code in ichigo-baileys (npm)

Type: advisorySources: OSV

This package is a fork of the Baileys WhatsApp Web library (npm) and belongs to the "PhantomSub" family described by OX Security in September 2026: the publisher injected code that, without the installer asking, uses the installer's own authenticated WhatsApp session to subscribe that account to WhatsApp Channels (newsletters) the publisher chose, by sending the WhatsApp `w:mex` FOLLOW query (query_id 7871414976211147) for each target channel JID. `package/lib/Socket/messages-recv.js` lines 45-67 define a char-code decoder (`qvnr`) and use it to build the channel JID `120363428355171197@newsletter` and the method names `newsletterFollow` and `newsletterMute` (cited line 56: `const pzha = qvnr([`), so neither the JID nor the method names appear in the source as text. Lines 1119-1134, in the `connection.update` handler, wait 30 seconds after the connection opens, then call `sock[pzha](id)` (follow) and, 3 seconds later, `sock[wjcf](id)` (mute) for the JID. `package/lib/Socket/newsletter.js` lines 86-112 add a second routine, `autoJoinChannels`, that 30 seconds after the connection opens sends FOLLOW and then MUTE for the plain-literal JID `120363402057133599@newsletter`. The code is derived from `noxleyss` (MAL-2026-17402), whose name it still uses in `package/lib/Utils/generics.js`. Line numbers refer to version 1.0.5; the same code is present in every published version listed under `affected`. Static review of the published tarball(s) found no code that sends WhatsApp credent

Products
ichigo-baileys
Affected versions
1.0.0, 1.0.5
Fixed versions
Not specified
CVEs
Not specified
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 07:26 UTC · Revision 1

Source evidence

Malicious code in ichigo-baileys (npm)

core-osv · Original source

Published 19 Oct 2026, 06:27 UTC

This package is a fork of the Baileys WhatsApp Web library (npm) and belongs to the "PhantomSub" family described by OX Security in September 2026: the publisher injected code that, without the installer asking, uses the installer's own authenticated WhatsApp session to subscribe that account to WhatsApp Channels (newsletters) the publisher chose, by sending the WhatsApp `w:mex` FOLLOW query (query_id 7871414976211147) for each target channel JID. `package/lib/Socket/messages-recv.js` lines 45-67 define a char-code decoder (`qvnr`) and use it to build the channel JID `120363428355171197@newsletter` and the method names `newsletterFollow` and `newsletterMute` (cited line 56: `const pzha = qvnr([`), so neither the JID nor the method names appear in the source as text. Lines 1119-1134, in the `connection.update` handler, wait 30 seconds after the connection opens, then call `sock[pzha](id)` (follow) and, 3 seconds later, `sock[wjcf](id)` (mute) for the JID. `package/lib/Socket/newsletter.js` lines 86-112 add a second routine, `autoJoinChannels`, that 30 seconds after the connection opens sends FOLLOW and then MUTE for the plain-literal JID `120363402057133599@newsletter`. The code is derived from `noxleyss` (MAL-2026-17402), whose name it still uses in `package/lib/Utils/generics.js`. Line numbers refer to version 1.0.5; the same code is present in every published version listed under `affected`. Static review of the published tarball(s) found no code that sends WhatsApp credent

osv:MAL-2026-17445

ichigo-baileys

Fixed versions: Not specified

Complete source record
{
  "id": "f671925795837c9f4684fd8813da93aa5378b3ae6caf5e8a8197b45b1587a8cc",
  "url": "https://osv.dev/vulnerability/MAL-2026-17445",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Malicious code in ichigo-baileys (npm)",
    "summary": "This package is a fork of the Baileys WhatsApp Web library (npm) and belongs to the \"PhantomSub\" family described by OX Security in September 2026: the publisher injected code that, without the installer asking, uses the installer's own authenticated WhatsApp session to subscribe that account to WhatsApp Channels (newsletters) the publisher chose, by sending the WhatsApp `w:mex` FOLLOW query (query_id 7871414976211147) for each target channel JID. `package/lib/Socket/messages-recv.js` lines 45-67 define a char-code decoder (`qvnr`) and use it to build the channel JID `120363428355171197@newsletter` and the method names `newsletterFollow` and `newsletterMute` (cited line 56: `const pzha = qvnr([`), so neither the JID nor the method names appear in the source as text. Lines 1119-1134, in the `connection.update` handler, wait 30 seconds after the connection opens, then call `sock[pzha](id)` (follow) and, 3 seconds later, `sock[wjcf](id)` (mute) for the JID. `package/lib/Socket/newsletter.js` lines 86-112 add a second routine, `autoJoinChannels`, that 30 seconds after the connection opens sends FOLLOW and then MUTE for the plain-literal JID `120363402057133599@newsletter`. The code is derived from `noxleyss` (MAL-2026-17402), whose name it still uses in `package/lib/Utils/generics.js`. Line numbers refer to version 1.0.5; the same code is present in every published version listed under `affected`. Static review of the published tarball(s) found no code that sends WhatsApp credent",
    "evidence": "osv:MAL-2026-17445",
    "products": [
      {
        "name": {
          "value": "ichigo-baileys",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.0.5",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "MAL-2026-17445",
      "aliases": [
        "GHSA-q66v-22v7-2qj9",
        "MAL-2026-17445"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ichigo-baileys",
            "purl": "pkg:npm/ichigo-baileys",
            "ecosystem": "npm"
          },
          "versions": [
            "1.0.0",
            "1.0.5"
          ],
          "database_specific": {
            "cwes": [
              {
                "name": "Embedded Malicious Code",
                "cweId": "CWE-506",
                "description": "The product contains code that appears to be malicious in nature."
              }
            ],
            "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ichigo-baileys/MAL-2026-17445.json"
          }
        }
      ],
      "modified": "2026-10-19T07:00:04.676183998Z",
      "provider": "osv",
      "references": [
        "https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/",
        "https://www.npmjs.com/package/ichigo-baileys",
        "https://github.com/advisories/GHSA-q66v-22v7-2qj9"
      ],
      "provider_metadata": {
        "iocs": {
          "files": [
            {
              "note": "File containing the injected WhatsApp Channel follow code.",
              "paths": [
                "package/lib/Socket/messages-recv.js"
              ],
              "source": "PACKAGE_ARCHIVE",
              "digests": {
                "sha256": "ea7db91458653aabf50f3687c48d4421f272ca5813810c2f158d3c6da81b7caa"
              }
            },
            {
              "note": "File containing the injected WhatsApp Channel follow code.",
              "paths": [
                "package/lib/Socket/newsletter.js"
              ],
              "source": "PACKAGE_ARCHIVE",
              "digests": {
                "sha256": "8bb8c9b9671dfba9c7dfe90aa89169af844b87e90d88ec5605cff46d1a22fb20"
              }
            }
          ]
        },
        "malicious-packages-origins": [
          {
            "id": "GHSA-q66v-22v7-2qj9",
            "ranges": [
              {
                "type": "SEMVER",
                "events": [
                  {
                    "introduced": "0"
                  }
                ]
              }
            ],
            "sha256": "4d9b532ccc541c0063643c98239941da76edf338f196991dc80af841ff94a2d7",
            "source": "ghsa-malware",
            "import_time": "2026-10-19T06:51:38.184168387Z",
            "modified_time": "2026-10-19T06:27:07Z"
          }
        ]
      }
    },
    "related_cves": [],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 372307,
  "published_at": "2026-10-19T06:27:07+00:00"
}