MAL-2026-14247Malicious code in magika-js (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | magika-js | 4.1.1 |
{"modified":"2026-08-19T03:56:20Z","published":"2026-08-19T03:56:20Z","schema_version":"1.7.4","id":"MAL-2026-14247","summary":"Malicious code in magika-js (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (41cd28e41bc842fd046a2bff254f450edd0b6d2d15d961fe768cf5e9ebfa197f)\nmagika-js is a typosquat of Google's magika library. The postinstall lifecycle script collects installer host identifiers (hostname, platform, arch, node version, package name, npm lifecycle event, timestamp) and POSTs them as JSON to the hardcoded endpoint https://ucjtw03t.instances.poc.jchunt.top/magika-js. The beacon fires automatically on npm install with no opt-in and no documented purpose served by the transmission, sending installer machine data to a non-publisher domain. A source.txt pointer to github.com/google/magika reinforces the impersonation of Google's project.\n","affected":[{"package":{"ecosystem":"npm","name":"magika-js"},"versions":["4.1.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"postinstall.js","sha256":"2195c3150cd65f4c27a4e9c5ec774d81bc7e93c3b98f06e4d04104ecbfeb1f91","tlsh":"550123c0d2bd9f321bf4578060d1a90682bbd2637b0a607a67c802353fcd5f9007319d"},{"path":"source.txt","sha256":"88db4caf996b491b0b2a4cc64942f7116fe51ef054d84c861b6568e3de350dc9","tlsh":"05a022ffb00882a00e202e8e38c8820c83200220f8a3c3eee0220002b00008208c3aa2"}],"package_integrity":[{"filename":"magika-js-4.1.1.tgz","hashes":{"sha1":"cee49483791181522cb29b7ecb75337ac569c118","sha512_sri":"sha512-eIBrJYZfvwetcFyW1fKyCDwzf9jRB2wpX9iH8X7jhZM9EihxEWRwesyQ6TBVvEi/40HPCZ2SXtJxOwsibRBRMw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/magika-js/v/4.1.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018345","import_time":"2026-08-19T04:18:13.687035721Z","modified_time":"2026-08-19T03:56:20Z","sha256":"41cd28e41bc842fd046a2bff254f450edd0b6d2d15d961fe768cf5e9ebfa197f","source":"amazon-inspector","versions":["4.1.1"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0