{"schema_version":"1.9.2","id":"MAL-2026-18341","published":"2026-10-27T15:49:52Z","modified":"2026-10-29T13:48:10.670012134Z","aliases":["GHSA-32g3-f74c-pcxq"],"summary":"Malicious code in macro-kernel-record-reader (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f9ab8754c7e4e3a0a8c6ffd0c1980bbd81bd002c90ebccbbc275df296dfeddf9)\npackage.json declares its sole dependency `cache-locale-runner-writer` as an arbitrary HTTPS tarball URL (`https://artifacts.creditslib.com/npm/cache-locale-runner-writer`) instead of a registry version range. On `npm install`, npm fetches whatever bytes that URL serves and installs them, with no version pin, no integrity hash, and no signature check. Any lifecycle scripts in the fetched tarball run on the installer's machine, and the shipped `index.js` is a thin stub that re-exports the fetched dependency, so `require()` of this package loads the off-registry code at runtime as well. The host `artifacts.creditslib.com` is unrelated to the declared repository and is fully controlled by whoever operates it, who can serve different bytes to different installers or change the payload at any time.\n\n## Source: ghsa-malware (5a821a18c84775371c80e1780152b05963b6223cc9e8f2e2e48ccf8ad7803c52)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"macro-kernel-record-reader","ecosystem":"npm","purl":"pkg:npm/macro-kernel-record-reader"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"4608b9417d54a3d0d118a58bf0b33fc08f9565a8807d1a61866ad04067ac7f3d","tlsh":"3ce02232d6a5a97357d84ee49c36544262222c07920cae6857c303acc59eafb65fca2d"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/macro-kernel-record-reader/MAL-2026-18341.json"}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-32g3-f74c-pcxq"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/macro-kernel-record-reader/v/1.0.0"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-32g3-f74c-pcxq","import_time":"2026-10-27T16:23:53.294203503Z","modified_time":"2026-10-27T15:49:53Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"5a821a18c84775371c80e1780152b05963b6223cc9e8f2e2e48ccf8ad7803c52","source":"ghsa-malware"},{"id":"IN-MAL-2026-021867","import_time":"2026-10-29T13:37:13.972488964Z","modified_time":"2026-10-29T13:18:27Z","sha256":"f9ab8754c7e4e3a0a8c6ffd0c1980bbd81bd002c90ebccbbc275df296dfeddf9","source":"amazon-inspector","versions":["1.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}