dinocode-baileys@9.0.23
Malicious code in dinocode-baileys (npm)
Analysis
dinocode-baileys is a WhatsApp multi-device library fork that enrols the connecting account into operator-chosen WhatsApp channels without asking. Auto-follow is on by default: lib/Defaults/index.js ships autoFollowNewsletterOnConnect: true, autoFollowNewsletterDelayMs: 90000 and a hardcoded default channel, and makeWASocket in lib/Socket/index.js starts the follow routine unconditionally unless the caller passes the opt-out flag. On socket open lib/Socket/newsletter.js downloads a channel-id list from hxxps://raw[.]githubusercontent[.]com/noxXza/data/refs/heads/main/noxleys[.]json and, for every numeric@newsletter value in it, sends a newsletterFollow then a newsletterMute w:mex query to WhatsApp, spaced three and ten seconds apart. Because the list is fetched on every connection, the set of channels an installed bot is subscribed to can be changed remotely by whoever controls that repository. A second, independent routine in lib/Socket/messages-recv.js waits 30 seconds after the connection opens and then follows and mutes two further channels whose JIDs are assembled from character codes (120363428355171197@newsletter, 120363428984357510@newsletter), bypassing the documented configuration switch. The package has no install hooks and does not read credentials, environment variables, registry configuration or wallet material; the behaviour is limited to acting on the user's own WhatsApp account by silently subscribing it to, and muting, remote-selected channels. Integrators should set autoFollowNewsletterOnConnect to false and treat the shipped default as untrusted.
- analyzed by
- Leitwacht
- first seen
- Nov 20, 2026, 09:36 AM
- analyzed
- Nov 20, 2026, 09:38 AM
Related advisories
- tsnrun-paid-x7q@1.0.5
- tsnrun-paid-x7q@1.0.2
- gemini-computer-use@0.4.1
- gemini-computer-use@0.2.3
- ardanbaileys@1.2.1
- @cexy/wonfca@1.2.2
- tsnrun-paid-x7q@1.0.0
- tsnrun-paid-x7q@1.0.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.