{"id":"MAL-2026-10052","revision":"87019899ee894a23b09c74b5c195635f","records":[{"revision":"87019899ee894a23b09c74b5c195635f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10052","aliases":[],"title":"Malicious code in chai-promised-test (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1ddaac3e93ed2e5d968816cf3153b2ab1878580bb9ee65ec3ec1acdca41dc018)\nPackage masquerades as a chai-as-promised plugin / pino logger (README and exports copied from pino, including `module.exports.pino = middleware`) but on use spawns a detached Node process running lib/caller.js, which fetches a string from https://jsonkeeper.com/b/EXSIF and executes it via `new Function.constructor(\"require\", s)(require)`. The fetched code runs with full Node privileges (require, fs, child_process, network). The C2 URL and request headers are concealed by shadowing the local `process` object with fields named `DEV_API_KEY` / `DEV_SECRET_KEY` / `DEV_SECRET_VALUE`, and lib/const.js carries base64-encoded equivalents that decode to a second jsonkeeper.com paste and the header name `x-secret-key`. The remote paste is mutable and attacker-controlled, allowing arbitrary code execution on the installer's machine. Identity confusion with chai-as-promised / pino indicates the package exists to be installed by mistake.\n","state":0,"publishedAt":"2026-07-09T15:33:15+00:00","modifiedAt":"2026-07-09T16:31:54.2528655+00:00","affected":[{"ecosystem":"npm","name":"chai-promised-test","ranges":[],"versions":["1.3.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-promised-test/v/1.3.5"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10052","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10052","identifiers":["MAL-2026-10052"]},"retained":false,"historicalAffected":[]}],"coverage":[]}