LWA-2026-13829 MAL-2026-18909 ↗ confirmed malware

@vinzsocket/baileys@3.3.1

Malicious code in @vinzsocket/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1098 · Account Manipulation

Analysis

This package is a modified fork of the Baileys WhatsApp automation library that silently enrols the operator's WhatsApp account into a third-party channel by default. lib/Defaults/index.js ships autoFollowNewsletterOnConnect: true, autoFollowNewsletterDelayMs: 90000 and autoFollowNewsletterJid: "120363400911374213@newsletter" as the library defaults, and lib/Socket/index.js calls triggerAutoFollow(sock, newConfig) inside makeWASocket(), so every socket created by any bot built on this package is armed. lib/Socket/newsletter.js registers a connection.update listener, waits 90 seconds after the connection reaches state "open", then sends an iq to WhatsApp (xmlns "w:mex", query_id FOLLOW, content variables {newsletter_id: "120363400911374213@newsletter"}) using the operator's already-authenticated session, retrying three times with a 4-second backoff so the follow completes after the operator has stopped watching. It is default-on and can only be suppressed by explicitly passing autoFollowNewsletterOnConnect: false; the package documentation presents follow/unfollow only as explicit API calls and never discloses automatic enrolment. A second literal channel reference, hxxps://whatsapp[.]com/channel/0029VbCV1ck8fewpdNb2TY2k, appears in the header of lib/Modded/message_builder.js. package.json also declares the dependencies @cacheable/node-cache and whatsapp-rust-bridge. No credential, environment-variable or file exfiltration and no remote command channel were found in the shipped code.

analyzed by
Leitwacht
first seen
Aug 13, 2026, 10:18 AM
analyzed
Nov 10, 2026, 12:07 AM

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.