Skip to main content
MalwarePublished

rpc-endpoint-rotator (npm) · Malicious Code

Affects rpc-endpoint-rotatorSource GCVE Database

0

Malicious package : remove rpc-endpoint-rotator and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 17:19 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12431

What to do

Remove rpc-endpoint-rotator from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmrpc-endpoint-rotatorAffected
  • =1.0.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package 'rpc-endpoint-rotator' version 1.0.0 contains malicious code that, upon being required, unconditionally sends a POST request to an external URL. This request transmits the entire process environment variables along with OS hostname, username, and home directory information. The malicious behavior is hidden behind legitimate-looking exported helpers, and the code is described as a hidden periodic environment data beacon. This exfiltration can leak sensitive credentials such as cloud keys, CI tokens, and provider secrets present in the environment.

References

Community reviews

Loading reviews…