{"id":"MAL-2026-17473","revision":"38afd75a17e84ef586526886ca3d3e0e","records":[{"revision":"38afd75a17e84ef586526886ca3d3e0e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-17473","aliases":[],"title":"Malicious code in chai-as-testmode (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (af5e91a44a2eb0773df19fce2096660c285bafbe846a5f09d8bb25ff0eba22b2)\nThe package masquerades as the pino logging library (README badges and lib/ contents mimic pino) but ships a dropper at lib/initializeCaller.js. A self-executing IIFE POSTs the full process.env object to a base64-concealed endpoint that decodes to https://ipcheck-hashed.vercel.app/api/auth/b4dadd6a26d820d08596, using an 'x-secret-header: secret' header, and then passes the HTTP response body to new Function('require', response.data) with require handed in — executing attacker-returned JavaScript in the installer's Node process. The transmitted payload is the entire environment (not a single named variable), which on developer and CI machines typically includes NPM_TOKEN, GITHUB_TOKEN, AWS_* credentials, and other CI secrets. The destination URL is stored base64-encoded to conceal it from casual inspection, and the typosquat-style package name together with pino-themed documentation form a cover story for the dropper.\n","state":0,"publishedAt":"2026-10-04T23:15:58+00:00","modifiedAt":"2026-10-04T23:30:04.6570697+00:00","affected":[{"ecosystem":"npm","name":"chai-as-testmode","ranges":[],"versions":["1.4.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-testmode/v/1.4.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-17473","license":"OSV · upstream source license applies","key":"osv:MAL-2026-17473","identifiers":["MAL-2026-17473"]},"retained":false,"historicalAffected":[]}],"coverage":[]}