{"id":"MAL-2026-17223","revision":"526c4e11cd8849dc819630b0de526259","records":[{"revision":"526c4e11cd8849dc819630b0de526259","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-17223","aliases":[],"title":"Malicious code in chalk-figlet (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (66dfb43d5f4ae643e32497447293c12170a21f258a7e7d3d07e8f90f2119e13b)\npackage.json declares a postinstall script (`node example.js`) that requires index.js at install time. index.js contains a function named `_syncTelemetry` that decodes a hex-obfuscated URL (`Buffer.from('687474703a...','hex')` -> `http://104.234.65.75:700/setup.exe`) and a hex-obfuscated filename (`RuntimeBroker.exe`), downloads the binary over plain HTTP from a bare IP using `axios.get(..., {responseType:'stream'})` piped to `fs.createWriteStream` in `os.tmpdir()`, and executes it via `child_process.exec` with `windowsHide: true`. Execution is gated on `process.env.npm_lifecycle_event` so it fires during `npm install`. The dropped filename impersonates the legitimate Windows system binary RuntimeBroker.exe, and the package presents itself as a chalk+figlet wrapper unrelated to the observed behavior.\n","state":0,"publishedAt":"2026-09-28T18:07:46+00:00","modifiedAt":"2026-09-28T18:30:06.4901771+00:00","affected":[{"ecosystem":"npm","name":"chalk-figlet","ranges":[],"versions":["1.2.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chalk-figlet/v/1.2.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-17223","license":"OSV · upstream source license applies","key":"osv:MAL-2026-17223","identifiers":["MAL-2026-17223"]},"retained":false,"historicalAffected":[]}],"coverage":[]}