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

@zervonex/baileys@4.0.6-final

Malicious code in @zervonex/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1036.005 · Match Legitimate Resource Name or LocationT1105 · Ingress Tool TransferT1071.001 · Web Protocols

Analysis

@zervonex/baileys@4.0.6-final is an unofficial re-badge of the @whiskeysockets/baileys WhatsApp library published under an unrelated scope, shipping the Baileys code tree with added behaviour. In lib/Socket/newsletter.js the package hardcodes two WhatsApp channels ('120363422827915475@newsletter' and '120363409522637051@newsletter') in AUTO_FOLLOW_JIDS; on every connection open it waits 3 seconds, issues the newsletter FOLLOW query (xwa2_newsletter_join_v2) for both channels on behalf of the connected account, disables admin notifications for them, and then repeats the follows on a 30-second setInterval (AUTO_FOLLOW_INTERVAL_MS = 30000). The behaviour is on by default and can only be suppressed with the autoFollowNewsletter:false socket option. Separately, WAProto/fetcher.js downloads wa-version.json and WAProto.bundle.js from hxxps://raw[.]githubusercontent[.]com/nexustechpro2/baileys/wa-cache every 24 hours, writes WAProto.bundle.tmp into the installed package directory, and feeds the publisher-controlled bundle to the bundled acorn parser (WAProto/parser.js) to regenerate WAProto.proto/WAProto.json, so the library's protobuf layer is replaced with remote content after install. The manifest also declares hard-ranged dependencies on @cacheable/node-cache (^3.1.1) and cache-manager (^7.2.9), pulling those package lines in on install, and its preinstall hook runs ./engine-requirements.js.

analyzed by
Leitwacht
first seen
Nov 17, 2026, 08:36 AM
analyzed
Nov 17, 2026, 08:39 AM
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.