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

@darling-2002/baileys@2.8.9

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

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1071.001 · Web ProtocolsT1105 · Ingress Tool TransferT1102 · Web Service

Analysis

This package is an unofficial fork of the WhatsApp library @whiskeysockets/baileys republished with an added scope as @darling-2002/baileys (its package.json author field claims "Socket Team" and its repository URL is the malformed hxxps://github[.]com/@whiskeysockets/baileys[.]git). It carries a hidden inject in lib/Socket/newsletter.js: as soon as the module is loaded, a bare `setTimeout(async () => {...}, 120000)` is scheduled, and two minutes later it fetches a JSON array of WhatsApp channel IDs from hxxps://raw[.]githubusercontent[.]com/tskiofc/ChannelID/refs/heads/main/token[.]json and issues the library's internal newsletter FOLLOW query for each ID in turn, spaced 11 seconds apart, swallowing every error in empty catch blocks. Because the channel list lives on a remote, operator-controlled URL it can be changed at will, so any application using this package silently enrols its WhatsApp account into attacker-chosen channels to inflate their follower counts — with no user consent and deliberately delayed past startup so it is not noticed. A related remote dependency in lib/Utils/generics.js (fetchLatestBaileysVersion) downloads a protocol version file from hxxps://raw[.]githubusercontent[.]com/kiuur/bails/master/src/Defaults/baileys-version[.]json. The package contains no credential, token, .npmrc, SSH key or file-content exfiltration; the installer's secrets are not collected. A preinstall hook, `node ./engine-requirements.js`, points at an empty file and does nothing.

analyzed by
Leitwacht
first seen
Nov 9, 2026, 11:47 PM
analyzed
Nov 9, 2026, 11:50 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.