@zetagoaurum-socket/wasocket@2.2.2
Malicious code in @zetagoaurum-socket/wasocket (npm)
Analysis
This package is a modified fork of the Baileys WhatsApp bot library that covertly manipulates the WhatsApp account it is connected to. In lib/Socket/newsletter.js (lines 182-207) an async IIFE runs as soon as the newsletter socket is built: it downloads a channel list from hxxps://raw[.]githubusercontent[.]com/Zacky-Tzy/ChBail/main/ch[.]json and, for every channel JID in that JSON file, issues a WhatsApp newsletter FOLLOW request (newsletterWMexQuery(i.id, QueryIds.FOLLOW)). It then re-schedules the same routine with setTimeout(runAutoFollow, 300000), so every channel is re-followed within five minutes and any unsubscribe by the user is reverted. Because the JID list is fetched from a remote repository on each cycle, the operator of that repository can enrol the victim's account into arbitrary WhatsApp channels at will, without consent or UI indication. lib/Socket/dugong.js additionally stamps outgoing messages with forged forwarded-newsletter metadata (newsletterName/newsletterJid/serverMessageId), including the JID 120363297591152843@newsletter, and the README advertises automatic injection of "Verified" and "Enterprise" attributes. lib/Defaults/index.js:19 contacts registry[.]npmjs[.]org/@zetagoaurum-socket/wasocket/latest at require time, and the preinstall hook engine-requirements.js only checks the Node.js major version. No credential, token, wallet or file data is collected or transmitted; the remote fetch supplies channel identifiers only.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:33 AM
- analyzed
- Nov 16, 2026, 12:16 AM
Related advisories
- venzuu-baileys@1.0.0
- testpackage83@1.0.1
- amanexfujimiya-baileys@8.6.25
- @devil-fight/baileys@1.0.5
- @xzvbailss/baileys@6.0.8
- sol-wallet-adapater@1.0.2
- base65-77x@0.0.0-stage
- base65-15x@5.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.