@dinzid/bailstao@0.0.7
Malicious code in @dinzid/bailstao (npm)
Analysis
This package is a modified WhatsApp (Baileys) client library that silently manipulates the channel subscriptions of the account it is connected with. In lib/Socket/newsletter.js, makeNewsletterSocket() base64-decodes two hardcoded channel JIDs — 120363388739599619@newsletter and 120363186130999681@newsletter — and calls the WhatsApp newsletter FOLLOW mutation (QueryIds.FOLLOW) for each about five seconds after the socket is created, subscribing the user's account to channels the user never chose. The same module immediately starts a 10-second interval named "startSecurityPatrol" that runs the xwa2_newsletter_subscribed GraphQL query (query id 6388546374527196) against the WhatsApp WebSocket endpoint (wss://web[.]whatsapp[.]com/ws/chat) and automatically sends the UNFOLLOW mutation for any subscription matching one of 22 hardcoded channel JIDs listed in blacklistIds, repeatedly unsubscribing the user from channels the package author does not control. All of this runs from the library's normal socket-construction path, so it executes inside any bot that consumes the package, without the operator's knowledge or consent. The preinstall hook engine-requirements.js only prints a Node-version banner and exits when Node is below 20; it downloads and executes nothing. No environment variables, tokens, credential files or local data are read or transmitted by the package.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 09:04 AM
- analyzed
- Nov 15, 2026, 09:07 AM
- weekly installs
- 434
Related advisories
- @dinzid/bailstao@0.0.8 same package
- @dinzid/bailstaov1@0.1.0
- dsh-plugin-blender-3d@0.2.1
- grafeno-auth@1.0.0
- grafeno-logger@1.0.0
- grafeno-config@1.0.0
- grafeno-core@1.0.0
- grafeno-client@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.