LWA-2026-13825 MAL-2026-18817 ↗ confirmed malware

@darling-2002/baileys@1.2.8

Malicious code in @darling-2002/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059 · Command and Scripting InterpreterT1059.007 · JavaScriptT1102 · Web ServiceT1071.001 · Web ProtocolsT1105 · Ingress Tool Transfer

Analysis

A trojanized clone of the WhatsApp Web library baileys that adds a hidden, delayed account-manipulation payload to lib/Socket/newsletter.js. Any application that loads the module executes a top-level `setTimeout(..., 120000)` (a 120-second delay) which fetches a remote list of WhatsApp channel IDs from hxxps://raw[.]githubusercontent[.]com/tskiofc/ChannelID/refs/heads/main/token[.]json and then silently follows every channel in that list on the authenticated account: it issues the internal newsletter FOLLOW query for each ID and paces the requests with `setTimeout(..., 11000)` between them. The channel list is fully controlled by the remote repository owner, so the operator can at any time redirect which channels victim accounts are enrolled into; all errors are swallowed in empty catch blocks so the host application never sees the activity. The same fork also hardcodes the operator's own channel JID 120363191779210764@newsletter (name "Starlights Team") into lib/Socket/dugong.js and lib/Utils/messages.js, where it is stamped into forwardedNewsletterMessageInfo on messages the library sends, giving the payload an in-band promotion path. Separately, the package declares a preinstall hook pointing at a zero-byte engine-requirements.js, and the manifest's homepage/repository fields name a non-existent "github[.]com/@whiskeysockets/baileys" path while the package ships the byte layout of the upstream library. Indicators: hxxps://raw[.]githubusercontent[.]com/tskiofc/ChannelID/refs/heads/main/token.json (remote channel-ID feed); WhatsApp channel JID 120363191779210764@newsletter. No credential, token, env-var or file theft was found in the payload.

analyzed by
Leitwacht
first seen
Nov 9, 2026, 11:46 PM
analyzed
Nov 9, 2026, 11:51 PM

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.