{"id":"MAL-2026-13701","revision":"ce53b085d4ce481aa1eb38b042546f00","records":[{"revision":"ce53b085d4ce481aa1eb38b042546f00","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13701","aliases":[],"title":"Malicious code in chai-as-format (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (97806af0cd2e189771ef929999ea4b1812c7933b87dbaf2a2a9b7e6815bce36c)\nThe package's index.js unconditionally requires./lib/config, which is a ~4MB single-line file consisting of an obfuscator.io-style hex-encoded string array (23,953 entries) with rotate/decoder functions and heavy control-flow flattening. This obfuscated code executes at every require('chai-as-format') on the installer's machine. The package presents itself under the name chai-as-format but its README, LICENSE, docs, and lib/* content are copied from the unrelated pino logging framework (LICENSE cites pinojs/pino), while the package.json description references vulnerability management — the cover story does not match the shipped content. A multi-megabyte opaque decoder auto-loaded on import is not a legitimate config module; the shape is a trojan loader hidden behind an impersonation shell.\n","state":0,"publishedAt":"2026-08-10T12:31:52+00:00","modifiedAt":"2026-08-10T13:05:04.9587132+00:00","affected":[{"ecosystem":"npm","name":"chai-as-format","ranges":[],"versions":["2.3.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-format/v/2.3.5"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13701","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13701","identifiers":["MAL-2026-13701"]},"retained":false,"historicalAffected":[]}],"coverage":[]}