@kropaku/baileys@6.7.22
Malicious code in @kropaku/baileys (npm)
Analysis
This package is an unofficial republished fork of the Baileys WhatsApp library that silently enrols the connected WhatsApp account into the author's channel and gates the library behind a remote license check. In lib/Socket/newsletter.js a module-load timer waits 120000 ms and then sends a WhatsApp W:mex query with QueryIds.FOLLOW for the hardcoded channel JID 120363407277177688@newsletter, wrapping the call in empty catch blocks so the follow attempt is invisible to the caller. lib/Socket/index.js (makeWASocket) requires a license key taken from config.licenseKey, process.env.KRISPEDIA_LICENSE or global.licenseKey, sends that key as a query parameter to hxxps://krispedia-license-api[.]vercel[.]app/api/verify (endpoint overridable via process.env.LICENSE_SERVER_URL), and calls process.exit(1) when the key is missing or rejected; two hardcoded master keys, "KRP-DEV-MASTER-2026" and "KRP-VIP-DEMO1", bypass the remote check. The license logic ships as javascript-obfuscator output (lib/Utils/license-guard.js, base64/rot decoder string array) with its unobfuscated source also included as lib/Utils/license-guard.src.js. A preinstall hook runs engine-requirements.js, a Node >=20 version check. IOCs: WhatsApp channel JID 120363407277177688@newsletter, license host krispedia-license-api[.]vercel[.]app, path /api/verify, env vars KRISPEDIA_LICENSE and LICENSE_SERVER_URL.
- analyzed by
- Leitwacht
- first seen
- Nov 16, 2026, 01:33 PM
- analyzed
- Nov 16, 2026, 01:40 PM
Related advisories
- @prototypevip/baileys@0.1.6
- cbc97b7a@1.1787999998.0
- mutex-thread@1.3.0
- osinthell@1.9.5
- super-test-json@1.2.0
- @jiancodes/baileys@2.0.3
- @rizzkezik/bails@6.1.2
- @kasabaileys/baileys@2.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.