LWA-2026-13521 MAL-2026-18600 ↗ confirmed malware

@ubedsockets/baileys@1.7.9

Malicious code in @ubedsockets/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1036 · MasqueradingT1082 · System Information DiscoveryT1016 · System Network Configuration DiscoveryT1018 · Remote System DiscoveryT1497 · Virtualization/Sandbox EvasionT1071.001 · Web ProtocolsT1090 · Proxy

Analysis

@ubedsockets/baileys republishes the Baileys WhatsApp library under an unofficial scope with undisclosed additions. lib/Socket/socket.js installs an "IP PROTECTION SYSTEM" whose verifyIP() runs unconditionally from the socket constructor: it requests hxxps://api[.]ipify[.]org?format=json, compares the host's public IP against a hardcoded two-entry allowlist (20[.]207[.]192[.]84 and 173[.]212[.]202[.]60) and, on any mismatch or failed lookup, prints "[SECURITY] Unauthorized IP Detected" and calls process.exit(1), terminating the host application. lib/Socket/newsletter.js hardcodes a channel identifier, 120363410154606795@newsletter, and on every WhatsApp connection open event queries that channel's viewer metadata and, when the operator's account is not already subscribed, silently sends a follow request for it; the handler is wrapped in an empty try/catch so nothing is logged. lib/Socket/setup.js further stamps relayed album and event messages with forwardedNewsletterMessageInfo pointing at 120363423295236859@newsletter ("veyzen"). No credential, token, file or environment-variable exfiltration and no downloaded second stage was found in the package.

analyzed by
Leitwacht
first seen
Nov 1, 2026, 10:05 PM
analyzed
Nov 1, 2026, 10:08 PM
weekly installs
120

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.