{"id":"MAL-2026-10044","revision":"e3adcb8e090e41e6bba8661115405632","records":[{"revision":"e3adcb8e090e41e6bba8661115405632","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10044","aliases":["GHSA-9q7j-cc9w-c9rf"],"title":"Malicious code in chai-as-serialized (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (30e48e8980927471640c6573406d988d1a4361759f14a952da36c5daa1c9fd3c)\nThe package's main entry (index.js) spawns a detached `node` child process running lib/initializeCaller.js as a side effect of invoking the exported middleware factory. lib/initializeCaller.js constructs a fake `process.env` object whose fields hold base64 blobs; DEV_API_KEY decodes to https://tomato-brunhilda-40.tiiny.site/index.json and DEV_SECRET_KEY/DEV_SECRET_VALUE decode to an `x-secret-key` request header. The script fetches the JSON body from that anonymous host and executes it via `new Function.constructor(\"require\", response)(require)`, granting the remote host arbitrary code execution with `require` access in the installer/consumer's Node process. The package name mimics `chai-as-promised` and the README is copied from `pino` (pino badges, pino narrative, keywords `fast,logger,stream,json`), while the shipped code has no relation to either — the impersonation is a lure to attract installs to a remote-code-execution dropper. Base64-encoding of the C2 URL and header, disguised as environment-variable configuration, confirms hostile intent.\n","state":0,"publishedAt":"2026-07-09T15:32:33+00:00","modifiedAt":"2026-09-01T11:31:28.4630989+00:00","affected":[{"ecosystem":"npm","name":"chai-as-serialized","ranges":[],"versions":["7.0.8"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-serialized/v/7.0.8","https://github.com/advisories/GHSA-9q7j-cc9w-c9rf"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10044","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10044","identifiers":["MAL-2026-10044","GHSA-9q7j-cc9w-c9rf"]},"retained":false,"historicalAffected":[]}],"coverage":[]}