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

@trashcore/baileys@4.1.7

Malicious code in @trashcore/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1078 · Valid Accounts

Analysis

This package is a modified WhatsApp library ("MD-Baileys") that ships hidden code which silently subscribes the installer's WhatsApp account to channels controlled by the package author. On creation of a newsletter-capable socket, lib/Socket/newsletter.js schedules a 90-second timer (followed by a second 5-second timer) that issues w:mex FOLLOW queries for two hardcoded channel JIDs that are stored base64-encoded to keep them out of plain-text inspection: 120363420249672073@newsletter and 120363424020283759@newsletter. The calls are wrapped in empty catch blocks so the victim's application never learns they happened, and the 90-second wait keeps the action away from start-up. The package also injects a non-upstream 23KB module, lib/Socket/luxu.js, required from lib/Socket/messages-send.js, which builds payment-request, product and interactive message payloads with hardcoded "[account]" business sender fields, giving a caller mass payment-request spam primitives. Nothing in the package documents or exposes these actions to the installer; they run against the installer's own authenticated session. No C2 infrastructure is used — the payload's only network destination is WhatsApp itself (wss://web[.]whatsapp[.]com/ws/chat), which is what makes it hard to spot from traffic alone.

analyzed by
Leitwacht
first seen
Nov 10, 2026, 12:16 AM
analyzed
Nov 10, 2026, 05:59 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.