{"id":"MAL-2026-20279","summary":"Malicious code in retry-utils-testmetest (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f0ca64d501c3b7cb6078a6e17deca6f52a201698a52ba20e025db67c466f8f31)\nThe package advertises itself as a lightweight retry utility but ships no library code consistent with that purpose. binding.gyp declares a stub target with no native sources (.c/.cc/.cpp) and uses GYP command-expansion syntax (`\u003c!(node index.js...)`) in an action, causing npm's automatic `node-gyp rebuild` to execute index.js at install time. index.js is a multi-layer obfuscated loader: a Caesar-shifted string is passed to eval; the decoded loader AES-128-GCM-decrypts an in-file blob (yielding a getBunPath helper), then AES-128-GCM-decrypts and brotli-decompresses lib_native.dat into a second-stage script, writes it to a temporary file, and spawns it. Execution is routed through the Bun runtime (via getBunPath()) rather than Node, evading Node-based install-time inspection. The ~319 KB lib_native.dat is named to masquerade as a native shared library but contains high-entropy AES-128-GCM ciphertext with no plaintext strings. The combination — stub binding.gyp with no native sources used only to trigger install-time execution, Caesar+AES+Brotli layered obfuscation, encrypted payload disguised as a native library, and alternate-runtime execution via Bun — is a dropper delivering attacker-controlled code to any machine that runs `npm install` on this package.\n","modified":"2026-11-20T02:30:07.909603710Z","published":"2026-11-20T02:09:09Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.3"],"id":"IN-MAL-2026-022916","import_time":"2026-11-20T02:16:22.938125416Z","modified_time":"2026-11-20T02:09:09Z","sha256":"f0ca64d501c3b7cb6078a6e17deca6f52a201698a52ba20e025db67c466f8f31","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/retry-utils-testmetest/v/1.0.3"}],"affected":[{"package":{"name":"retry-utils-testmetest","ecosystem":"npm","purl":"pkg:npm/retry-utils-testmetest"},"versions":["1.0.3"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/retry-utils-testmetest/MAL-2026-20279.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"binding.gyp","sha256":"174b6c9e614ba57ddd1e4ef2dd8207629617d4329ed6991e42e393b1f96dfada","tlsh":"7bc0c059302465739086016cd09fc40c80f3663b00fe1c904c4e9e641f3c2826cca31e"},{"sha256":"e90f017c3fdc4fcacbb6ae96f1cd3c52c1640aabc65508ab1bda95df759e07f5","tlsh":"dc6283626b8d1b6561880cf6b39d2503a5a0ec5f39b07b69ffd24597bd3d922bc20370","path":"index.js"},{"sha256":"333ff3334574aa6d0436260ca9c403bdf5b925995c2d3df8e568559ace5f1cf6","tlsh":"3d6423c5d68857b7dfa6e38c2f451cfdd292f709278a8383a5f5065d31f98ca2c1890a","path":"lib_native.dat"}],"package_integrity":[{"filename":"retry-utils-testmetest-1.0.3.tgz","hashes":{"sha1":"14d86df8f914aeadfdd18f846cc6d2acbac8d00f","sha512_sri":"sha512-REbfzTclqZ9mBT5OximTvG4nsJfuTZiEBJYwXkh2XtmPbs/NC4qBaPa3wI+pjOTANsphPkzA5ykg3Rk7UwY6Zw=="}}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}