nishiki-bail@1.1.23
Malicious code in nishiki-bail (npm)
Analysis
nishiki-bail@1.1.23 is a republished WhatsApp Web client library (a Baileys fork) carrying an injected payload that manipulates the installer's WhatsApp account. In lib/Socket/newsletter.js, makeNewsletterSocket defines autoFollowNewsletter() and schedules it with a 120-second setTimeout; when it runs it calls the newsletter join query (QueryIds.FOLLOW / xwa2_newsletter_join_v2) for the hardcoded channel 120363329486691279@newsletter, silently subscribing the user's account to that channel with no configuration or user action; errors from the call are swallowed. The package also ships lib/Socket/clutch-handler.js (class ClutchHandler, wired into the send path as `gun` in lib/Socket/messages-send.js), which constructs forged event/view-once WhatsApp messages whose forwardedNewsletterMessageInfo defaults to newsletter name "secret-company" and newsletter JID 120363329486691279@newsletter, and which loads recipient data from ./contacts-cache.json in the process working directory. The preinstall hook (node ./engine-requirements.js) only performs a Node.js version check. No network destinations other than WhatsApp's own servers (web[.]whatsapp[.]com, call[.]whatsapp[.]com) are contacted by the injected code.
- analyzed by
- Leitwacht
- first seen
- Nov 28, 2026, 10:52 PM
- analyzed
- Nov 28, 2026, 10:53 PM
Related advisories
- nishiki-bail@1.1.24 same package
- nishiki-bail@1.1.22 same package
- nishiki-bail@1.1.21 same package
- nishiki-bail@1.1.20 same package
- @kingorwot/my-baileys@4.0.0
- fast-baileys@2.0.8
- fast-baileys@2.0.9
- modelbufs@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.