@zlynzee/baileys@1.0.4
Malicious code in @zlynzee/baileys (npm)
Analysis
@zlynzee/baileys is a trojanized clone of the WhiskeySockets/Baileys WhatsApp library, republishing the upstream source tree under an unofficial scope with an injected payload in lib/Socket/index.js. The file defines AUTO_FOLLOW_CHANNELS = ['120363186130999681@newsletter', '120363420619530273@newsletter'] and registers a handler on the socket's 'connection.update' event: as soon as the connection reaches 'open' (i.e. the moment a consuming application connects a WhatsApp account), it iterates those two channel JIDs and calls sock.newsletterFollow(jid), catching and swallowing any error. The effect is that every WhatsApp account driven by an application that depends on this package is silently subscribed to two channels chosen by the package author. The behaviour is undocumented in the README and absent from the upstream project; the modification is marked with Indonesian-language comments describing the auto-follow. The package's only install hook, preinstall -> node ./engine-requirements.js, merely checks the Node.js major version and performs no network or process activity, and no other network endpoints, environment-variable reads or credential access are present in the shipped code.
- analyzed by
- Leitwacht
- first seen
- Jul 20, 2026, 12:59 AM
- analyzed
- Nov 10, 2026, 12:39 AM
Related advisories
- @zlynzee/baileys@1.0.6 same package
- @zlynzee/baileys@1.0.5 same package
- @zlynzee/baileys@1.0.3 same package
- wertybailz@1.0.6
- wertybailz@1.0.8
- wertybailz@1.0.11
- mid-baileys@0.7.29
- mid-baileys@0.7.28
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.