MAL-2026-10177Malicious code in @jaymara/jsononifier (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @jaymara/jsononifier | 1.0.0 |
| npm | @jaymara/jsononifier | 1.0.1 |
| npm | @jaymara/jsononifier | 1.0.2 |
{"modified":"2026-07-10T21:52:12Z","published":"2026-07-10T21:29:35Z","schema_version":"1.7.4","id":"MAL-2026-10177","summary":"Malicious code in @jaymara/jsononifier (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ade6fb9a07c6f1417e9569af48b6c638bf12fba7540493b1b38a2d6ba42d101c)\n@jaymara/jsononifier@1.0.2 is advertised as a JSON formatting utility but ships a covert command-execution primitive that fires on require. index.js loads trigger.js, which checks for sandbox indicators (process.env.CI==='true', NODE_ENV==='test', existence of /.dockerenv) and the platform (win32); when those checks indicate a real Windows workstation, it schedules Executer.js via process.nextTick + setTimeout(5000). Executer.js XOR-decodes a byte array from payload.js using key 'xorkey123' and passes the resulting string to child_process.exec with { windowsHide: true }. payload.js openly comments the intent ('XOR-encoded command – not visible in source'). The current decoded value is a demo (calc.exe), but the mechanism — opaque encoded bytes decoded at runtime and handed to exec, gated to skip CI/test/Docker and only fire on real victim machines — is the attack: a future tarball can swap the byte array for any command without changing the visible code. None of this is required by, or consistent with, a JSON formatter.\n","affected":[{"package":{"ecosystem":"npm","name":"@jaymara/jsononifier"},"versions":["1.0.0","1.0.2","1.0.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"57beb8d9e87117a970ba48b458621c41ff8ec59456bd89af5d3f836679d5675d","tlsh":"1ae07d41c9e1e08a3c6865e9dcd4c26257d6da0d380aa193e9c443e129c2cc80b32f79"},{"path":"package.json","sha256":"9cd202b0bf5c652512584cdbe56f30f35fb722eb2bfdc2c8db9c26d753f13330","tlsh":"73f0e574853159730ac8b9a69deac14775664e4f4184bc0a67d3006c438eaaa05ff32d"}],"package_integrity":[{"filename":"jsononifier-1.0.0.tgz","hashes":{"sha1":"7edf5a5bfb76b8d7c37354078fc83053b6c31f9a","sha512_sri":"sha512-bfebzd/Z6wvIKataAAAPyvwmKyU5XEuf/hPYjVkMkDHIQaAny/R+cJXquxJC84Ov/BchJOyqUEjmni8OUZz//w=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@jaymara/jsononifier/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@jaymara/jsononifier/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@jaymara/jsononifier/v/1.0.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-009717","import_time":"2026-07-10T21:50:33.089783497Z","modified_time":"2026-07-10T21:29:53Z","sha256":"7d4826185eb8033f7f55a85e760d0acb0425b463ce1ec95af4c1ae9f6d2ce05b","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-009715","import_time":"2026-07-10T21:50:32.787378748Z","modified_time":"2026-07-10T21:29:35Z","sha256":"ade6fb9a07c6f1417e9569af48b6c638bf12fba7540493b1b38a2d6ba42d101c","source":"amazon-inspector","versions":["1.0.2"]},{"id":"IN-MAL-2026-009716","import_time":"2026-07-10T21:50:32.951506235Z","modified_time":"2026-07-10T21:29:46Z","sha256":"bad937211c6f3e71e5b1d13c7d85c5c7188db6fd5df39ec3d1216668e3b6a009","source":"amazon-inspector","versions":["1.0.1"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0