{"id":"MAL-2026-14293","revision":"969fc7d9633749eeaae7013e64f32018","records":[{"revision":"969fc7d9633749eeaae7013e64f32018","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14293","aliases":[],"title":"Malicious code in matrixflow-js (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (45393245d9a2fca558d1bcb8b7c9d5263c16ff63e9a038a51169b720c85e1352)\nmatrixflow-js@3.2.1 is a typosquat/repackage of ml-matrix (the UMD global is mlMatrix; homepage matrixflow-js.github.io does not correspond to the real ml-matrix project). Its main module matrix.js routes caller-supplied input from the exported solve() code path into runMatrixFunction in src/common.js. src/common.js hides its crypto/fs/path/child_process requires behind an obfuscated string-array; when SHA-256 of the passed input matches a hardcoded hex digest, it uses scryptSync-derived keying to AES-256-GCM-decrypt the sibling file src/statMatrix.min.js, decodes a base64 blob to recover the string 'child_process', writes the plaintext to a temp file, and spawns node on it in a detached, hidden process (detached:true, windowsHide:true, stdio ignored). Two sibling files stage the payload: src/statMatrix.min.js and src/utilMatrix.min.d.js are pure base64 blobs decoding to opaque AES-GCM ciphertext, and src/statMatrix.min.d.js bundles a full ethers.js (BN, secp256k1, wallet code) under a name mimicking a TypeScript declaration file. An Ethereum wallet SDK plus encrypted opaque payloads in a package advertised for dense matrix computation indicates crypto-wallet-targeting malware. Any downstream application that ships this package and invokes solve() on attacker-chosen input executes the concealed, unauditable payload on end-user hosts.\n","state":0,"publishedAt":"2026-08-19T08:17:00+00:00","modifiedAt":"2026-08-19T09:00:20.5886454+00:00","affected":[{"ecosystem":"npm","name":"matrixflow-js","ranges":[],"versions":["3.2.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/matrixflow-js/v/3.2.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14293","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14293","identifiers":["MAL-2026-14293"]},"retained":false,"historicalAffected":[]}],"coverage":[]}