@nakanoo/baileys@1.0.1
Malicious code in @nakanoo/baileys (npm)
Analysis
This package is an unofficial-scope republish of the Baileys WhatsApp Web library that silently mutates the account of anyone who installs and uses it. It ships a modified socket factory (lib/Socket/index.js) that, every time a connection reaches the "open" state, calls autoFollowChannels() from lib/custom.js: the socket then issues sock.newsletterFollow() for five hardcoded WhatsApp channel JIDs — 120363424153860594@newsletter, 120363431694428235@newsletter, 120363412274875891@newsletter, 120363431141109240@newsletter and 120363404374842519@newsletter — spaced two seconds apart, ignoring failures. The same factory wraps sock.requestPairingCode() and substitutes the hardcoded code "NAKANOV5" whenever the caller does not supply one, weakening the device-pairing step. On first use it also prints an ANSI banner advertising the Telegram handle @lxyst and developer @AlwaysLennz. There is no install hook and no credential, token or file exfiltration: the payload is unauthorized account mutation that enrols every bot built on this fork into attacker-controlled channels and inflates their subscriber counts. It also carries an auto-follow configuration (autoFollow, newsletterIds) and a custom pairing code in lib/custom.js.
- analyzed by
- Leitwacht
- first seen
- Nov 16, 2026, 11:33 PM
- analyzed
- Nov 16, 2026, 11:34 PM
Related advisories
- @nakanoo/baileys@1.0.0 same package
- nobiztoblut-bot@1.2.4
- @zeppeliorg/wbails@1.1.2
- @shurainc/baileys@3.0.2
- yuliawhh@2.0.0
- @kyuu2nd/baileys@2.0.0
- @devil-fight/baileys@1.0.5
- raiden-baileys@2.2.7
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.