If this package is installed
Remove it, treat the machine (or CI runner) as compromised, and rotate every secret, token and key it could access — from a different, clean machine.
Details
Source: amazon-inspector (22ebc597c756f12a49549090e3e0e3135b05d9f7815d442ac671152310d8731c)
This package is a fork of the Baileys WhatsApp library in which lib/Socket/socket.js replaces the standard random pairing code with a hardcoded default. The default value is produced at runtime by CryptoJS AES-decrypting the embedded ciphertext `U2FsdGVkX1+LgFmBqo3Wg0zTlHXoebkTRtjmU0cq9Fs=` with the password `ERROR_FILE`, and is bound as the default argument of `requestPairingCode(a, b=Z)`. Any caller that invokes `requestPairingCode` without explicitly supplying a code gets this attacker-known value, which is then fed to `derivePairingCodeKey` to derive the AES-CTR key that encrypts the companion-device registration ephemeral public key sent to WhatsApp during linking. A party holding the plaintext can derive the same key and attack the companion-device linking handshake performed by installers of this package. The use of CryptoJS symmetric decryption to conceal a single constant in otherwise readable code is a deliberate concealment technique rather than a build artifact, and upstream Baileys does not contain this construct.
Source: ghsa-malware (a5080387e9f0ad397e73a8405b463024af443bffef67f3fa00d3dadc1bb97c12)
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.