@denzz221/baileys@8.1.7
Malicious code in @denzz221/baileys (npm)
Analysis
@denzz221/baileys is a repackaged copy of the @whiskeysockets/baileys WhatsApp library with code injected into lib/Socket/newsletter.js. Inside makeNewsletterSocket(), a 90-second timer (setTimeout ..., 90000) is scheduled that fires a wmex "FOLLOW" query for the hardcoded channel 120363400780200098@newsletter; errors are swallowed in an empty catch, so any application constructing the newsletter socket silently enrols the connected WhatsApp account into that channel with no user action and no log entry. The 90-second delay is long enough to sit outside a normal startup window. The package also repoints the libsignal dependency to a non-registry git source (git+hxxps://github[.]com/denzz221/libsignal-node[.]git) and its dev dependency @adiwajshing/eslint-config to git+hxxps://github[.]com/denzz221/eslint-config[.]git; its preinstall hook runs engine-requirements.js, which only checks that Node.js is version 20 or newer. Additional hardcoded newsletter identifiers appear as forwarded-message metadata in lib/Utils/messages.js (120363420249672073@newsletter, named "kyuu ilysm") and lib/Socket/dugong.js (120363297591152843@newsletter, named "shenvn.").
- analyzed by
- Leitwacht
- first seen
- Nov 5, 2026, 05:24 AM
- analyzed
- Nov 5, 2026, 05:32 AM
- weekly installs
- 223
Related advisories
- @denzz221/baileys@8.0.5 same package
- @denzz221/baileys@8.0.8 same package
- @denzz221/baileys@8.1.3 same package
- @denzz221/baileys@8.1.5 same package
- @denzz221/baileys@8.1.1 same package
- @denzz221/baileys@7.0.0 same package
- mock-datas-lib@1.0.1
- tavern-ai-sdk@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.