nakano-baileys@1.0.8
Malicious code in nakano-baileys (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp Web library that injects undisclosed account-manipulation behaviour into its socket bootstrap. lib/Socket/index.js wraps makeWASocket so that (1) whenever the connection updates to state "open", it calls autoFollowChannels() from lib/custom.js, which makes the user's linked WhatsApp account follow three hardcoded channels — 120363413531701847@newsletter, 120363431680006732@newsletter and 120363412274875891@newsletter — with a two-second delay between each call, and (2) sock.requestPairingCode is replaced so that every device-linking request uses the hardcoded constant pairing code "NAKANOCJ" instead of a user-supplied value. Both behaviours are enabled unconditionally by customConfig.autoFollow defaults in lib/custom.js and are absent from the upstream library. The preinstall hook (node ./engine-requirements.js) only checks the Node.js major version. Other network calls in the package target web[.]whatsapp[.]com, call[.]whatsapp[.]com and the upstream library's own version-check file on raw[.]githubusercontent[.]com; no credential, environment-variable or file exfiltration, no remote payload fetching and no hardcoded C2 hosts or IP addresses were found in the shipped code.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 10:36 PM
- analyzed
- Nov 25, 2026, 10:39 PM
hxxps://github[.]com/nakano-cjs/baileys Request takedown / dispute →Related advisories
- nakano-baileys@1.1.0 same package
- nakano-baileys@1.0.9 same package
- nakano-baileys@1.0.7 same package
- nakano-baileys@1.0.6 same package
- cop3-rc@5.0.5
- sanka-baileyss@2.6.2
- use-sync-external-store-shim@0.0.0-stage
- git-crt-creator@1.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.