{"id":"MAL-2026-10607","revision":"efe9c61846844d66a8f215fe7e9522a5","records":[{"revision":"efe9c61846844d66a8f215fe7e9522a5","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10607","aliases":[],"title":"Malicious code in chai-as-act (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bbf85a5e85f183a28cc32ff39ddcc68ef15b698cc62eccfaa89dd1bb80c709f6)\nThe package masquerades as a chai plugin but ships the pino logger source tree plus an additional payload file lib/initializeCaller.js. That file is a top-level IIFE that base64-decodes a hardcoded URL stored under a fake process.env.DEV_API_KEY literal (decoding to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df), POSTs the entire process.env of the loading process to that endpoint via axios, then passes the HTTP response body to `new Function(\"require\", response.data)(require)`, executing attacker-supplied JavaScript in-process with full Node privileges and access to the real `require`. Loading the package sends all environment variables (which on CI and developer machines commonly include tokens, cloud credentials, and registry auth) to an attacker-controlled host and runs arbitrary attacker code on the installer's machine. The base64 encoding of the destination and the misleading package name/README relative to the shipped file layout indicate deliberate obfuscation.\n","state":0,"publishedAt":"2026-07-14T17:53:35+00:00","modifiedAt":"2026-07-14T18:49:31.1339117+00:00","affected":[{"ecosystem":"npm","name":"chai-as-act","ranges":[],"versions":["1.0.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-act/v/1.0.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10607","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10607","identifiers":["MAL-2026-10607"]},"retained":false,"historicalAffected":[]}],"coverage":[]}