{"id":"MAL-2026-13075","summary":"Malicious code in boxy-pkg-deps-hash (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1da74d1d4290df1bf3113989f436e444b8596103ce2a703bb0d6bcbbcff44e0a)\nOn require() of the package, index.js loads _adapter.js and unconditionally invokes setup(). setup() downloads a platform-specific binary from hardcoded Cloudflare Workers hosts whose names are assembled at runtime via array-join to defeat string search (oob-worker.cf102-baf.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf99-9b3.workers.dev). The fetched bytes are written to /tmp or %TEMP% under disguised filenames (.cache_\u003chex\u003e on Unix, dotnet_diag_\u003chex\u003e.exe on Windows), chmod 0755, and spawned detached via /bin/sh -c or cmd.exe /c start. If HTTPS retrieval fails, _adapter.js falls back to a DNS-TXT covert channel: it resolves TXT records under c.\u003csubdomain\u003e.dl.wel1.ru to get a chunk count, then TXT records under N.\u003csubdomain\u003e.dl.wel1.ru to reconstruct base64 chunks, concatenates and decodes them to the same binary, and executes it via the same write/chmod/spawn path. The destination hosts are anonymous *.workers.dev endpoints unrelated to any declared publisher, and env checks use benign-sounding cover names (DISABLE_TELEMETRY/DO_NOT_TRACK). Any import of the package results in full-host remote code execution on the installer.\n","modified":"2026-08-05T15:52:10.659129532Z","published":"2026-08-05T14:27:03Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-05T14:27:03Z","sha256":"1da74d1d4290df1bf3113989f436e444b8596103ce2a703bb0d6bcbbcff44e0a","source":"amazon-inspector","versions":["35.1.6"],"id":"IN-MAL-2026-015305","import_time":"2026-08-05T15:19:43.671150067Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/boxy-pkg-deps-hash/v/35.1.6"}],"affected":[{"package":{"name":"boxy-pkg-deps-hash","ecosystem":"npm","purl":"pkg:npm/boxy-pkg-deps-hash"},"versions":["35.1.6"],"database_specific":{"indicators":{"package_integrity":[{"filename":"boxy-pkg-deps-hash-35.1.6.tgz","hashes":{"sha512_sri":"sha512-wEsh2D3Zm2CSeYyHr5xV2dMzznGtYqJVfmMfTI4G+kW/vmigBJaP74jd4bWJ7FlCiOpiP0UJZQKlGypKN2BWEA==","sha1":"8bf8417246c76ac2af9a8562e7ccc7f828229762"}}],"evidence_files":[{"tlsh":"18a1955a166a701c8b70a7e4c6175416f65bf6633380c2c5f79ca9881fb223483b2efc","path":"_adapter.js","sha256":"55747db0549f69907abc5a72d8703d625309265ef03416d2cdcc802a39d9eae2"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/boxy-pkg-deps-hash/MAL-2026-13075.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}