nakano-baileys@1.0.6
Malicious code in nakano-baileys (npm)
Analysis
nakano-baileys@1.0.6 is a combosquat fork of the Baileys WhatsApp Web API library (the real name 'baileys' with an added prefix) that manipulates the linked user's WhatsApp account without asking the operator. lib/Socket/index.js calls autoFollowChannels(sock) from its connection.update handler as soon as the connection reaches the open state, and lib/custom.js ships autoFollow: true plus three hardcoded channel identifiers (120363413531701847@newsletter, 120363431680006732@newsletter, 120363412274875891@newsletter) which it feeds one by one to sock.newsletterFollow(id) with a 2-second pause between calls — every successful login silently subscribes the victim's account to channels controlled by the package author, and the only way to stop it is to know about and set customConfig.autoFollow = false. The same wrapper replaces sock.requestPairingCode() so that a fixed 8-character device-linking code is used whenever the caller does not pass its own, overriding the code the legitimate pairing flow would generate. Both behaviours are exported from the package's main entry point, so any application that imports makeWASocket from this fork inherits them. Aside from this the tree is conventional Baileys code: the install hook (engine-requirements.js) only checks the Node.js major version, and the single hardcoded outbound URL is an upstream version-file fetch from hxxps://raw[.]githubusercontent[.]com/WhiskeySockets/Baileys/master/src/Defaults/index[.]ts.
- analyzed by
- Leitwacht
- first seen
- Nov 24, 2026, 11:36 AM
- analyzed
- Nov 24, 2026, 11:38 AM
hxxps://github[.]com/nakano-cjs/baileys Request takedown / dispute →Related advisories
- nakano-baileys@1.0.7 same package
- nakano-baileys@1.0.5 same package
- @silent404/baileys@7.2.2
- omhcmbud-bails@7.0.6
- @zeppeliorg/wbails@1.1.5
- @nakanoo/baileys@1.0.1
- @nakanoo/baileys@1.0.0
- nobiztoblut-bot@1.2.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.