nishiki-bail@1.1.24
Malicious code in nishiki-bail (npm)
Analysis
This package is a fork of the Baileys WhatsApp Web library with an added hidden channel-enrolment payload. Every time a socket is created, lib/Socket/newsletter.js schedules a 120-second timer that silently joins the installer's authenticated WhatsApp account to the hardcoded channel 120363329486691279@newsletter by issuing the newsletter-join query (QueryIds.FOLLOW / xwa2_newsletter_join_v2) with that channel as newsletter_id; all errors are swallowed and nothing is surfaced to the application or user, so the subscription is invisible. The same channel ID is hardcoded as the default forwardedNewsletterMessageInfo ("secret-company") in the extra message-generation handler added at lib/Socket/clutch-handler.js and exposed on the socket as `gun`, and that handler reads/writes contacts-cache.json in the process working directory from its constructor. The 120-second delay pushes the follow call beyond a short install-time observation window. Its preinstall hook (node ./engine-requirements.js) only checks that Node.js is version 20 or newer. No credential files, npm tokens, or non-WhatsApp network destinations are touched; the abuse is confined to manipulating the victim's WhatsApp session. IOC: WhatsApp channel JID 120363329486691279@newsletter.
- analyzed by
- Leitwacht
- first seen
- Nov 28, 2026, 11:21 PM
- analyzed
- Nov 28, 2026, 11:23 PM
Related advisories
- nishiki-bail@1.1.23 same package
- nishiki-bail@1.1.22 same package
- nishiki-bail@1.1.21 same package
- nishiki-bail@1.1.20 same package
- combined-baileys@1.0.1
- @zervonex/baileys@4.0.8
- @kingorwot/my-baileys@2.0.0
- @zervonex/baileys@4.0.5-final
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.