nakano-baileys@1.1.0
Malicious code in nakano-baileys (npm)
Analysis
nakano-baileys 1.1.0, a WhatsApp Web API library, silently subscribes the accounts of applications that embed it to operator-controlled channels. lib/custom.js hardcodes autoFollow: true together with three WhatsApp channel JIDs (120363413531701847@newsletter, 120363431680006732@newsletter, 120363412274875891@newsletter), and exposes autoFollowChannels(sock), which calls sock.newsletterFollow() for each ID two seconds apart. lib/Socket/index.js invokes that function from makeWASocket on every "connection.update" event with connection === "open", so a connected session follows all three channels once; no option, flag or log line lets the embedding application or end user decline. The same module rebinds sock.requestPairingCode so that when the caller supplies no code the hardcoded default "NAKANOCJ" is used for device linking instead, making the pairing value a static, publicly known constant. The preinstall hook runs ./engine-requirements.js, which only checks the Node.js major version. No credential, token, environment or file exfiltration is present in the shipped code: the unwanted behaviour is the unconsented channel subscription and the fixed pairing code.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 11:07 PM
- analyzed
- Nov 25, 2026, 11:09 PM
hxxps://github[.]com/nakano-cjs/baileys Request takedown / dispute →Related advisories
- nakano-baileys@1.0.9 same package
- nakano-baileys@1.0.8 same package
- nakano-baileys@1.0.7 same package
- nakano-baileys@1.0.6 same package
- use-sync-external-store-shim@0.0.0-stage
- ep_nxs74552@1.0.0
- provenix-suspect@1.0.2
- use-sync-external-store-shim@2.2.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.