Skip to content
Heist/ feed
Unrated

Malicious code in wailib (npm)

Type: advisorySource: OSV1 source record

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-72 define a char-code decoder (`qvnr`) and use it to build two channel JIDs, `120363428355171197@newsletter` and `120363425751417260@newsletter`, and the method names `newsletterFollow` (`pzha`, cited line 62: `const pzha = qvnr([`) and `newsletterMute` (`wjcf`, line 68), so neither the JIDs nor the method names appear in the source as text. Lines 1125-1140, in the `connection.update` handler, wait 30 seconds after the connection opens and then, for each JID, call `sock[pzha](id)` to follow the channel and, 3 seconds later, `sock[wjcf](id)` to mute it, so the victim is not notified of the channel's posts. There is no opt-out. The README (Portuguese) states "Sem auto-follow de canais — removida a rotina que seguia canais automaticamente apos conectar" ("No channel auto-follow — the routine that followed channels automatically after connecting was removed"), which the shipped code contradicts. The code is derived from `noxleyss` (MAL-2026-17402), whose name it still uses in `package/lib/U

Announced Group revision 1
Original source ↗

MAL-2026-17451

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-17451

wailib

Source reference: /affected/0/package/name

Affected versions
1.0.0

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "wailib",
      "purl": "pkg:npm/wailib",
      "ecosystem": "npm"
    },
    "versions": [
      "1.0.0"
    ],
    "database_specific": {
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/wailib/MAL-2026-17451.json"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#67602 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement