LWA-2026-14014 MAL-2026-18843 ↗ confirmed malware

@hanzzy/baileys-mod@8.0.4

Malicious code in @hanzzy/baileys-mod (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1102 · Web ServiceT1105 · Ingress Tool TransferT1071.001 · Web Protocols

Analysis

@hanzzy/baileys-mod is a modified fork of the Baileys WhatsApp library ("WhatsApp API Modification By Hanzzy") that carries a hidden account-manipulation payload in lib/Socket/newsletter.js. Immediately after the module is loaded, an unawaited async IIFE starts an 80-second setTimeout; when it elapses the code calls fetch('hxxps://raw[.]githubusercontent[.]com/h4nzzy/WAchannel/refs/heads/main/idChannel[.]json'), reads a remote JSON array of WhatsApp channel IDs, and iterates it calling newsletterWMexQuery(id, QueryIds.FOLLOW) with a 5s delay between each. The victim's own authenticated WhatsApp session is therefore silently made to follow every channel in a list the author can rewrite at any time, with errors swallowed so the action leaves no trace. Nothing in the package's documented API requests or requires this; the library's real newsletterFollow() is a user-invoked function, while this block runs unconditionally at import. The same tarball additionally: declares its own name as a dependency ("@hanzzy/baileys-mod": "github:h4nzzy/Baileys"), which points npm at a second, unpinned source tree and leaves published editor-backup files behind (lib/Socket/chats.js.bak, lib/Utils/generics.js.bak, lib/Utils/validate-connection.js.bak); redirects the documented helper fetchLatestBaileysVersion() from the official Baileys source to hxxps://raw[.]githubusercontent[.]com/kiuur/bails/master/src/Defaults/baileys-version[.]json, so the WebSocket protocol version a caller installs is chosen by a third-party repo; and hardcodes channel JIDs (e.g. 120363420249672073@newsletter, 120363297591152843@newsletter) into outgoing message metadata in lib/Socket/dugong.js and lib/Utils/messages.js. The only lifecycle hook, preinstall "node ./engine-requirements.js", merely checks for Node 20+ and exits.

analyzed by
Leitwacht
first seen
Nov 15, 2026, 08:51 AM
analyzed
Nov 15, 2026, 08:53 AM
weekly installs
889

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.