LWA-2026-13828 MAL-2026-18900 ↗ confirmed malware

@skycodee/baileys@8.0.15

Malicious code in @skycodee/baileys (npm)

T1195.002 · Compromise Software Supply ChainT1027 · Obfuscated Files or InformationT1497.003 · Time Based EvasionT1071.001 · Web ProtocolsT1105 · Ingress Tool TransferT1565 · Data Manipulation

Analysis

This package is a trojanized clone of @whiskeysockets/baileys published under the scope @skycodee: the legitimate Baileys source tree is republished with added code that silently forces the installing user's own WhatsApp account to subscribe to third-party channels. On connection the socket fetches remote configuration and queries newsletter IDs without the user's knowledge: - lib/Utils/messages-media.js exports loadBase(), which builds a URL from a base64 literal ("aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tLy4uL2lkQ2hhbm5lbC5qc29u") resolving to hxxps://raw[.]githubusercontent[.]com/skyzopedia/Screaper/refs/heads/main/idChannel[.]json, fetches the list, then calls the follow operation on each newsletter ID with a 5s pause between calls, inside an 80-second timer. - lib/Socket/socket.js defines socketConnect(), which rebuilds a URL via String.fromCharCode over a decimal char-code array resolving to hxxps://raw[.]github[.]com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push[.]json, fetches that list and sends a "w:mex" IQ query (query_id 7871414976211147, variables.newsletter_id) for each entry inside a 200-second timer. It is invoked right after the WhatsApp handshake in the connect path. - lib/Socket/newsletter.js invokes loadBase() on the newsletter subsystem and exposes the follow/unfollow wrappers the payload drives. The fork also injects an operator-owned channel into user traffic: in lib/Utils/messages.js, prepareMediaMessage builds a default Message.annotations block containing newsletterJid "120363409159786018@newsletter" with newsletterName "skyzopedia", so outgoing media messages carry a reference to that channel when the caller supplied no annotations. The tampering is visible in editor-backup leftovers that were shipped in the tarball: lib/Socket/Client/websocket.js.bak still contains "this.socket.newsletterFollow(\"120363302042233203@newsletter\")" inside connect(), which was replaced in the live lib/Socket/Client/websocket.js; lib/Types/Newsletter.js.bak is the matching backup of an edited type file. The package also declares a runtime dependency on @skycodee/libsignal (a fork of libsignal published under the same scope), so installing it pulls that separately flagged package into the dependency tree.

analyzed by
Leitwacht
first seen
Jul 14, 2026, 03:51 PM
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.