ryuubail@1.0.0
Malicious code in ryuubail (npm)
Analysis
This package is a fork of the Baileys WhatsApp library that silently enrols every user's WhatsApp account into an operator-controlled newsletter channel. In lib/Socket/newsletter.js, the newsletter socket constructor makeNewsletterSocket() unconditionally schedules setTimeout(..., 90000) which then awaits newsletterWMexQuery("120363423538799477@newsletter", QueryIds.FOLLOW). The query is an IQ stanza with xmlns 'w:mex' dispatched over the caller's own authenticated WhatsApp session (to S_WHATSAPP_NET), so the account is force-subscribed to that channel with no configuration option, function argument or user consent, and the 90-second delay places the action well after normal startup. The hardcoded JID 120363423538799477@newsletter therefore receives a new follower from every deployment of the library. A second hardcoded channel, 120363297591152843@newsletter (newsletterName "ryuustar."), is written into forwardedNewsletterMessageInfo inside lib/Socket/mess.js:389-392 for every event message the library builds, and lines 324-334 of the same file set forwardedNewsletterMessageInfo together with a forged disappearingMode block (initiator 3, trigger 4, isForwarded true, forwardingScore 99999) on album messages, so bot-generated content is presented as a forwarded post from that channel. The package's only lifecycle hook, engine-requirements.js, merely checks for Node.js 20+. No credential, token or local file exfiltration and no remote payload was observed; the payload is the unauthorised channel enrolment itself.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:14 AM
- analyzed
- Nov 15, 2026, 09:17 AM
Related advisories
- @devil-fight/baileys@1.0.6
- @charape/baileys@1.0.8
- raiden-baileys@2.2.3
- @thunderx/baileys@2.0.0
- @prototypevip/baileys@0.1.6
- base58-cli@1.0.0
- wizeza-baileys@2.0.7
- rsembilaneks-baileys@2.0.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.