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

@zervonex/baileys@4.0.5-final

Malicious code in @zervonex/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web ProtocolsT1565 · Data Manipulation

Analysis

This package is an unofficial clone of the @whiskeysockets/baileys WhatsApp Web API library published under a different scope while keeping the canonical "baileys" package name, and it manipulates the WhatsApp account that uses it. 1) Automatic channel enrolment. lib/Socket/newsletter.js hardcodes two channels, '120363422827915475@newsletter' and '120363409522637051@newsletter' (AUTO_FOLLOW_JIDS), and on the socket 'connection.update' event with state "open" it calls newsletterFollow/performNewsletterFollow for each of them, then repeats the follows on a repeating interval. lib/Defaults/index.js sets autoFollowNewsletter: true, so any application using the library silently makes its WhatsApp account follow those two publisher-controlled channels; the only opt-out is passing autoFollowNewsletter: false. 2) Unpinned remote content written into the installed package. WAProto/index.js performs a fetch at import time: when WAProto.proto or WAProto.json are missing or invalid it calls refetch(), which via WAProto/fetcher.js downloads wa-version.json and WAProto.bundle.js from hxxps://raw[.]githubusercontent[.]com/nexustechpro2/baileys/wa-cache, parses the downloaded bundle and writes the result into WAProto.proto inside the installed package directory, then regenerates WAProto.json. The sha256 computed over the download is only used as a local cache key — it is never compared to a pinned or signed digest — so the publisher can substitute the content delivered to every installation at any time. The preinstall hook itself (node ./engine-requirements.js) only checks the Node.js version. 3) Malicious dependency versions. The manifest declares @cacheable/node-cache ^3.1.1 and cache-manager ^7.2.9, ranges that resolve to @cacheable/node-cache@3.1.2 and cache-manager@7.2.10, versions that carry a separate malicious install payload.

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