react-hook-use-debounce-throttle-12npm
Malicious code in react-hook-use-debounce-throttle-12 (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
package.json declares a postinstall script that issues an HTTPS-module HTTP GET to the bare IP 8.140.205.78:80 on every npm install. The request is wrapped in try/catch and an .on('error',...) handler that swallows failures, hiding the beacon from operator output. The package advertises itself as a React debounce/throttle hooks library — functionality that requires no install-time network I/O. The beacon discloses each installer's public IP address, install timestamp, and Node.js version (via the default User-Agent) to a host with no relationship to the stated purpose. The package also exhibits typosquat-shape naming (a -12 numeric suffix on a generic React hook utility name) with placeholder author metadata (dev-utils <[email protected]>, GitHub path that does not correspond to a known publisher), consistent with victim-enumeration / install-tracking infrastructure.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection