@finzzcloud/baileys@1.0.0
Malicious code in @finzzcloud/baileys (npm)
Analysis
This package is a forked copy of the Baileys WhatsApp Web API library with an injected module that silently subscribes the connecting user's WhatsApp account to attacker-chosen channels. In lib/Utils/messages-media.js an added function `loadBase()` is wired into lib/Socket/newsletter.js and called when the socket is created. It waits 80 seconds, reads the account JID, base64-decodes the embedded URL hxxps://ch-finzzcloud[.]vercel[.]app/lyyn (override via the BAILEYS_CH_LIST_URL environment variable) and fetches a JSON array of channel ids; for every entry ending in "@newsletter" it issues a FOLLOW query with a 5-second gap, so each new or reconnecting session signs itself up to those channels. The behaviour is on by default and only skipped when BAILEYS_AUTO_FOLLOW is set to "off"; failed runs are retried on the next reconnect. The package also ships an unnecessary git dependency (github:whiskeysockets/eslint-config) and loose "*" version ranges, and includes stray editor-backup files (lib/Defaults/index.js.bak, lib/Socket/Client/websocket.js.bak, lib/Types/Newsletter.js.bak). Its Signal layer imports @skycodee/libsignal and it also depends on @cacheable/node-cache, both of which are previously identified malicious packages. IOC: hxxps://ch-finzzcloud[.]vercel[.]app/lyyn
- analyzed by
- Leitwacht
- first seen
- Nov 2, 2026, 06:20 PM
- analyzed
- Nov 2, 2026, 06:22 PM
Related advisories
- character-ai-sdk@1.0.1
- sauruspro-bail@5.0.1
- @dcloude/baileys@0.1.2
- persona-ai-sdk@1.0.0
- @ifasn/mdd-doc-mcp@2.0.6
- tavern-ai-sdk@1.0.0
- claims-acct-unlock@25.2.1
- dependencykfeg@25.1.9
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.