LWA-2026-14108 MAL-2026-18857 ↗ confirmed malware

@kurtucoben/cstm-bail@1.0.0

Malicious code in @kurtucoben/cstm-bail (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1027 · Obfuscated Files or InformationT1102 · Web ServiceT1648 · Serverless Execution

Analysis

This package is a modified fork of the WhatsApp Web library baileys that covertly makes the installing user's WhatsApp account follow a specific channel. The payload is in lib/Socket/newsletter.js inside makeNewsletterSocket(): a timer set to 90 seconds calls newsletterWMexQuery with QueryIds.FOLLOW against a base64-hidden channel JID ("MTIwMzYzNDAxOTY3ODg1MjM2QG5ld3NsZXR0ZXI=", decoding to 120363401967885236@newsletter), and repeats the same follow request 5 seconds later. The function is instantiated from lib/Socket/messages-send.js, so the follow fires as soon as the library is used, without the caller requesting it; the 90-second delay places the action after install-time inspection. The same channel JID and display name are hardcoded as forwarded-newsletter metadata in lib/Utils/messages.js and lib/Socket/dugong.js. lib/index.js additionally executes a base64 blob via eval(Buffer.from(...,'base64').toString()), which only prints a chalk/figlet banner. The preinstall hook (engine-requirements.js) merely enforces Node.js 20+. No network destination other than web[.]whatsapp[.]com is contacted, and the package does not read tokens, environment variables, .npmrc, SSH keys or other credential files.

analyzed by
Leitwacht
first seen
Nov 15, 2026, 10:00 AM
analyzed
Nov 16, 2026, 12:06 AM
weekly installs
236

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.