@alzx7z/baileys@2.0.6
Malicious code in @alzx7z/baileys (npm)
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
- @alzx7z/baileys@2.0.5 same package
- @denzz221/baileys@8.1.3
- @denzz221/baileys@8.1.5
- peas-tea-curut@3.2.2
- wet_rat_replicate_automation@2.3.1
- hushed_zebra_green-81@2.4.2
- inadequate_earwig_magenta-66@3.4.3
- @dreamguyxeon/libsignal-node@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.