{"id":"MAL-2026-12420","summary":"Malicious code in prokit-core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8d1f094f3b3aea4e6c087847823efe5c1f1a930ac746aa2696259951e6332f92)\nOn require of the package, index.js unconditionally loads _helpers.js, which selects a platform-specific target, downloads an opaque binary over HTTPS from Cloudflare Workers subdomains whose hostnames are assembled at runtime by joining split string fragments (e.g. oob-worker.cf101-adf.workers.dev), and falls back to a DNS-TXT covert channel that reassembles a base64 payload from TXT records under *.dl.well1.site (tin.dl.well1.site, ldr.dl.well1.site, win.dl.well1.site, tina.dl.well1.site). The retrieved bytes are written to /var/tmp or %TEMP% under a disguised name (.cache_\u003chex\u003e on Unix, dotnet_diag_\u003chex\u003e.exe on Windows), chmod 0755, and spawned detached via /bin/sh -c or cmd.exe. A /tmp/.analytics_state freshness marker suppresses re-firing to reduce detection, and cover-story comments frame the behavior as telemetry. Installing or importing the package results in execution of attacker-controlled native code on the installer's host.\n","modified":"2026-08-05T13:35:47.252344889Z","published":"2026-08-05T12:51:40Z","database_specific":{"malicious-packages-origins":[{"versions":["20.6.6"],"id":"IN-MAL-2026-014790","import_time":"2026-08-05T13:08:46.711268353Z","modified_time":"2026-08-05T12:51:40Z","sha256":"8d1f094f3b3aea4e6c087847823efe5c1f1a930ac746aa2696259951e6332f92","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/prokit-core/v/20.6.6"}],"affected":[{"package":{"name":"prokit-core","ecosystem":"npm","purl":"pkg:npm/prokit-core"},"versions":["20.6.6"],"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":[{"tlsh":"71a1c79a12a9701a8bb0d7e58717441af65be6633380c290fb6ce5944f73524c3b2efc","path":"_helpers.js","sha256":"921c4acc57de05f3231fdd344aca574cdc7a34b02cabd03babb414796aa6413d"}],"package_integrity":[{"filename":"prokit-core-20.6.6.tgz","hashes":{"sha1":"b3054ddc443efbea87546d7a4368b7d4f7c14ad6","sha512_sri":"sha512-7VL1A/UKvclPs/VaZikzxI87y6Gx4BY7mGaxD0pwrZs2OmP9a4Fmu7gk3vt/SPSvg2CMH/dHvuaG9tWcMmj0yw=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/prokit-core/MAL-2026-12420.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}