Malicious package · npm
Malicious code in supunmd-baileys (npm)
0.0.1No safe version. Remove it.What it does
package.json declares dependencies.libsignal as github:tenka-san/libsignal-node with no commit SHA, tag, or integrity hash. On npm install, this resolves to whatever the default branch of that personal-user repository contains at the moment of install, and any lifecycle scripts inside the fetched tree execute on the installer's machine. The dependency source is off-registry, unpinned, and controlled by a third-party user account unrelated to the npm publisher, so the content delivered to installers can change arbitrarily after this package version is published without any change to this package itself. This is a dependency-source hijack surface: control of that GitHub account, a repo rename, or a branch force-push is sufficient to execute attacker-controlled code on every installer of this package.
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 supunmd-baileysSources