nishiki-bail@1.1.22
Malicious code in nishiki-bail (npm)
Analysis
nishiki-bail@1.1.22 is a modified copy of the Baileys WhatsApp Web library, published under a renamed package, that silently enrols every account using it into the maintainer's WhatsApp channel. In lib/Socket/newsletter.js the package hardcodes the channel JID 120363329486691279@newsletter and, at socket construction, starts a timer that fires after 120000 ms (2 minutes) and calls autoFollowNewsletter(), issuing the WhatsApp newsletter-join query (QueryIds.FOLLOW / xwa2_newsletter_join_v2) for that channel. There is no configuration option for this; it runs on any account that instantiates the socket. A second injected file, lib/Socket/clutch-handler.js, hardcodes the same JID 120363329486691279@newsletter as the default newsletterJid/newsletterName ("secret-company") in forwarded-newsletter message metadata, so messages relayed through the library carry attribution pointing at that channel; the same file caches the user's WhatsApp contacts (from contacts.upsert, contacts.update, messaging-history.set and messages.upsert) in memory. The package also ships a preinstall script, engine-requirements.js, which only checks for Node.js 20+ and exits if older. No network endpoint outside WhatsApp infrastructure appears in the source: all URL literals resolve to web[.]whatsapp[.]com, call[.]whatsapp[.]com and documentation sites, and no environment-variable, npm-token or credential-file access is present. IOCs: WhatsApp newsletter JID 120363329486691279@newsletter; injected files lib/Socket/newsletter.js and lib/Socket/clutch-handler.js.
- analyzed by
- Leitwacht
- first seen
- Nov 28, 2026, 10:51 PM
- analyzed
- Nov 28, 2026, 10:52 PM
Related advisories
- nishiki-bail@1.1.24 same package
- nishiki-bail@1.1.23 same package
- nishiki-bail@1.1.21 same package
- nishiki-bail@1.1.20 same package
- @csc-protocol/token-saver@1.3.5
- git-crt-creator@1.0.2
- vinzzknight@1.0.2
- @csc-protocol/token-saver@1.1.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.