@zlynzee/baileys@1.0.5
Malicious code in @zlynzee/baileys (npm)
Analysis
This package is a repackaged copy of the WhatsApp Web library Baileys (upstream project @whiskeysockets/baileys) carrying an injected auto-follow payload. The rest of the tree matches upstream (README, protobuf statics, socket/message modules), but lib/Socket/index.js has been rewritten to wrap makeWASocket: it registers a `connection.update` listener and, every time a connection reaches the `open` state, loops over a hardcoded list of WhatsApp channel JIDs — 120363186130999681@newsletter and 120363420619530273@newsletter — calling `sock.newsletterFollow(jid)` on each, with errors silently swallowed. The result is that any application importing this package silently subscribes the linked WhatsApp account to those two channels on every successful connection, with no configuration flag, no opt-out and no mention in the package metadata or documentation. Upstream Baileys contains no auto-follow logic or channel constants. The package's manifest points at the upstream WhiskeySockets repository and author while the code is published under a different scope, so installers receive modified code believing it is the upstream library. The single lifecycle hook (preinstall: `node ./engine-requirements.js`) only checks the Node.js major version and exits for Node < 20. No outbound HTTP C2, webhook, or credential/secret harvesting was found in the tree; the injected behaviour is the forced channel enrolment performed over the normal WhatsApp Web channel.
- analyzed by
- Leitwacht
- first seen
- Jul 20, 2026, 12:59 AM
- analyzed
- Nov 10, 2026, 12:36 AM
Related advisories
- @zlynzee/baileys@1.0.4 same package
- @zlynzee/baileys@1.0.6 same package
- @zlynzee/baileys@1.0.3 same package
- @barz-dev/baileys@8.4.0
- pearx93qja-notthedevs@1.1.8
- southern_duck_tan-16@2.4.3
- char-ai-sdk@1.0.0
- unbig.js@6.2.13
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.