Skip to content
Heist/ feed
Back to feed
Unrated

Malicious code in @kxa/xbails (npm)

Type: advisorySources: OSV

This package is part of a large family (100+ identified as of September 2026) of near-identical forks of the Baileys WhatsApp Web library that inject a covert channel-subscription action into the WhatsApp socket layer. On connect, the injected code issues an authenticated `w:mex` FOLLOW query (query_id 7871414976211147) against one or more attacker-chosen WhatsApp Channel/Newsletter JIDs, using the installer's own authenticated WhatsApp session -- silently subscribing the victim's account to channels it never asked to join. The target JID(s) are hidden from casual source review via one of several obfuscation techniques observed across the family: a plain string literal, base64 encoding, base64+XOR, or a char-code array reconstructed at runtime. Some variants instead fetch a mutable, attacker-controlled remote JSON/JS list of target JIDs from GitHub or another host at runtime, letting the target list change after installation without a new npm publish. Every sample in the family shares the same underlying mechanism (a wrapped/patched socket-connect routine that fires the FOLLOW query some seconds after connect), even though the package name, JID value(s), and obfuscation/delivery method differ per fork. The malicious action abuses the installer's own authenticated WhatsApp session to gain reach and subscribers for attacker-controlled channels; it does not exfiltrate credentials, establish persistence, or execute arbitrary remote code. Affected package: @kxa/xbails (npm), versi

Products
@kxa/xbails
Affected versions
0.0.5
Fixed versions
Not specified
CVEs
Not specified
Confirmed fixed CVEs
Not specified
Updated in this feed
27 Oct 2026, 11:25 UTC · Revision 1

Source evidence

Malicious code in @kxa/xbails (npm)

core-osv · Original source

Published 6 Oct 2026, 14:39 UTC

This package is part of a large family (100+ identified as of September 2026) of near-identical forks of the Baileys WhatsApp Web library that inject a covert channel-subscription action into the WhatsApp socket layer. On connect, the injected code issues an authenticated `w:mex` FOLLOW query (query_id 7871414976211147) against one or more attacker-chosen WhatsApp Channel/Newsletter JIDs, using the installer's own authenticated WhatsApp session -- silently subscribing the victim's account to channels it never asked to join. The target JID(s) are hidden from casual source review via one of several obfuscation techniques observed across the family: a plain string literal, base64 encoding, base64+XOR, or a char-code array reconstructed at runtime. Some variants instead fetch a mutable, attacker-controlled remote JSON/JS list of target JIDs from GitHub or another host at runtime, letting the target list change after installation without a new npm publish. Every sample in the family shares the same underlying mechanism (a wrapped/patched socket-connect routine that fires the FOLLOW query some seconds after connect), even though the package name, JID value(s), and obfuscation/delivery method differ per fork. The malicious action abuses the installer's own authenticated WhatsApp session to gain reach and subscribers for attacker-controlled channels; it does not exfiltrate credentials, establish persistence, or execute arbitrary remote code. Affected package: @kxa/xbails (npm), versi

osv:MAL-2026-17363

@kxa/xbails

Fixed versions: Not specified

Complete source record
{
  "id": "ff56b6e61569b053bdfcf94b548229f23f54bb9cfec8aeb70bc3248fe5baa475",
  "url": "https://osv.dev/vulnerability/MAL-2026-17363",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Malicious code in @kxa/xbails (npm)",
    "summary": "This package is part of a large family (100+ identified as of September 2026) of near-identical forks of the Baileys WhatsApp Web library that inject a covert channel-subscription action into the WhatsApp socket layer. On connect, the injected code issues an authenticated `w:mex` FOLLOW query (query_id 7871414976211147) against one or more attacker-chosen WhatsApp Channel/Newsletter JIDs, using the installer's own authenticated WhatsApp session -- silently subscribing the victim's account to channels it never asked to join. The target JID(s) are hidden from casual source review via one of several obfuscation techniques observed across the family: a plain string literal, base64 encoding, base64+XOR, or a char-code array reconstructed at runtime. Some variants instead fetch a mutable, attacker-controlled remote JSON/JS list of target JIDs from GitHub or another host at runtime, letting the target list change after installation without a new npm publish. Every sample in the family shares the same underlying mechanism (a wrapped/patched socket-connect routine that fires the FOLLOW query some seconds after connect), even though the package name, JID value(s), and obfuscation/delivery method differ per fork. The malicious action abuses the installer's own authenticated WhatsApp session to gain reach and subscribers for attacker-controlled channels; it does not exfiltrate credentials, establish persistence, or execute arbitrary remote code. Affected package: @kxa/xbails (npm), versi",
    "evidence": "osv:MAL-2026-17363",
    "products": [
      {
        "name": {
          "value": "@kxa/xbails",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.5",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "MAL-2026-17363",
      "aliases": [
        "GHSA-7gvw-4c75-pc6p",
        "MAL-2026-17363"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "@kxa/xbails",
            "purl": "pkg:npm/%40kxa/xbails",
            "ecosystem": "npm"
          },
          "versions": [
            "0.0.5"
          ],
          "database_specific": {
            "cwes": [
              {
                "name": "Embedded Malicious Code",
                "cweId": "CWE-506",
                "description": "The product contains code that appears to be malicious in nature."
              }
            ],
            "iocs": {
              "ips": [],
              "urls": [
                "https://t.me/setorankxa"
              ],
              "files": [],
              "domains": []
            },
            "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@kxa/xbails/MAL-2026-17363.json"
          }
        }
      ],
      "modified": "2026-10-06T15:45:09.830933502Z",
      "provider": "osv",
      "references": [
        "https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/",
        "https://github.com/advisories/GHSA-7gvw-4c75-pc6p"
      ],
      "provider_metadata": {
        "malicious-packages-origins": [
          {
            "id": "GHSA-7gvw-4c75-pc6p",
            "ranges": [
              {
                "type": "SEMVER",
                "events": [
                  {
                    "introduced": "0"
                  }
                ]
              }
            ],
            "sha256": "1cc30c634ae2ff3ecb9a8a19343735301003bc57a51c63901090a3a60eb7c990",
            "source": "ghsa-malware",
            "import_time": "2026-10-06T15:28:00.043697815Z",
            "modified_time": "2026-10-06T14:39:03Z"
          }
        ]
      }
    },
    "related_cves": [],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 89206,
  "published_at": "2026-10-06T14:39:02+00:00"
}