@kurtucoben/cstm-bail@1.0.0
Malicious code in @kurtucoben/cstm-bail (npm)
Analysis
This package is a modified fork of the WhatsApp Web library baileys that covertly makes the installing user's WhatsApp account follow a specific channel. The payload is in lib/Socket/newsletter.js inside makeNewsletterSocket(): a timer set to 90 seconds calls newsletterWMexQuery with QueryIds.FOLLOW against a base64-hidden channel JID ("MTIwMzYzNDAxOTY3ODg1MjM2QG5ld3NsZXR0ZXI=", decoding to 120363401967885236@newsletter), and repeats the same follow request 5 seconds later. The function is instantiated from lib/Socket/messages-send.js, so the follow fires as soon as the library is used, without the caller requesting it; the 90-second delay places the action after install-time inspection. The same channel JID and display name are hardcoded as forwarded-newsletter metadata in lib/Utils/messages.js and lib/Socket/dugong.js. lib/index.js additionally executes a base64 blob via eval(Buffer.from(...,'base64').toString()), which only prints a chalk/figlet banner. The preinstall hook (engine-requirements.js) merely enforces Node.js 20+. No network destination other than web[.]whatsapp[.]com is contacted, and the package does not read tokens, environment variables, .npmrc, SSH keys or other credential files.
- analyzed by
- Leitwacht
- first seen
- Nov 15, 2026, 10:00 AM
- analyzed
- Nov 16, 2026, 12:06 AM
- weekly installs
- 236
Related advisories
- @dinzid/bailstao@0.0.8
- raiden-baileys@2.2.4
- dct-baileys@1.0.1
- @dinzid/bailstaov1@0.1.0
- baileys-new-dtz@1.0.0
- dct-dula-dev-baileys@1.0.5
- @devil-fight/baileys@1.0.7
- dct-dula-dev-baileys@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.