nakano-baileysnpm
Advisory published Updated
nakano-baileys is a confirmed malicious npm package (MAL-2026-21036) that executes malicious code on install (malicious versions 1.0.8, 1.0.9, 1.1.0…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in nakano-baileys (npm)
What this malware does
nakano-baileys is a modified copy of the Baileys WhatsApp Web library (@whiskeysockets/baileys) that subscribes the user's WhatsApp account to three channels chosen by its author. When an application that imports it creates a socket with makeWASocket and the connection first opens, lib/Socket/index.js calls autoFollowChannels from lib/custom.js, which sends newsletterFollow on the user's authenticated session for 120363413531701847@newsletter, 120363431680006732@newsletter and 120363412274875891@newsletter, with autoFollow: true as the default. Earlier versions documented this and an opt-out in the README; from 1.0.8 the README no longer mentions it, while the code is unchanged. Versions 1.0.3 to 1.0.5 followed 120363424153860594@newsletter instead, the channel that @randev404/baileys (MAL-2026-18878) also follows from its lib/custom.js.
Malicious versions
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for nakano-baileys (8 malicious versions).
If you installed it — respond
Remove nakano-baileys from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If nakano-baileys was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Credits
- InvisiRisk, Inc. · finder
Detect & block this
O3 blocks nakano-baileys-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.