Skip to main content
Menu
Advisories

Malicious code in promise-retry-utils-testmetest (npm)

GHSA-CQ9C-M7G7-F925Published Updated GitHubMalware

Description

Source: amazon-inspector (741b012db178dab26fc3deb78a568ad8137a096b5da56e399eca35599e567c00)

package.json for promise-retry-utils-testmetest@1.0.1 declares a preinstall lifecycle hook that executes node setup.js on npm install. The package name is a typosquat-shaped variant of the widely used promise-retry utility family and has no apparent legitimate purpose for a preinstall step. The script runs automatically on installation before any consumer code is invoked, so any behavior in setup.js — including environment or credential reads, outbound network, or payload execution — fires on default install.

---

Credit: OpenSSF (source)

Affected versions

References