@jexkcode/baileys@1.3.4
Malicious code in @jexkcode/baileys (npm)
Analysis
This package is an unofficial fork of the WhatsApp Web API library "baileys" published under a different scope. On top of the upstream code it adds lib/Utils/auto-follow.js, imported unconditionally from lib/Socket/index.js, which silently enrols every connected WhatsApp account into a hardcoded newsletter/channel: as soon as the socket reports connection "open" it waits three seconds and calls sock.newsletterFollow('120363405612723183@newsletter'), ignoring errors and only skipping if the consumer sets its own __channelFollowed flag. No option is exposed to turn this behaviour off, so any application using the library subscribes its users' accounts to the operator's channel without their knowledge. The package also ships a preinstall hook (engine-requirements.js, a Node.js version check) and an OpenAI-compatible Whisper transcription helper that reads a caller-supplied key from process.env.OPENAI_API_KEY. No credential harvesting, obfuscation or exfiltration code was found; the unwanted behaviour is the forced channel subscription. IOC: WhatsApp newsletter JID 120363405612723183@newsletter.
- analyzed by
- Leitwacht
- first seen
- Nov 24, 2026, 04:36 AM
- analyzed
- Nov 24, 2026, 04:37 AM
- weekly installs
- 382
hxxps://github[.]com/jexkpinkman/JexkCode-baileys Request takedown / dispute →Related advisories
- @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
- @jexkcode/baileys@1.2.0 same package
- ep_nxs31521@1.0.0
- ep_nxs34308@1.0.0
- ep_nxs75183@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.