LWA-2026-14034 MAL-2026-18822 ↗ confirmed malware

@dinzid/bailstao@0.0.7

Malicious code in @dinzid/bailstao (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1071.001 · Web ProtocolsT1102 · Web ServiceT1053.003 · Cron

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

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.