Malicious package · npm
Malicious code in whoami-notifier (npm)
1.0.0No safe version. Remove it.What it does
The package's preinstall.js lifecycle script executes whoami via child_process.execSync and sends the captured OS username to the hardcoded endpoint https://erhantest-erhan.free.beeceptor.com via an HTTPS GET with the username in the query string. This runs automatically on npm install before any user code executes. Beeceptor is a third-party request-inspection service; the subdomain is an anonymous tenant unrelated to any legitimate publisher. The package has no documented purpose that would justify transmitting the installer's identity to this destination.
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 whoami-notifierSources