LWA-2026-14063 confirmed malware

@sakataa/baileys@5.0.0

Malicious code in @sakataa/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1098 · Account ManipulationT1071.001 · Web Protocols

Analysis

This package is a cloned WhiskeySockets Baileys WhatsApp library republished under an unofficial scope, and its README instructs users to wire it into their projects in place of the real library via an npm alias ("@whiskeysockets/baileys": "npm:@sakataa/baileys"), so existing code imports the modified library transparently. Requiring the package prints a promotional banner and Telegram update-channel link (t[.]me/infobaileys, t[.]me/sakata_real). The functional payload is in lib/Socket/newsletter.js: it hooks the socket's "connection.update" event and, ten seconds after every connection opens, sends a WhatsApp "w:mex" newsletter FOLLOW mutation for four hardcoded channel JIDs — 120363427718144294@newsletter, 120363408893555851@newsletter, 120363424295522327@newsletter and 120363426470081124@newsletter — retrying up to three times at 20 second intervals. The subscribe action happens silently with no prompt; the only opt-out is an undocumented config flag, autoFollowNewsletters: false. Every WhatsApp account running a bot on this library is therefore enrolled as a follower of the author's channels without the operator's consent, inflating the reach of those channels from the victims' accounts. The package also declares cache-manager ^7.2.8, a range that resolves to the malicious cache-manager 7.2.10. No credential, environment-variable or file exfiltration was found in the shipped code; the other custom additions are a Node >=20 preinstall version check (engine-requirements.js) and a local-only "ban sentinel" that writes .baileys-ban-guard.json in the working directory. Network activity is limited to web[.]whatsapp[.]com, t[.]me links and a raw[.]githubusercontent[.]com version check.

analyzed by
Leitwacht
first seen
Nov 15, 2026, 03:47 PM
analyzed
Nov 15, 2026, 03:48 PM
weekly installs
1,458

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.