{"id":"MAL-2026-10111","summary":"Malicious code in nodepack-daemon (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b976e6ab638a52663d25f360bffec6706dc82991ad27c552788a5a4d785ff89f)\nThe package presents itself as the popular `pino` logger (README badges, file layout mirroring pino's lib/proto.js, lib/redaction.js, lib/transport.js, DEFAULT_LEVELS, and `module.exports.pino = middleware`), but on use it triggers a remote code execution flow. index.js spawns `node./lib/caller.js` in a detached, stdio-ignored child when the exported middleware is invoked. lib/caller.js issues an HTTPS GET against https://jsonkeeper.com/b/QWPQX, reads the `cookie` field of the returned JSON, and passes it to `Function.constructor('require', s)`, invoking the returned function with the real `require` — giving whatever code the paste currently contains full Node capabilities inside the installer's process. The exfil/C2 URLs are further obfuscated as base64-encoded fake `process.env.DEV_API_KEY` / `DEV_SECRET_KEY` / `DEV_SECRET_VALUE` constants in lib/caller.js and lib/const.js that decode to additional jsonkeeper.com paste endpoints (https://jsonkeeper.com/b/XRGF3, https://jsonkeeper.com/b/4NAKK) and a custom `x-secret-key` header. jsonkeeper.com is an anonymous, mutable paste host — the executed payload can be swapped by the operator at any time without a package update. Name impersonation of `pino` plus a mutable-paste remote-execute channel plus URL obfuscation is an unambiguous supply-chain attack.\n\n## Source: ghsa-malware (30f271d63c5628cb52ec8178b640bcf8becf253a8f61563940a6c1e419586509)\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","aliases":["GHSA-v7fc-qvp5-6qx3"],"modified":"2026-07-10T16:32:00.407144294Z","published":"2026-07-10T02:45:25Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-07-10T03:23:39.563470563Z","sha256":"30f271d63c5628cb52ec8178b640bcf8becf253a8f61563940a6c1e419586509","source":"ghsa-malware","modified_time":"2026-07-10T02:45:26Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"id":"GHSA-v7fc-qvp5-6qx3"},{"import_time":"2026-07-10T16:19:42.048529635Z","sha256":"b976e6ab638a52663d25f360bffec6706dc82991ad27c552788a5a4d785ff89f","source":"amazon-inspector","modified_time":"2026-07-10T15:33:52Z","versions":["1.2.9"],"id":"IN-MAL-2026-009621"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v7fc-qvp5-6qx3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/nodepack-daemon/v/1.2.9"}],"affected":[{"package":{"name":"nodepack-daemon","ecosystem":"npm","purl":"pkg:npm/nodepack-daemon"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.2.9"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","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."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/nodepack-daemon/MAL-2026-10111.json","indicators":{"evidence_files":[{"sha256":"9ffba77b12d697502d64c8510ce0559592600870faa82dc94a33d5339c7cf5da","path":"lib/caller.js","tlsh":"01019e4a30fa605c015510f65b1fe0317011e4173c49e5c5378c87514fea5ae6963fed"},{"sha256":"d10853dde92fdc48d8cb5505d89e0030fd35e1416a16a820fe5ec4aceef01c4f","path":"lib/const.js","tlsh":"b9c08c8351f0684b04301bb3a50ca991f2a1d26f0884160231f564844b396a92848fb7"},{"sha256":"2956b023858d706a5e241cd28b845088e5f414c5f70bd5d8cb73cb427d081065","path":"index.js","tlsh":"5d213c81b9f11188065cd9c8b569e53a38e3c4377207b9b0e9ec87862bcf2080272ad7"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}