dinocode-baileys: malicious npm fork silently subscribes WhatsApp accounts to attacker channels
Severity: critical · Patch status: no-fix-needed · Since 2026-11-24
The npm package dinocode-baileys, a trojanized fork of the Baileys WhatsApp library, contains malicious code in lib/Socket/messages-recv.js. Version 9.0.23 hides two WhatsApp newsletter JIDs as character-code arrays; about 30 seconds after a connection opens, it sends FOLLOW and then MUTE commands for each channel, silently subscribing victim accounts to attacker-controlled channels and suppressing notifications. Legitimate Baileys does not hardcode channel JIDs. Anyone installing or depending on dinocode-baileys 9.0.23 is affected; version 0.0.0-stage is a placeholder stub without the code. No patched version is listed. The advisory does not state in-the-wild exploitation. Remove the package and audit WhatsApp sessions.
What to do
- Remove dinocode-baileys 9.0.23 from applications and lockfiles; rebuild and redeploy from clean dependencies.
- Search dependency trees, package caches, and build artifacts for dinocode-baileys.
- Review WhatsApp linked devices and sessions; revoke any unrecognized sessions.
- Check followed channels and notification/mute settings for the two JIDs; unsubscribe and unmute as needed.
- Replace with the legitimate @whiskeysockets/baileys package from a trusted source.
- Monitor affected WhatsApp accounts for unauthorized channel subscriptions or suppressed notifications.
Sources
All live incidents on Threat Watch