malvin-baileys@2.2.1
Malicious code in malvin-baileys (npm)
Analysis
malvin-baileys is a modified fork of the Baileys WhatsApp Web library that silently enrols the installer's WhatsApp account into the author's channels and advertises those channels in messages the bot relays. lib/Socket/newsletter.js, inside makeNewsletterSocket, schedules a timer that fires 90 seconds after a socket is created and issues a newsletter FOLLOW operation for 120363399205146445@newsletter; a nested timer 5 seconds later issues a second FOLLOW for 120363391079867105@newsletter. No user action or consent is involved and the errors are swallowed, so the account subscribes to both channels whenever the library is used. Separately, lib/Utils/messages.js and lib/Socket/dugong.js hardcode forwardedNewsletterMessageInfo pointing at 120363402308105961@newsletter (labelled "Denzy ZeroDay."/"Denzy Z3roDay") on the status-event and event messages the library relays, so recipients of the bot's messages see a promotion for that channel. The package's preinstall hook runs node ./engine-requirements.js, which only aborts installation when the Node.js major version is below 20. The tree contains no access to .npmrc, environment tokens, SSH/AWS credential files or wallet data, no eval/atob or other dynamic code loading, and its only network destinations are the WhatsApp Web endpoint wss://web[.]whatsapp[.]com/ws/chat and media URLs supplied by callers; child_process use is limited to invoking ffmpeg for thumbnail generation.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:14 AM
- analyzed
- Nov 15, 2026, 09:16 AM
- weekly installs
- 423
Related advisories
- @alzx7z/baileys@2.0.6
- @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.