{"id":"MAL-2026-20190","summary":"Malicious code in @h1stealthy/gh046-npm-transfer-9421a2 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ec2a4a7ce4ac73e7b796fdeb7b7120c5f09866284eb37e3b3a58d254363f2aba)\nThe npm tarball ships directory entries whose names are double-URL-encoded `..` sequences (`%252e%252e/%252e%252e/%252e%252e/tmp/npm-traversal-double_percent`) terminating in a file dropped at `/tmp/npm-traversal-double_percent` outside the package's own install directory. On a tar extractor that single-decodes percent-encoding before applying path-safety checks, extraction of this archive writes attacker-chosen files to absolute filesystem paths on the installer host during `npm install`. The shipped JavaScript is an inert stub and no lifecycle scripts are declared; the attack surface is the archive layout itself, exercised by the package manager's extraction step. Package naming (`@h1stealthy/...-transfer-...`) and the marker payload are consistent with a controlled traversal probe, but the artifact as published is structurally a path-traversal (zip-slip-style) tar against npm clients.\n","modified":"2026-11-19T07:15:08.799241524Z","published":"2026-11-19T06:56:59Z","database_specific":{"malicious-packages-origins":[{"sha256":"8d9b78e70c9b916271f50803d66821ab207d55d3754d95446409fedfda21e57d","source":"amazon-inspector","versions":["0.0.386387"],"id":"IN-MAL-2026-022882","import_time":"2026-11-19T07:12:44.461075862Z","modified_time":"2026-11-19T06:57:06Z"},{"modified_time":"2026-11-19T06:56:59Z","sha256":"989b95e13b8fca530593dbdd4f25296c4beae13f76314b22882d1e7ee74d142e","source":"amazon-inspector","versions":["0.0.386388"],"id":"IN-MAL-2026-022881","import_time":"2026-11-19T07:12:44.379739004Z"},{"id":"IN-MAL-2026-022883","import_time":"2026-11-19T07:12:44.552783289Z","modified_time":"2026-11-19T06:57:12Z","sha256":"ec2a4a7ce4ac73e7b796fdeb7b7120c5f09866284eb37e3b3a58d254363f2aba","source":"amazon-inspector","versions":["0.0.95891"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@h1stealthy/gh046-npm-transfer-9421a2/v/0.0.386387"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@h1stealthy/gh046-npm-transfer-9421a2/v/0.0.386388"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@h1stealthy/gh046-npm-transfer-9421a2/v/0.0.95891"}],"affected":[{"package":{"name":"@h1stealthy/gh046-npm-transfer-9421a2","ecosystem":"npm","purl":"pkg:npm/%40h1stealthy/gh046-npm-transfer-9421a2"},"versions":["0.0.386387","0.0.386388","0.0.95891"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"path":"backend-canary.js","sha256":"a237171f658ee83a523a70fe3dea9bd5fc42f66a5ecd42559f6db5ca3ac03c43","tlsh":"4ce0abba82a8c35c9aa200c8c012ca3a73d7e003b00034c1eb1adb1fd899cc52b29824"}],"package_integrity":[{"filename":"gh046-npm-transfer-9421a2-0.0.386387.tgz","hashes":{"sha512_sri":"sha512-J2kWFWRH+k9cnjY+wDL1x+LAAV+o85uhigKh6jk+WHbX62YLEhCL1YwsW89rdCtVtw5c2Y+J/bg6jcfkh1cETQ==","sha1":"77dce8be151019fe8985ad71a0ba10c3f5c0d4e5"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@h1stealthy/gh046-npm-transfer-9421a2/MAL-2026-20190.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}