{"id":"MAL-2026-13076","summary":"Malicious code in boxy-pkg-path (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ae99d3d2f9b6c2a5a47e8edd34fb78968ffc58c3a514e04ad10b14455d7436f2)\nindex.js unconditionally loads _support.js on require. _support.js reconstructs Cloudflare Workers hostnames (oob-worker.cf10{0,1,2}-*.workers.dev) and a.ru DNS-TXT fallback (*.dl.wel1.ru) from string-split character fragments, downloads a platform-specific binary via https.get, writes it to a masqueraded path (/tmp/.cache_\u003chex\u003e on Unix or %TEMP%\\dotnet_diag_\u003chex\u003e.exe on Windows), chmods it 0755, and spawns it detached via /bin/sh -c or cmd. Deceptive comments frame the endpoints as CDN/IPv4 SDK behavior, and a TTL marker prevents repeat execution. lib/telemetry.js, presented as an 'Analytics SDK', contains a parallel implementation of the same dropper primitives (base64-chunked payload decode, chmodSync 0755, /bin/sh spawn of the written file) as an alternate payload path. Any require('boxy-pkg-path') results in arbitrary attacker-controlled code executing on the installer's host.\n","modified":"2026-08-05T15:52:11.311593903Z","published":"2026-08-05T14:26:37Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-05T15:19:43.527698474Z","modified_time":"2026-08-05T14:26:37Z","sha256":"ae99d3d2f9b6c2a5a47e8edd34fb78968ffc58c3a514e04ad10b14455d7436f2","source":"amazon-inspector","versions":["35.3.5"],"id":"IN-MAL-2026-015302"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/boxy-pkg-path/v/35.3.5"}],"affected":[{"package":{"name":"boxy-pkg-path","ecosystem":"npm","purl":"pkg:npm/boxy-pkg-path"},"versions":["35.3.5"],"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":"1bb1c8aa156a70194b71ebe0c61b8826f62bf66337818184fb5c95885f73524c372efc","path":"_support.js","sha256":"c22bed4d9e851a07a7487d468e1cc7c51dbee495f9480e125f8b55834208b56c"},{"path":"lib/telemetry.js","sha256":"85549079f926b6a3cf184777cfadb24853df6f0572701b2ceaeb405893047d13","tlsh":"2c835055566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-4XPVkyaXMnHc5JoDZnXV2NauLGigMxQPWc/Ld9FovI/KGnVuwrjorHEDxJN6Dj27mTDzRC1EeKAo6jzBdWjMIQ==","sha1":"8c18b09e32948b21d7f97fdce9b9535b161a1f82"},"filename":"boxy-pkg-path-35.3.5.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/boxy-pkg-path/MAL-2026-13076.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}