MAL-2026-20429: Malicious code in dinocode-baileys (npm)
Malicious package. dinocode-baileys is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). In lib/Socket/messages-recv.js it hides two channel JIDs as character-code arrays (120363428355171197@newsletter, 120363428984357510@newsletter). When the connection opens, it waits 30 seconds, then sends a newsletter FOLLOW followed by a MUTE for each one, silently subscribing the victim account to attacker-controlled WhatsApp channels and hiding their notifications. Legitimate Baileys never hardcodes channel JIDs. Version 0.0.0-stage is a placeholder stub without this code.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/dinocode-baileysto a version that resolves this vulnerability.Fixed in 0.0.0-stage
Event History
Frequently Asked Questions
Which installations are affected?
Installations of dinocode-baileys containing the modified lib/Socket/messages-recv.js behavior are affected. The 0.0.0-stage version is described as a placeholder stub and does not contain this code.
What must happen for the malicious behavior to run?
A connection using the package must open. The code then waits 30 seconds before sending FOLLOW and MUTE actions for the two embedded WhatsApp newsletter channel JIDs.
What is the impact to the WhatsApp account?
The connected account is silently subscribed to two attacker-controlled WhatsApp channels, and notifications for those channels are muted. The hardcoded channel identifiers are 120363428355171197@newsletter and 120363428984357510@newsletter.
How can I check whether an account may already have been affected?
Review the account's followed WhatsApp newsletter channels for the two embedded channel JIDs and check whether they are muted. Also inspect the installed package's lib/Socket/messages-recv.js for hidden character-code arrays that resolve to those JIDs and connection-open logic that delays 30 seconds before FOLLOW and MUTE actions.