MAL-2026-20278: Malicious code in promise-retry-utils-testmetest (npm)
--- -= Per source details. Do not edit below this line.=-
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this package?
Any environment that installs promise-retry-utils-testmetest version 1.0.1 with npm is exposed, including build systems and developer workstations. The preinstall hook runs before consumer code is invoked.
What triggers the malicious behavior?
Installing the package triggers its declared preinstall lifecycle hook, which executes node setup.js. No application use or explicit invocation of the package is required.
Are default npm installations affected?
Yes. The hook is configured to run during npm install, so it executes as part of the normal installation process.
What should teams do if they find this dependency?
Remove promise-retry-utils-testmetest from dependencies and prevent it from being installed. Treat systems that installed version 1.0.1 as potentially exposed because setup.js may have run during installation.