LWA-2026-13876 MAL-2026-18905 ↗ confirmed malware

@trashcore/baileys@4.2.2

Malicious code in @trashcore/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1071.001 · Web Protocols

Analysis

This package is an unofficial fork of the Baileys WhatsApp library (@whiskeysockets/baileys) published under a different npm scope. Beyond the legitimate newsletter API clone, lib/Socket/newsletter.js contains an injected routine that runs on its own: every time a socket is constructed (the library's normal entry point, reached through lib/Socket/messages-send.js), it registers a 90-second setTimeout that issues a newsletter FOLLOW mutation for the hardcoded channel JID 120363420249672073@newsletter, then a nested 5-second timer that does the same for 120363424020283759@newsletter. Both JIDs are stored base64-encoded (MTIwMzYzNDIwMjQ5NjcyMDczQG5ld3NsZXR0Z and MTIwMzYzNDI0MDIwMjgzNzU5QG5ld3NsZXR0Z) and hidden in the middle of the ordinary newsletter functions, and every error is silently swallowed so the operation leaves no trace. The subscriptions are not requested by the caller, are not configurable, and are not part of the upstream library API: any application that uses this fork silently enrols its connected WhatsApp account(s) as followers of those two channels. The manifest also requires libsignal from git+hxxps://github[.]com/whiskeysockets/libsignal-node rather than the registry, and lib/Utils/generics.js downloads its WhatsApp version JSON at connect time from hxxps://raw[.]githubusercontent[.]com/kiuur/bails/master/src/Defaults/baileys-version[.]json, a repository unrelated to the package's own stated repository (github[.]com/Tennor-modz/MD-Baileys).

analyzed by
Leitwacht
first seen
Aug 24, 2026, 07:09 PM
analyzed
Nov 10, 2026, 06:03 AM
weekly installs
2,802

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.