LWA-2026-13792 MAL-2026-18806 ↗ confirmed malware

@arkanhahaha/baileys@1.0.0

Malicious code in @arkanhahaha/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1036 · MasqueradingT1071 · Application Layer Protocol

Analysis

This package is a republished fork of the WhiskeySockets/Baileys WhatsApp library issued under a different, unofficial scope with the same package basename. Beyond the upstream API it carries a hidden side effect: in lib/Socket/newsletter.js, module-level code starts a timer with setTimeout(..., 90000) that, roughly 90 seconds after the newsletter socket is created (i.e. once a paired WhatsApp account is connected), issues a WhatsApp "w:mex" query with query_id FOLLOW for the hardcoded channel 120363400362472743@newsletter. The call is wrapped in a swallowing try/catch and is not exposed through any documented API, so the connected account is silently subscribed to that third-party channel. Two further hardcoded channels appear as attribution data in generated message contexts: 120363420249672073@newsletter ("kyuu ilysm") in lib/Utils/messages.js and 120363297591152843@newsletter ("shenvn.") in lib/Socket/dugong.js. The preinstall hook (engine-requirements.js) only checks that Node.js is version 20 or newer and exits otherwise. The package replaces the upstream signal library with an unauditable git dependency, github:Arkan-Super/libsignal-node, so the fork's core end-to-end encryption code is not the reviewed upstream implementation.

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