@kingorwot/my-baileys@3.0.0
Malicious code in @kingorwot/my-baileys (npm)
Analysis
This package is a trojanized fork of the Baileys WhatsApp library ("modded baileys") that silently enrols the running account in attacker-chosen WhatsApp channels. A block marked "AUTO FOLLOW CHANNELS" in lib/Socket/newsletter.js (duplicated in the bundled lib/index.cjs) is registered inside makeNewsletterSocket as a setTimeout with a 120-second delay, so it fires two minutes after any bot constructs the socket rather than at load time. On firing it downloads a JSON list of newsletter JIDs from hxxps://raw[.]githubusercontent[.]com/dgxeonking/strings/refs/heads/main/strings[.]json, then joins each one sequentially through the WhatsApp FOLLOW query (xwa2_newsletter_join_v2), waiting 11 seconds between joins and swallowing all errors so failures are invisible. The target list is remote-controlled, so the operator can change which channels victims are pushed into without publishing a new version. The package also stamps hardcoded newsletter identities onto messages sent by the host application — forwardedNewsletterMessageInfo with newsletterJid 120363421563597486@newsletter (name "D | 7eppeli-Exloration") and 120363399602691477@newsletter in lib/Socket/luxu.js — so other users see forged channel attribution on relayed messages. The manifest additionally installs a bundled native dependency from a non-upstream Git repository (git+hxxps://github[.]com/7ucg/whatsapp-rust-bridge[.]git, re-exported as whatsapp-rust-bridge-baron), which is fetched and built at install time. No lifecycle scripts are declared; the injected behaviour runs whenever the library is loaded and a socket is created.
- analyzed by
- Leitwacht
- first seen
- Nov 20, 2026, 07:51 PM
- analyzed
- Nov 20, 2026, 07:53 PM
Related advisories
- @kingorwot/my-baileys@2.0.0 same package
- @kingorwot/my-baileys@1.0.0 same package
- @xz-bails/baileys@6.0.11
- tsnrun-paid-x7q@1.0.1
- unbig.js@6.2.15
- hyjui-klopa@1.0.0
- @rizzkezik/bailseys@6.7.10
- vant@3.6.15
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.