reycode-baileys@2.0.3
Malicious code in reycode-baileys (npm)
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
hxxps://github[.]com/reycode-lt/ReyCodeBaileys Request takedown / dispute →Related advisories
- reycode-baileys@2.0.2 same package
- reycode-baileys@2.0.1 same package
- nishiki-bail@1.1.21
- @dekzypedia/baileys@7.0.0-dekzy.3
- sanka-baileyss@2.6.5
- nakano-baileys@1.0.9
- ceaser-baileys@3.4.15
- nakano-baileys@1.0.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.