{"id":"MAL-2026-13081","summary":"Malicious code in boxy-semver (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (dec5b3e90530b4252cc04b1cf4cf70ec0113fa36f307ef33b28c80ff72ebdc83)\nindex.js unconditionally requires./_init on load. _init.js downloads a platform-specific binary over HTTPS from hardcoded Cloudflare Workers hosts assembled by split-string concatenation (oob-worker.cf99-9b3.workers.dev), with a DNS-TXT fallback resolver at sdk.dl.wel1.ru, writes the payload to /var/tmp/.cache_\u003chex\u003e or %TEMP%\\dotnet_diag_\u003chex\u003e.exe, chmods it 0755, and spawns it detached via /bin/sh -c or cmd /c start. Hostnames, the require(\"child_process\") call, and fs.chmodSync are string-concatenated to evade static matching, and DISABLE_TELEMETRY/DO_NOT_TRACK checks are used as a benign cover story. A second module lib/telemetry.js (~81KB, not reached from the current index.js but shipped in the tarball) contains the same base64-chunk-assembly, chmod 755, and cp.spawn('/bin/sh',['-c', filePath+' &']) dropper primitives. Executable filenames mimicking dotnet diagnostics and hidden.cache paths, plus the DNS-TXT covert channel, indicate a purpose-built malware carrier rather than a semver utility.\n","modified":"2026-08-05T15:52:13.532814077Z","published":"2026-08-05T14:24:51Z","database_specific":{"malicious-packages-origins":[{"sha256":"dec5b3e90530b4252cc04b1cf4cf70ec0113fa36f307ef33b28c80ff72ebdc83","source":"amazon-inspector","versions":["35.3.5"],"id":"IN-MAL-2026-015290","import_time":"2026-08-05T15:19:42.856214007Z","modified_time":"2026-08-05T14:24:51Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/boxy-semver/v/35.3.5"}],"affected":[{"package":{"name":"boxy-semver","ecosystem":"npm","purl":"pkg:npm/boxy-semver"},"versions":["35.3.5"],"database_specific":{"indicators":{"evidence_files":[{"path":"_init.js","sha256":"c399a8d9b9aa39fea8f4f8e7a16c1b116125f3959f12c385a966f9176af57c1a","tlsh":"02a1b79a176570088bb09be4872b5415f65be26337c0d294ff5ca5981f7712483b2efc"},{"tlsh":"9b835056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc","path":"lib/telemetry.js","sha256":"24e8899de1701bb85d1a0eb765c509e63920abe9b7341d496ab1a1d9376c1222"}],"package_integrity":[{"hashes":{"sha1":"de09bb4ce9c08745b335ca4474e902c285e05e58","sha512_sri":"sha512-EmdT8ituxqE2cX38RnIKYMRRC82+NmoYwuOzVOWl57mSaqkp0hgHwYbbj1v3NgQ2TlTk30MPfQhP/aL1jpil0A=="},"filename":"boxy-semver-35.3.5.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/boxy-semver/MAL-2026-13081.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}