{"id":"MAL-2026-16380","revision":"d01ff05fc58e41e7b9546301a50366a3","records":[{"revision":"d01ff05fc58e41e7b9546301a50366a3","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-16380","aliases":[],"title":"Malicious code in chai-logger (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (566e54855d730e8555b93da4f8ea81faba72645079a7adcc3a05ea8bf8ad8ee6)\nThe package presents itself as a Chai logging plugin but its main entry `index.js` requires `./lib/query.js`, a ~4 MB obfuscator.io-encoded module (23,868-entry rotated string array, T/j decoder wrappers, hex-property indirection) that executes at the top level as soon as the package is required. The remaining files under `lib/` (proto.js, levels.js, tools.js, etc.) are verbatim copies of pino source, unrelated to the advertised Chai plugin API — a cover story around the obfuscated blob. `package.json` declares `axios ^1.10.0` as a runtime dependency, and the only reference to axios in the shipped code is inside the obfuscated body of `lib/query.js`, giving the payload an HTTP client whose destination is reconstructed at runtime from the rotated string array. Author metadata points to `jsonspack.com`, unrelated to Chai or pino. The combination of import-time execution of a heavily obfuscated payload, a mismatched cover story, copied third-party source used as filler, and an HTTP client declared only for use inside the obfuscated code is the canonical npm credential/data-stealer shape.\n","state":0,"publishedAt":"2026-09-22T13:58:43+00:00","modifiedAt":"2026-09-22T14:30:06.8017894+00:00","affected":[{"ecosystem":"npm","name":"chai-logger","ranges":[],"versions":["3.0.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-logger/v/3.0.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16380","license":"OSV · upstream source license applies","key":"osv:MAL-2026-16380","identifiers":["MAL-2026-16380"]},"retained":false,"historicalAffected":[]}],"coverage":[]}