Malicious package · npm
Malicious code in supun-bailey-vip (npm)
1.0.11.0.31.0.41.0.5No safe version. Remove it.What it does
supun-bailey-vip@1.0.5 is a fork of the Baileys WhatsApp library with two installer-side code-execution surfaces. First, lib/foundation/license.js embeds a ~1.5KB AES-256-CTR ciphertext and a hardcoded key; at module top level it decrypts the blob and executes the plaintext via new Function('crypto', 'return ' + plaintext)(crypto). The file is re-exported from lib/index.js, so the eval fires on any require/import of the package. The decrypted code is not shipped in source form and the surrounding identifiers are hex-mangled, with a header comment stating the file is encrypted against reverse engineering. Second, package.json pins the critical libsignal dependency to github:tenka-san/libsignal-node with no commit SHA and no tag, so npm install fetches whatever currently sits at HEAD of that personal, non-publisher GitHub repository and runs any lifecycle scripts it contains. Either path grants install- or import-time code execution on the installer's machine to the package author or to whoever controls the referenced GitHub account.
Reported by ghsa-malware Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
No fix · Remove and contain
npm uninstall supun-bailey-vipSources