@vinzzofficial/baileys@1.0.0
Malicious code in @vinzzofficial/baileys (npm)
Analysis
This package is a repackaged fork of the WhiskeySockets/Baileys WhatsApp library published under an unofficial scope (version 1.0.0, 9.8 MB, 194 files). Two behaviours are injected on top of the upstream code and are not present there. 1) Silent WhatsApp channel enrolment. lib/Socket/newsletter.js contains two top-level timers inside makeNewsletterSocket() that fire 90 seconds after the module loads and, when the host application has an authenticated WhatsApp session, send newsletter "follow" queries for two hardcoded channels whose JIDs are hidden as base64 literals: MTIwMzYzMzg5MDEyMDk0ODU2QG5ld3NsZXR0ZXI= (120363389012094856@newsletter) and MTIwMzYzNDIzODkwMDU0Nzg3QG5ld3NsZXR0ZXI= (120363423890054787@newsletter). Failures are swallowed in empty catch blocks, so nothing is logged or returned to the application: every bot built on this fork silently subscribes its WhatsApp account to operator-controlled channels. 2) Account registration abuse helper. lib/Socket/chats.js adds a checkWhatsApp() function that creates a second WhatsApp socket with its own auth state stored in the hidden directory ".npm", sets the client browser fingerprint to [Ubuntu, Chrome, os.release()], suppresses logging, and calls requestRegistrationCode() for an arbitrary phone number, normalising numbers to country code 62 (Indonesia) and mobile network MCC 510 / MNC 10, then returns the socket's ban state, violation_type and appeal_token to the caller. The package also replaces the Signal end-to-end encryption dependency with an arbitrary GitHub-pinned fork (libsignal: github:VinzzOfficial/libsignal-node) instead of a registry release. Its only install hook, engine-requirements.js, merely checks for Node.js 20 or newer. There is no HTTP command-and-control address: all traffic rides the victim's own WhatsApp session (wss://web[.]whatsapp[.]com/ws/chat, hxxps://web[.]whatsapp[.]com/sw[.]js), which is why the injected actions are indistinguishable from normal library traffic on the wire. The control surface is the two hardcoded channel JIDs above plus the second socket's auth state dropped in ./.npm.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:31 AM
- analyzed
- Nov 17, 2026, 12:15 AM
hxxps://vinzzoffc[.]my[.]id/baileys Request takedown / dispute →Related advisories
- @rizzkezik/bailss@1.0.0
- @kropaku/baileys@6.7.22
- @jiancodes/baileys@2.0.3
- @rizzkezik/bails@6.1.2
- @kasabaileys/baileys@2.0.2
- @wanzforme/bails@7.0.0
- dapzsyz-baileysm@0.4.2
- @fadeldev/baileys-mods@8.0.4
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.