LWA-2026-14347 confirmed malware

ardanbaileys@1.2.1

Malicious code in ardanbaileys (npm)

T1027 · Obfuscated Files or InformationT1140 · Deobfuscate/Decode Files or InformationT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web ProtocolsT1102 · Web Service

Analysis

A WhatsApp (Baileys-derived) library carrying hidden, install-adjacent automation that enrols every connected account into attacker-chosen WhatsApp channels.\n\nIn lib/Socket/socket.js a URL is stored as a decimal char-code array and rebuilt at run time with String.fromCharCode(..._u), yielding hxxps://raw[.]github[.]com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push[.]json (a non-standard raw[.]github[.]com host, not the GitHub raw-content host). This runs unconditionally from the socket connect path: fetchLatestBaileysVersion() executes socketConnect(), which fetches the list before the handshake completes and then, inside a 200-second setTimeout, sends one w:mex IQ query per entry with query_id 7871414976211147 (the newsletter FOLLOW query, defined as QueryIds.FOLLOW in lib/Types/Newsletter.js) and variables.newsletter_id taken from the remote list. All errors are swallowed, so the account joins each channel silently.\n\nA second hidden path in the same file, generateMessageV(n) (exported to callers via the socket object), decodes the base64 constant "JCUkJCQjIyQkIyMjIyQjIyMjIyQjIyMjQG5ld3NsZXR0ZXI=" and XORs each character with key 23, producing 120363405765232446@newsletter, then after a 40-second timer calls the same FOLLOW query for that fixed channel, again inside a try/catch that discards failures. Both channels are attacker-controlled: the second is fixed in the code, the first is whatever the remote JSON contains.\n\nA separate auto-follow module (lib/Channels/index.js, exported from the entry point) fetches config/channels.json from an account-controlled raw[.]githubusercontent[.]com path and follows every channel ID listed there on connection open; that remote list is mutable after publication.\n\nIndicators: hxxps://raw[.]github[.]com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push[.]json; hxxps://raw[.]githubusercontent[.]com/ardanClv/ardanbaileys/main/config/channels[.]json; hardcoded channel 120363405765232446; newsletter FOLLOW query id 7871414976211147; decoder key 23 in lib/Socket/socket.js.

analyzed by
Leitwacht
first seen
Nov 20, 2026, 03:06 AM
analyzed
Nov 20, 2026, 03:09 AM
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/ardanClv/ardanbaileys Request takedown / dispute →

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.