LWA-2026-14579 confirmed malware

reycode-baileys@2.0.3

Malicious code in reycode-baileys (npm)

T1098 · Account ManipulationT1071.001 · Web Protocols

Analysis

This package is a fork of the Baileys WhatsApp multi-device library with a hidden account-manipulation payload. lib/Socket/newsletter.js hardcodes four WhatsApp newsletter JIDs — 120363421096003443@newsletter, 120363416370859892@newsletter, 120363431275243639@newsletter and 120363412719371901@newsletter — and registers a 150000 ms timer inside the socket module so that, 150 seconds after any socket is created, it iterates the list and sends a wm:mex FOLLOW IQ (newsletterWMexQuery(jid, QueryIds.FOLLOW)) to each channel, pausing 5 seconds between each, then logs "newsletter follow request sent". The follow is unconditional, is not exposed as an option, and cannot be disabled by the integrating application; source comments describe it only in Indonesian ("Auto-follow aktif untuk pengguna library", "ReyCodeDGTL Newsletter"). The effect is that any WhatsApp account running a bot built on this library is silently subscribed to channels chosen by the package author. The package also pins its libsignal dependency to a GitHub commit, github:tenka-san/libsignal-node#105ad38dc8d7668b5d5e3688e710915bef5cdc7f, which is downloaded from codeload[.]github[.]com/tenka-san/libsignal-node/tar.gz/105ad38dc8d7668b5d5e3688e710915bef5cdc7f during install; its preinstall script (engine-requirements.js) only checks the Node.js major version.

analyzed by
Leitwacht
first seen
Nov 27, 2026, 02:21 PM
analyzed
Nov 27, 2026, 02:23 PM
npm package ↗ source repo (declared, defanged): hxxps://github[.]com/reycode-lt/ReyCodeBaileys Request takedown / dispute →

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.