raiden-baileys@2.2.7
Malicious code in raiden-baileys (npm)
Analysis
raiden-baileys is a WhatsApp bot library that silently enrols the installer's WhatsApp account into attacker-chosen channels. In lib/Socket/newsletter.js the socket factory makeNewsletterSocket() registers a bare 120-second setTimeout that iterates two hardcoded channel JIDs — 120363407277177688@newsletter and 120363407702752541@newsletter — and sends a w:mex GraphQL FOLLOW query for each over the live WhatsApp connection, discarding every error so the operator sees nothing. The factory is invoked unconditionally when a socket is created (lib/Socket/messages-send.js: const sock = makeNewsletterSocket(config)), so any bot built on this library follows those channels roughly two minutes after connecting, with no configuration option, hook or log line exposing it. Related artefacts in the same tarball: lib/Socket/clutch-handler.js defaults forwardedNewsletterMessageInfo to newsletterJid 120363411769951302@newsletter / newsletterName "alip shop #information", so messages produced by the library are presented as forwards from that channel. The package.json preinstall hook (engine-requirements.js) is only a Node >= 20 version check. No external C2 host, no credential, token, environment-variable or file reads were found; the network traffic is the WhatsApp protocol endpoint wss://web[.]whatsapp[.]com/ws/chat, and the abuse is carried out through it. Indicators: WhatsApp channel JIDs 120363407277177688@newsletter, 120363407702752541@newsletter (auto-follow) and 120363411769951302@newsletter (forged-forward default); file lib/Socket/newsletter.js; delay 120000 ms.
- analyzed by
- Leitwacht
- first seen
- Nov 13, 2026, 10:49 AM
- analyzed
- Nov 13, 2026, 10:49 AM
- weekly installs
- 2,328
Related advisories
- raiden-baileys@2.2.6 same package
- raiden-baileys@2.2.5 same package
- raiden-baileys@2.2.4 same package
- raiden-baileys@2.1.2 same package
- raiden-baileys@2.2.3 same package
- @risacakep/risayap@7.0.0-rc25.13
- @trashcore/baileys@4.1.8
- @langitdeveloper/baileys@2.1.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.