@jiancodes/baileys@2.0.6
Malicious code in @jiancodes/baileys (npm)
Analysis
This package is an unofficial republish of the Baileys WhatsApp Web library, distributed under a different scope while keeping the canonical package's basename, and it silently enrols the user's WhatsApp account into two hardcoded channels. At module load, lib/Socket/newsletter.js schedules a 90000 ms setTimeout that calls newsletterWMexQuery(..., QueryIds.FOLLOW) with a base64-encoded channel JID (120363399266188954@newsletter), then schedules a second follow of another base64 channel JID (120363402472932012@newsletter) after a further 5000 ms. Both calls are wrapped in empty try/catch blocks, so the subscription happens with no developer action and no visible error; any application that instantiates the library's socket subscribes its account to those channels. The package's preinstall hook, engine-requirements.js, only checks the Node.js major version. lib/Utils/generics.js fetches a version manifest from hxxps://raw.githubusercontent[.]com/kiuur/bails/master/src/Defaults/baileys-version.json rather than an official source, and the README loads an image from hxxps://uploader[.]zenzxz[.]dpdns[.]org. No access to registry tokens, cloud credentials, environment variables or credential files, and no command execution, were found in the shipped code.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:14 AM
- analyzed
- Nov 15, 2026, 09:17 AM
Related advisories
- @jiancodes/baileys@2.0.3 same package
- @jiancodes/baileys@2.0.5 same package
- @ravliesh/baileys@1.0.1
- @lubyzzxmods/baileys@2.0.4
- dct-baileys@1.0.1
- @dinzid/bailstaov1@0.1.0
- baileyssteam@7.0.0
- @dinzid/bailstao@0.0.7
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.