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

@hanzzy/baileys-mod@8.0.2

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

T1059 · Command and Scripting InterpreterT1059.007 · JavaScriptT1071 · Application Layer ProtocolT1071.001 · Web ProtocolsT1102 · Web ServiceT1105 · Ingress Tool TransferT1195.002 · Compromise Software Supply Chain

Analysis

This package is a modified WhatsApp (Baileys) library fork that silently enrols the user's WhatsApp account in channels chosen by the publisher, outside the calling application's control. When the library is loaded, lib/Socket/newsletter.js starts an immediately-invoked async function that schedules a setTimeout of 80000 ms and then fetches hxxps://raw[.]githubusercontent[.]com/h4nzzy/WAchannel/refs/heads/main/idChannel[.]json; for each entry in the returned JSON it invokes the newsletter w:mex FOLLOW query (newsletterWMexQuery(i.id, QueryIds.FOLLOW)) with a 5000 ms stagger, subscribing the authenticated account to each remote-supplied channel, with errors swallowed in an empty catch. The target list is fetched at load time and is not disclosed in the package's documentation or console banner; the 80 s delay places the follow actions after the visible connection setup. The package additionally fetches a version file from hxxps://raw[.]githubusercontent[.]com/kiuur/bails/master/src/Defaults/baileys-version[.]json, ships editor-backup sidecars lib/Socket/chats.js.bak, lib/Utils/generics.js.bak and lib/Utils/validate-connection.js.bak beside the live source files, and declares a dependency on its own name through a git repository reference so installs pull code from that repository instead of the registry. Its preinstall hook (node ./engine-requirements.js) only enforces Node.js >= 20.

analyzed by
Leitwacht
first seen
Nov 15, 2026, 08:54 AM
analyzed
Nov 15, 2026, 08:56 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.