LWA-2026-14042 MAL-2026-18821 ↗ confirmed malware

@dilxzcode/bails@2.0.3

Malicious code in @dilxzcode/bails (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1071.001 · Web Protocols

Analysis

@dilxzcode/bails@2.0.3 is a fork of the Baileys WhatsApp multi-device socket client whose shipped code performs unauthorised actions on the account that uses it. In lib/Socket/newsletter.js, directly after the module-level newsletter query helper, the library schedules a setTimeout with a 90-second delay that sends a WhatsApp FOLLOW query for the hardcoded channel 120363330289360382@newsletter, and nests inside it a second setTimeout with a 5-second delay that sends a FOLLOW query for 120363404815358931@newsletter. Both calls fire when the module is loaded — not on any user action — and are wrapped in empty try/catch blocks so the subscription happens silently and cannot be noticed by the account owner; the 90-second delay keeps it away from the connection handshake. The author's channel JIDs are also hardcoded in lib/Utils/messages.js (forwardedNewsletterMessageInfo newsletterJid 120363342976800779@newsletter) and lib/Socket/handel.js (newsletterName "shenvn.", newsletterJid 120363297591152843@newsletter), stamping status broadcasts and forwarded messages with the author's channel metadata. The only network destination beyond these newsletter IDs is wss://web[.]whatsapp[.]com/ws/chat. The preinstall hook (engine-requirements.js) merely checks for Node.js >= 20 and exits on failure.

analyzed by
Leitwacht
first seen
Nov 15, 2026, 09:09 AM
analyzed
Nov 15, 2026, 09:11 AM
weekly installs
239

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.