@alzx7z/baileys@2.0.5
Malicious code in @alzx7z/baileys (npm)
Analysis
@alzx7z/baileys is a repackaged clone of the WhatsApp library @whiskeysockets/baileys with code injected into lib/Socket/newsletter.js that forces the user's authenticated WhatsApp account to follow operator-controlled channels. At module load, four timers fire 90 seconds later and each issues a WhatsApp "w:mex" newsletter FOLLOW query (QueryIds.FOLLOW) for a channel JID hidden as a base64 string literal: 120363407144637058@newsletter, 120363425065963346@newsletter, 120363406524087186@newsletter and 120363420091867664@newsletter. The requests are sent through the caller's own established WhatsApp socket, so any application that connects with this package silently enrols the signed-in account(s) into those four channels shortly after startup; the 90-second delay places the action well after the socket handshake and outside typical short-lived install checks. The hooks swallow errors so the subscriptions are invisible to the application. The package's only lifecycle hook (preinstall: node ./engine-requirements.js) merely enforces Node.js >= 20 and performs no download or execution. No credential, token, wallet or environment reads are present in the shipped code and no destination other than web[.]whatsapp[.]com is contacted.
- analyzed by
- Leitwacht
- first seen
- Nov 9, 2026, 11:37 PM
- analyzed
- Nov 9, 2026, 11:42 PM
Related advisories
- @alzx7z/baileys@2.0.6 same package
- charape@1.0.21
- charape@1.0.4
- @denzz221/baileys@8.1.5
- @zervonex/baileys@3.0.9
- raiden-baileys@2.1.7
- sauruspro-bail@5.0.0
- insta-api-wrapper@1.1.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.