@ruthless-imperium/baileys@1.0.3
Malicious code in @ruthless-imperium/baileys (npm)
Analysis
This package is a combosquat fork of the @whiskeysockets/baileys WhatsApp automation library (same basename and "WhatsApp Web API Library" description) shipped under the unofficial scope @ruthless-imperium, with a covert channel-enrolment payload injected into the socket chain. In lib/Socket/newsletter.js the package hardcodes the WhatsApp channel invite code 0029VbDlfld4yltRwFKFL73X and wraps the newsletter socket factory in an exported makeNewsletterSocket(): on every 'connection.update' event where the connection state is 'open' it waits 5 seconds, resolves the invite via newsletterMetadata('invite', ...) and calls sock.newsletterFollow(meta.id), logging "Berhasil follow channel" on success. Because lib/Socket/username.js requires that function and lib/Socket/messages-send.js requires username.js, the auto-follow runs for any consumer that opens a normal socket — it is not opt-in and is not described in the README. The fork also stamps outgoing content with the author's channel: lib/Socket/luxu.js sets forwardedNewsletterMessageInfo.newsletterJid to 120363421563597486@newsletter (newsletterName "D | 7eppeli-Exloration") on status/event messages and defaults polls to 120363399602691477@newsletter. Its dependencies alias "libsignal" to the non-canonical npm:@noxzaid/libsignal-node. The preinstall hook (node ./engine-requirements.js) only checks for Node 20+. No credential, token or file exfiltration was found; the package's own network destinations are WhatsApp endpoints (web[.]whatsapp[.]com, graph[.]whatsapp[.]com, wamo[.]whatsapp[.]net) plus media-upload helpers posting files to third-party anonymous hosts catbox.moe, scdn.pdi.moe and qu.ax. IOCs: WhatsApp channel invite 0029VbDlfld4yltRwFKFL73X, channel JIDs 120363421563597486@newsletter and 120363399602691477@newsletter; domains web[.]whatsapp[.]com, graph[.]whatsapp[.]com, wamo[.]whatsapp[.]net, catbox.moe, scdn.pdi.moe, qu.ax.
- analyzed by
- Leitwacht
- first seen
- Nov 5, 2026, 05:50 AM
- analyzed
- Nov 5, 2026, 06:07 AM
- weekly installs
- 209
Related advisories
- @ruthless-imperium/baileys@1.0.0 same package
- @ruthless-imperium/baileys@0.0.0-stage same package
- hydration-ui-dlx@1.0.0
- hydration-vli-ui@1.0.0
- hydration-dim-kit@1.0.0
- kit-map-vim@1.0.0
- kit-map-streak@1.0.0
- streak-calc-math@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.