LWA-2026-13793 MAL-2026-18807 ↗ confirmed malware

@baileys-md/baileys@12.2.0

Malicious code in @baileys-md/baileys (npm)

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

Analysis

This package is an unofficial fork of the WhatsApp Web library @whiskeysockets/baileys, published under a different scope (@baileys-md/baileys) whose keywords repeat the upstream package name. It ships a hidden subscriber-enrolment routine in lib/Socket/newsletter.js: an anonymous async function runs inside makeNewsletterSocket, waits 80,000 ms, then sends WhatsApp w:mex newsletter FOLLOW queries for two hardcoded channels, 120363419781122699@newsletter and 120363388692253922@newsletter, with all errors swallowed. Any application built on this fork therefore silently subscribes the logged-in WhatsApp account to those two channels roughly 80 seconds after a socket connects, with no user action or visibility. The manifest additionally declares cache-manager ^7.2.8 (resolving to 7.2.10) and aliases libsignal-xeuka to the non-existent @shennmine/libsignal-node@2.0.1, a scoped dependency name that can be claimed later to hijack installs. There are no install/lifecycle scripts, no credential or environment reads, and no obfuscation; the only process execution is a conventional ffmpeg thumbnail command in lib/Utils/messages-media.js.

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