Malicious package · npm
Malicious code in dew-baileys (npm)
1.0.03.0.43.0.53.0.63.0.73.0.83.0.93.1.03.1.1No safe version. Remove it.What it does
dew-baileys is a fork of the WhatsApp Web library Baileys. Versions 3.0.4 to 3.1.1 and 1.0.0 change lib/Socket/newsletter.js so that every socket created with the library makes the user's WhatsApp account follow hard-coded WhatsApp channels (three in 3.0.4 to 3.1.1, four in 1.0.0) about 90 seconds after start, without asking or telling the user. The channel IDs (including the author's 'Dew Coders OFC' channel) are hidden as base64 strings and errors are swallowed. It runs whenever an application uses the library; no install hook is involved. This is the PhantomSub-style WhatsApp channel auto-follow behaviour seen in other malicious Baileys forks (e.g. mod-baileys). Version 1.0.0 was published after 3.1.1 (it was the 'latest' tag) and adds a fourth hidden channel ID, 120363421052027188@newsletter. Earlier versions 0.1.1 to 3.0.3 do not contain the hidden follow calls. Reported to npm on 2026-11-26 and replaced with a security holding package (0.0.1-security) on 2026-11-26.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
No fix · Remove and contain
npm uninstall dew-baileysSources