@wanzforme/bails@3.0.0
Malicious code in @wanzforme/bails (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp Web library that ships an on-by-default side effect: it enrols the connected account into a hardcoded channel chosen by the author. package/lib/Defaults/index.js sets `autoFollow: true` in the default socket configuration, and package/lib/Socket/newsletter.js holds the channel identifier as the base64 constant `MTIwMzYzMzgwMzU3OTUxMzI4QG5ld3NsZXR0ZXI=` (channel JID 120363380357951328@newsletter); five seconds after the socket is created it issues a newsletter FOLLOW query (xwa2_newsletter_follow) for that ID, so a session connects and silently follows the channel unless the caller discovers and disables autoFollow. Message builders in package/lib/Socket/luxu.js additionally hardcode forwardedNewsletterMessageInfo records (newsletter JID 120363380357951328@newsletter, 120363399602691477@newsletter, 0@newsletter, sender labels "Wanz Lonely" / "7-Yuukey") and stamp them onto outgoing album, status and event media, attributing third-party traffic to those channels. The package also declares a runtime dependency on cache-manager. The preinstall hook (engine-requirements.js) only enforces Node.js 20+.
- analyzed by
- Leitwacht
- first seen
- Nov 14, 2026, 02:15 AM
- analyzed
- Nov 15, 2026, 11:05 PM
- weekly installs
- 531
Related advisories
- @wanzforme/bails@5.0.0 same package
- @wanzforme/bails@7.0.0 same package
- @wanzforme/bails@6.0.0 same package
- @wanzforme/bails@1.0.0 same package
- @csc-protocol/token-saver@1.3.3
- spencer-baileys@1.0.6
- @jiancodes/baileys@2.0.6
- @ravliesh/baileys@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.