@wanzforme/bails@7.0.0
Malicious code in @wanzforme/bails (npm)
Analysis
@wanzforme/bails is a modified fork of the Baileys WhatsApp library that silently enrols the installer's WhatsApp account into a third-party channel and injects channel branding into messages it sends. Automatic channel enrolment: lib/Socket/newsletter.js adds an "XzV Newsletter Auto-Follow" block that upstream Baileys does not have. It hardcodes the newsletter JID 120363380357951328@newsletter as the default target and, on every socket "connection.update" event with connection === 'open', waits 10 seconds and then issues a w:mex FOLLOW query (query id 7871414976211147) to WhatsApp for that JID — subscribing the user's account to the channel without asking. It retries up to 3 times at 20-second intervals and is only disabled if the caller explicitly passes autoFollowNewsletters: false. Channel promotion injection: lib/Socket/luxu.js hardcodes the same JID and the channel name "WanzLonely" into forwardedNewsletterMessageInfo inside contextInfo, so outgoing status/poll messages the library builds are attributed as forwarded from that channel. Poisoned dependency: package.json declares "cache-manager": "^7.2.8", a range satisfied by a published malicious version of cache-manager, so installing this package also pulls that package's payload. The package's preinstall hook (node ./engine-requirements.js) is only a Node.js version check; the abuse is in the shipped socket code and the dependency chain. IOCs: WhatsApp newsletter JID 120363380357951328@newsletter (channel "WanzLonely"), w:mex follow query id 7871414976211147, dependency range cache-manager ^7.2.8.
- analyzed by
- Leitwacht
- first seen
- Nov 14, 2026, 11:55 AM
- analyzed
- Nov 15, 2026, 11:11 PM
- weekly installs
- 531
Related advisories
- @wanzforme/bails@5.0.0 same package
- @wanzforme/bails@6.0.0 same package
- @wanzforme/bails@3.0.0 same package
- @wanzforme/bails@1.0.0 same package
- dapzsyz-baileysm@0.4.2
- @fadeldev/baileys-mods@8.0.4
- @hanzzy/baileys-mod@8.0.2
- amiudmodz@4.1.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.