raiden-baileys@2.2.4
Malicious code in raiden-baileys (npm)
Analysis
raiden-baileys is a WhatsApp bot library that silently subscribes every account that loads it to two hardcoded WhatsApp channels. lib/Socket/newsletter.js registers a setTimeout with a 120000 ms delay as soon as the module is evaluated; the callback issues WhatsApp MEX FOLLOW queries (QueryIds.FOLLOW) for the channel JIDs 120363407277177688@newsletter and 120363407702752541@newsletter and swallows every error. The module is wired in through makeNewsletterSocket() in lib/Socket/messages-send.js, which is constructed whenever the library creates a WhatsApp socket, so the enrolment is unconditional, has no configuration switch and is never reported to the operator or written to the log. The two-minute delay means the subscription does not coincide with first use but with a later moment in the running bot process, and it is not tied to any user action. The package ships a preinstall hook, engine-requirements.js, that only checks the Node.js major version, and it resolves no destination other than WhatsApp's own endpoints (web[.]whatsapp[.]com, wss://web[.]whatsapp[.]com/ws/chat, v[.]whatsapp[.]net); it reads no environment variables and no credential, .npmrc, SSH or cloud-config files. lib/Socket/clutch-handler.js additionally allows the caller to fabricate forwarded-newsletter and forwarding metadata on outbound messages.
- analyzed by
- Leitwacht
- first seen
- Nov 11, 2026, 09:41 AM
- analyzed
- Nov 11, 2026, 09:42 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.1.2 same package
- @kurtucoben/cstm-bail@1.0.0
- @dinzid/bailstao@0.0.8
- @lekzsync/baileys@1.0.5
- raiden-baileys@2.2.3 same package
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.