nishiki-bail@1.1.20
Malicious code in nishiki-bail (npm)
Analysis
This package is a fork of the Baileys WhatsApp library that covertly acts on the authenticated user's account. In lib/Socket/newsletter.js the exported makeNewsletterSocket() hardcodes the WhatsApp channel JID 120363329486691279@newsletter and starts a 120-second timer whose callback sends a newsletter-join (xwa2_newsletter_join_v2 FOLLOW) query for it; there is no configuration or opt-in, and the error is swallowed with an empty catch, so the account is enrolled in the publisher's channel without the user's knowledge. The same channel JID is hardcoded at lib/Socket/clutch-handler.js:543 as the default newsletterJid in the fabricated forwardedNewsletterMessageInfo / businessMessageForwardInfo metadata that the package's message helpers attach, so messages built with those helpers are attributed to that channel and carry forged forwarding metadata (forwardingScore 99999, isForwarded, status@broadcast participant) intended to make them look like forwarded channel posts. No other remote endpoint is contacted beyond WhatsApp's own web[.]whatsapp[.]com / call[.]whatsapp[.]com hosts; the sole IOC is the channel JID above.
- analyzed by
- Leitwacht
- first seen
- Nov 27, 2026, 12:37 PM
- analyzed
- Nov 27, 2026, 12:39 PM
Related advisories
- nishiki-bail@1.1.24 same package
- nishiki-bail@1.1.23 same package
- nishiki-bail@1.1.22 same package
- nishiki-bail@1.1.21 same package
- homebridge-synsono@15.38.7
- @kingorwot/my-baileys@4.0.0
- @fadeldev/baileys-mod@8.0.3
- fast-baileys@2.0.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.