{"id":"MAL-2026-20278","summary":"Malicious code in promise-retry-utils-testmetest (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (741b012db178dab26fc3deb78a568ad8137a096b5da56e399eca35599e567c00)\npackage.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.\n","modified":"2026-11-20T02:30:08.768069670Z","published":"2026-11-20T02:09:16Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-022917","import_time":"2026-11-20T02:16:22.978717125Z","modified_time":"2026-11-20T02:09:16Z","sha256":"741b012db178dab26fc3deb78a568ad8137a096b5da56e399eca35599e567c00","source":"amazon-inspector","versions":["1.0.1"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/promise-retry-utils-testmetest/v/1.0.1"}],"affected":[{"package":{"name":"promise-retry-utils-testmetest","ecosystem":"npm","purl":"pkg:npm/promise-retry-utils-testmetest"},"versions":["1.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/promise-retry-utils-testmetest/MAL-2026-20278.json","indicators":{"package_integrity":[{"filename":"promise-retry-utils-testmetest-1.0.1.tgz","hashes":{"sha512_sri":"sha512-qJV77dfe4tXVAr9UP5Q5vCJqTd/BbYuxC15GLeOtqlOj9i17uPC/7qTmNWD4qHiDbwKh96T8qTDfKzEDgWSINw==","sha1":"f04f68181445890502be9385fafb1aceb6e3c24e"}}],"evidence_files":[{"tlsh":"7bd012358f23a42320c46a773a7b954756664d5a0114bc142793211849da7fa68bb21e","path":"package.json","sha256":"1cf318b0195379b5ac88843e4008ee091b6ea6f998436fae256f2cdff4d129fa"}]},"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}