{"id":"MAL-2026-14227","summary":"Malicious code in bazelisk (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d4bcbd35130e716d1a2940c91b6691d41b9655fdc8587404af37bc6e5a7f1370)\nThis npm package uses the name `bazelisk`, colliding with Google's bazelbuild/bazelisk project (referenced in the tarball's source.txt), and self-labels as a 'Security research canary'. Its postinstall script collects the installer's hostname, platform, arch, Node version, package name, and npm lifecycle event and POSTs that JSON payload to https://grqx3qve.instances.poc.jchunt.top/bazelisk at `npm install` time. The destination host is unrelated to the real bazelisk publisher. Installer host identifiers and environment fingerprint leave the machine automatically on install, matching a dependency-confusion beacon pattern.\n","modified":"2026-08-19T04:00:18.257213145Z","published":"2026-08-19T03:41:01Z","database_specific":{"malicious-packages-origins":[{"sha256":"d4bcbd35130e716d1a2940c91b6691d41b9655fdc8587404af37bc6e5a7f1370","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-018327","import_time":"2026-08-19T03:49:30.513577353Z","modified_time":"2026-08-19T03:41:01Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/bazelisk/v/1.0.0"}],"affected":[{"package":{"name":"bazelisk","ecosystem":"npm","purl":"pkg:npm/bazelisk"},"versions":["1.0.0"],"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":[{"sha256":"bf4ae2f80a0450cdf22cadd1f7fdf95041333c195298ee476f77526f7b3ecf56","tlsh":"d80123c1d2b55a3517f8528128f0af0693bbf223370660b67dc404e92fcd0f500311ad","path":"postinstall.js"}],"package_integrity":[{"filename":"bazelisk-1.0.0.tgz","hashes":{"sha512_sri":"sha512-Ik33La4hOPAvVGYDA6AWSXbUSZdu1QFfvvAhFmJd3rdIpxIhdkeMRvLpNn2iFNzpKO9k2fKP+WtktovUUSwC1Q==","sha1":"fc68b6751dde07007a05fc18697b16c00e273822"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/bazelisk/MAL-2026-14227.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}