LWA-2026-14168 MAL-2026-20362 ↗ confirmed malware

@zervonex/baileys@4.0.4

Malicious code in @zervonex/baileys (npm)

T1195.002 · Compromise Software Supply Chain

Analysis

@zervonex/baileys is an unofficial-scope copy of the WhiskeySockets/Baileys WhatsApp Web library that adds two pieces of unwanted remote behaviour to the connected account. First, lib/Socket/newsletter.js hardcodes two WhatsApp channel JIDs ('120363422827915475@newsletter' and '120363409522637051@newsletter') in AUTO_FOLLOW_JIDS; on every 'connection' -> 'open' event the library waits three seconds and then issues a newsletter-join query (XWAPaths.xwa2_newsletter_join_v2) for both channels on the user's own WhatsApp account, re-issuing the follow every 30 seconds via a setInterval, and additionally sets ADMIN_NOTIFICATIONS to false on those channels. The behaviour is on by default (lib/Defaults/index.js ships autoFollowNewsletter: true) and only stops if the caller explicitly passes autoFollowNewsletter: false. Second, WAProto/fetcher.js downloads hxxps://raw[.]githubusercontent[.]com/nexustechpro2/baileys/wa-cache/wa-version[.]json and hxxps://raw[.]githubusercontent[.]com/nexustechpro2/baileys/wa-cache/WAProto[.]bundle[.]js once every 24 hours and feeds the fetched bundle into WAProto/parser.js, an acorn-based transform that writes the resulting protocol definitions to WAProto/WAProto.proto and regenerates WAProto.json, so the publisher controls a mutable code/protocol path loaded from a branch that is not tied to any pinned commit or integrity value. The package also declares a preinstall hook (node ./engine-requirements.js, a Node version check) and depends on @cacheable/node-cache and cache-manager. The package name imitates the canonical @whiskeysockets/baileys library under a different scope.

analyzed by
Leitwacht
first seen
Nov 16, 2026, 10:17 PM
analyzed
Nov 16, 2026, 10:18 PM
weekly installs
16,111
npm package ↗ OSV record MAL-2026-20362 ↗ source repo (declared, defanged): hxxps://github[.]com/nexustechpro2/baileys Request takedown / dispute →

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.