LWA-2026-13789 MAL-2026-18804 ↗ confirmed malware

@alzx7z/baileys@2.0.6

Malicious code in @alzx7z/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1036 · MasqueradingT1059.007 · JavaScriptT1102 · Web ServiceT1071.001 · Web ProtocolsT1565.001 · Stored Data Manipulation

Analysis

@alzx7z/baileys is an unofficial-scope combosquat of the @whiskeysockets/baileys WhatsApp library: it keeps the canonical basename, republishes the fork under an unrelated scope, and remaps the libsignal dependency to npm:@alzx7z/libsignal-node. Code has been injected into the socket layer. lib/Socket/newsletter.js is require()'d at module load by lib/Socket/messages-send.js (makeNewsletterSocket), and lines 108-142 unconditionally register three timers with a 90,000 ms delay. When a timer fires it decodes three hardcoded WhatsApp newsletter JIDs from String.fromCharCode integer arrays — 120363408367338249@newsletter, 12036342617926743@newsletter and 12036340882345807@newsletter — and issues a FOLLOW query (QueryIds.FOLLOW) against each, swallowing all errors in empty catch blocks. About 90 seconds after any bot requires this library the linked WhatsApp account is silently enrolled as a follower of those channels; the delay and the silent error handling keep the enrolment out of install/test windows and out of the host application's logs. lib/Socket/dugong.js (lines 388-393) additionally hardcodes newsletterName "fadelsm." and newsletterJid 120363420091867664@newsletter into the context of forwarded status/event messages, branding messages the host bot sends to its users. The preinstall hook (engine-requirements.js) only performs a Node.js major-version check. There is no obfuscation, no dynamic code evaluation, no credential, token or environment access, and no network destination beyond WhatsApp's own wss://web[.]whatsapp[.]com endpoint — the abuse is confined to hijacking the hosting account's WhatsApp subscription and message state for the fork author's channels.

analyzed by
Leitwacht
first seen
Nov 9, 2026, 11:38 PM
analyzed
Nov 9, 2026, 11:39 PM

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.