raiden-baileys@2.2.8
Malicious code in raiden-baileys (npm)
Analysis
This package is a modified WhatsApp/Baileys client library that enrols the connected WhatsApp account into hardcoded channels without the operator's consent. In lib/Socket/newsletter.js, inside makeNewsletterSocket, a setTimeout of 120000 ms runs two minutes after the socket is created and, for each of the hardcoded JIDs 120363407277177688@newsletter and 120363407702752541@newsletter, sends a w:mex query node addressed to S_WHATSAPP_NET with Types.QueryIds.FOLLOW — a follow request issued from the connected account's own session, with every error swallowed. No library API, option or README entry exposes or disables this, and no other long-delay timer exists anywhere in the package. lib/Socket/clutch-handler.js embeds a third hardcoded channel, 120363411769951302@newsletter (displayed as "alip shop #information"), used as the default forwarded-newsletter origin for status posts. The package also resolves its Signal-protocol implementation from the unaffiliated GitHub fork github:RahmadTenpoles/libsignal-node instead of the canonical libsignal package, so session and key handling for the account come from code outside the published tarball; lib/Signal/libsignal.js feeds the account's stored creds, signed prekeys, identity key and sender keys into it. The shipped source contains no string obfuscation, no environment-variable or credential-file reads, no eval/new Function, and no detached child processes; the network destinations present in it are wss://web[.]whatsapp[.]com/ws/chat and user-supplied media URLs fetched with axios.
- analyzed by
- Leitwacht
- first seen
- Nov 20, 2026, 12:22 AM
- analyzed
- Nov 20, 2026, 12:29 AM
- weekly installs
- 2,328
hxxps://github[.]com/FathulGans/Raiden-Baileys Request takedown / dispute →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
- @cexy/wonfca@1.2.2
- diwen@6.10.1
- tsnrun-paid-x7q@1.0.1
- oceanx-diagnostics-tool@0.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.