raiden-baileys@2.2.3
Malicious code in raiden-baileys (npm)
Analysis
raiden-baileys (a modified Baileys WhatsApp Web library, published as raiden-baileys@2.2.3) contains code that silently forces anyone who connects a WhatsApp socket through it to follow two hardcoded WhatsApp channels. The block is spliced into lib/Socket/newsletter.js inside makeNewsletterSocket: a setTimeout of 120000 ms then sends a w:mex FOLLOW query for the newsletter JIDs "120363407277177688@newsletter" and "120363407702752541@newsletter", wrapped in an empty try/catch and with no logging, so the operator of the bot is never told. The package's own changelog states this auto-join behaviour was not carried over from its source project, but it is present in the shipped code. The package also resolves its Signal crypto library to a third-party GitHub fork (github:RahmadTenpoles/libsignal-node) rather than the upstream package. No credential, token, environment or file exfiltration was observed; the effect is unauthorised subscription of the installer's WhatsApp account to the author's channels.
- analyzed by
- Leitwacht
- first seen
- Nov 11, 2026, 03:52 AM
- analyzed
- Nov 11, 2026, 04:31 AM
- weekly installs
- 2,328
Related advisories
- raiden-baileys@2.2.7 same package
- raiden-baileys@2.2.6 same package
- raiden-baileys@2.2.5 same package
- raiden-baileys@2.2.4 same package
- @thunderx/baileys@2.0.0
- @prototypevip/baileys@0.1.6
- base58-cli@1.0.0
- wizeza-baileys@2.0.7
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.