@jexkcode/baileys@1.3.6
Malicious code in @jexkcode/baileys (npm)
Analysis
This package republishes the canonical "baileys" WhatsApp library under a non-canonical scope and silently subscribes every WhatsApp account that uses it to a hardcoded newsletter channel. lib/Utils/auto-follow.js hardcodes the channel identifier 120363405612723183@newsletter and, three seconds after each successful 'connection.update' / connection-open event, calls sock.newsletterFollow() on the authenticated socket, swallowing any error. The module is invoked unconditionally from makeWASocket in lib/Socket/index.js; it accepts the config object but never reads it, so there is no opt-out — any application using this package enrols its linked WhatsApp account into that channel without the operator's knowledge. The preinstall hook (engine-requirements.js) only checks the Node.js version. No other attacker-controlled network destination, credential, token, wallet or file access is present in the package: the subscription is performed over the WhatsApp protocol itself, so the only observable identifier is the channel JID 120363405612723183@newsletter.
- analyzed by
- Leitwacht
- first seen
- Nov 25, 2026, 09:36 AM
- analyzed
- Nov 25, 2026, 09:38 AM
- weekly installs
- 382
hxxps://github[.]com/jexkpinkman/JexkCode-baileys Request takedown / dispute →Related advisories
- @jexkcode/baileys@1.3.7 same package
- @jexkcode/baileys@1.3.8 same package
- @jexkcode/baileys@1.3.4 same package
- @jexkcode/baileys@1.3.5 same package
- @jexkcode/baileys@1.3.3 same package
- @jexkcode/baileys@1.3.2 same package
- @jexkcode/baileys@1.3.1 same package
- @zervonex/baileys@4.0.9
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.