@violetix/baileys@0.6.1
Malicious code in @violetix/baileys (npm)
Analysis
This package is a republished WhatsApp automation library shipped under an unofficial scope while presenting itself as a fork of the canonical @whiskeysockets/baileys library. Injected into lib/Socket/newsletter.js is a connection.update listener that, every time a client session reaches connection === 'open', silently issues a FOLLOW request (xwa2_newsletter_join_v2) for the hardcoded channel 120363417337256584@newsletter. The library's own API requires the caller to name a channel for any follow action, so this enrolment is not user-initiated: any application built on the package subscribes its WhatsApp account to that channel on login without prompting. The success handler then logs a different channel identifier, 120363203083379699@newsletter, so that anyone auditing logs is told a channel other than the one actually joined. No external command-and-control host is present: all traffic goes to WhatsApp's own service (whatsapp[.]net / s[.]whatsapp[.]net), and no credentials, tokens, environment variables or .npmrc contents are read or transmitted by the package. The only anomalous network behaviour is the unauthorized channel enrolment itself.
- analyzed by
- Leitwacht
- first seen
- Nov 13, 2026, 01:57 PM
- analyzed
- Nov 13, 2026, 02:30 PM
- weekly installs
- 1,017
Related advisories
- @violetix/baileys@0.5.7 same package
- @violetix/baileys@0.6.0 same package
- @violetix/baileys@0.5.5 same package
- @violetix/baileys@0.5.1 same package
- @zlynzee/baileys@1.0.5
- @barz-dev/baileys@8.4.0
- pearx93qja-notthedevs@1.1.8
- southern_duck_tan-16@2.4.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.