@alannxds/baileys@6.2.11
Malicious code in @alannxds/baileys (npm)
Analysis
This package is a republished fork of the WhatsApp Web library Baileys published under the @alannxds scope while its README, badges and LICENSE reference the canonical @whiskeysockets/baileys project, so installers get a look-alike name rather than the upstream package. Its dependency manifest declares cache-manager ^7.2.8, a range that resolves to cache-manager 7.2.10 — the compromised release of that package — so a normal install pulls the malicious code in as a transitive dependency. The package also carries a preinstall hook (node ./engine-requirements.js, which only checks the Node major version), and importing the module entry point lib/index.js immediately performs an outbound request to hxxps://raw[.]githubusercontent[.]com/alannzxd/xclient/refs/heads/main/information[.]json, a repository controlled by the fork's author rather than any Baileys upstream, and prints the returned content to the console while advertising a Telegram contact (t[.]me/alannxd) and a WhatsApp channel. The library code bundles the full Baileys protocol stack plus extra message helpers in lib/Socket/luxu.js that stamp messages with a hardcoded forwarded-newsletter identity (newsletterJid "0@newsletter", newsletterName "WhatsApp", senderName "AlannXD", forwardingScore 99999), making relayed messages appear to originate from a WhatsApp update card.
- analyzed by
- Leitwacht
- first seen
- Oct 27, 2026, 07:16 AM
- analyzed
- Oct 27, 2026, 11:09 AM
- weekly installs
- 383
hxxps://www[.]npmjs[.]com/package/@alannxds/baileys Request takedown / dispute →Related advisories
- @alannxds/baileys@6.2.12 same package
- @alannxds/baileys@6.2.13 same package
- u-paging@0.0.0
- @rizzkezik/bailss@1.0.0
- @kyynotdevv/baileys@2.0.4
- @ikyybella/baileys@1.0.0
- @iobandamwer/cache-helper@1.0.2
- @iobandamwer/cache-helper@1.0.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.