@ubedsockets/baileys@1.7.9
Malicious code in @ubedsockets/baileys (npm)
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
- @ubedsockets/baileys@1.4.0 same package
- @ubedsockets/baileys@1.6.7 same package
- @ubedsockets/baileys@1.6.4 same package
- @ubedsockets/baileys@1.6.3 same package
- @ubedsockets/baileys@1.6.2 same package
- @ubedsockets/baileys@1.6.1 same package
- @ubedsockets/baileys@1.5.0 same package
- gpt-terminal-cli@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.