Is whoami-notifier malicious?
Yes. Protet confirmed 1 version of whoami-notifier as malicious
First confirmed on 2026-11-20.
Affected versions
| Version | Confirmed | Protet record |
|---|---|---|
| 1.0.0 | 2026-11-20 | PROTET-NPM-2026-258 |
What it does
whoami-notifier 1.0.0 declares a preinstall script (node --use-env-proxy preinstall.js) that runs automatically before npm install completes. The script runs the whoami command to read the name of the installing operating-system user and sends it in an HTTPS GET request to https://erhantest-erhan.free.beeceptor.com?user=<username>, a public mock-API endpoint controlled by the publisher, routing through any configured proxy. The package contains no other functionality: its entry point exports an empty object, and its own description states that it sends the current user to a remote URL before installation. It was published on 2026-11-20 by a new account with no other packages, without a source repository. Impact: every developer workstation or CI job that installs the package discloses the local username, its public IP address and the time of installation to a third party, and confirms that the publisher's code ran on that host. Remediation: remove the package, block the endpoint on build hosts, and treat hosts that installed it as having executed untrusted code.
Other reports
- Also reported in OSV as MAL-2026-20503
What to do if you installed it
- Remove the package from every project that uses it, directly or through another dependency.
- Pin a clean version if you need the package: one that is not listed above and that you have checked yourself, or replace the package. A version missing from this page is not cleared.
- Check your lockfiles (
package-lock.json,yarn.lock,pnpm-lock.yaml) for the affected versions, including as a transitive dependency, and in CI caches. - Rotate credentials that were reachable from any machine or build that installed it: npm and GitHub tokens, cloud keys, SSH keys, and secrets in environment variables or CI settings.
Status history
- 2026-11-20: 1.0.0 named by Protet Intel