@arkanhahaha/baileys@1.0.0
Malicious code in @arkanhahaha/baileys (npm)
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
- @alzx7z/baileys@2.0.6
- @aboutdisz/baileys@1.0.0
- @swirls/cli@0.1.146
- @yuanjielab/cli@0.9.0
- neun-by-neun@0.1.0
- charape@1.0.4
- @denzz221/baileys@8.1.7
- @monze1239/baileys@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.