LWA-2026-13838 MAL-2026-18904 ↗ confirmed malware

@thunderx/baileys@2.0.0

Malicious code in @thunderx/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1071.001 · Web ProtocolsT1105 · Ingress Tool TransferT1102 · Web ServiceT1565.002 · Transmitted Data Manipulated

Analysis

This package impersonates the @whiskeysockets/baileys WhatsApp library: it keeps the same basename and still claims github[.]com/whiskeysockets/baileys as its homepage while being published under an unrelated scope, and replaces the trusted `libsignal` dependency with `libsignal: npm:@thunderx/libsignal-node`. Injected behaviour, all reachable from normal library use: - lib/Socket/newsletter.js fetches hxxps://raw[.]githubusercontent[.]com/yun-xiaogt/ivory-lotus/refs/heads/main/newsletter[.]json on a 120-second timer, then for every JID in the returned JSON array issues a WhatsApp newsletter FOLLOW query (QueryIds.FOLLOW), spaced 11 seconds apart. A list the operator can change at any time silently makes the victim's authenticated WhatsApp account subscribe to arbitrary channels. - lib/index.js performs a top-level fetch at import of hxxps://raw[.]githubusercontent[.]com/z4phdev/client/refs/heads/main/information[.]json and prints the first array element to the installer's console as an "update" notice — remote-supplied text executed into the consumer's terminal. - lib/Utils/generics.js repoints fetchLatestBaileysVersion to hxxps://raw[.]githubusercontent[.]com/z4phdev/baileys/master/src/Defaults/baileys-version[.]json, so the WhatsApp protocol version is taken from an operator-controlled file. - lib/Socket/dugong.js hardcodes WhatsApp channel JIDs (120363297591152843@newsletter named "shenvn.", and 0@newsletter named "WhatsApp") into forged forwardedNewsletterMessageInfo and eventMessage context payloads. - Import-time console advertising (Telegram @primeroselotus, ASCII-art banner) and package.json profile.baseurl hxxps://shenirapi[.]shenira9x[.]me. The preinstall hook (node ./engine-requirements.js) is only a Node.js >=20 version check. No environment-variable, .npmrc, cloud-credential or wallet access was found; the abuse is remote-config-driven control of the consumer's WhatsApp account and messaging content.

analyzed by
Leitwacht
first seen
Nov 10, 2026, 12:10 AM
analyzed
Nov 10, 2026, 12:13 AM

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.