{"id":"MAL-2026-10504","revision":"df141caf128b4b4d88e533b55a358edc","records":[{"revision":"df141caf128b4b4d88e533b55a358edc","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10504","aliases":[],"title":"Malicious code in chai-as-verified (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (fece219fd09d83bc6a41135483cf3ce8cd2769c22e7776c22d0eb97d65852dd5)\nPackage name typosquats chai-as-promised while its package.json advertises unrelated logger/vulnerability-management metadata. On require, index.js invokes a middleware() that spawns a detached `node` child process running lib/initializeCaller.js with stdio ignored and unref()'d. That child decodes a base64-hidden URL (https://tomato-brunhilda-40.tiiny.site/index.json) from a shadowed `process.env` object, fetches the JS response with a base64-decoded header name `x-secret-key`, and executes it via `new Function.constructor(\"require\", response)(require)`, granting the remote payload full Node require access. The C2 URL, header name, and header value are stored as base64 to hide them from static analysis.\n","state":0,"publishedAt":"2026-07-13T22:10:30+00:00","modifiedAt":"2026-07-13T22:31:56.8560379+00:00","affected":[{"ecosystem":"npm","name":"chai-as-verified","ranges":[],"versions":["7.1.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-verified/v/7.1.5"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10504","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10504","identifiers":["MAL-2026-10504"]},"retained":false,"historicalAffected":[]}],"coverage":[]}