LWA-2026-14529 confirmed malware

nakano-baileys@1.1.0

Malicious code in nakano-baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1082 · System Information DiscoveryT1071.001 · Web Protocols

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
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/nakano-cjs/baileys Request takedown / dispute →

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.