MAL-2026-14154Malicious code in typesript-cli (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | typesript-cli | 1.0.0 |
{"modified":"2026-08-18T23:21:19Z","published":"2026-08-18T23:21:19Z","schema_version":"1.7.4","id":"MAL-2026-14154","summary":"Malicious code in typesript-cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3ac32bb6c3db806740bda125cf58a8f348256baa021b0a6c7b901ebb86720505)\nPackage name is a one-character typosquat of the widely-used 'typescript' family. On npm install, scripts/postinstall.js XOR-decodes (key 'stf2026') a GitHub-hosted URL held as an integer array and downloads a Windows PE to TEMP\\main.exe, then spawns it detached with no hash or signature verification. When running under WSL or virtualized Linux (detected via /proc/version and WSLENV), the script decodes a bridge launcher command and inline script from further XOR-obfuscated blobs and executes them via child_process.exec with windowsHide:true to fetch and run the same payload on the Windows host, crossing the Linux sandbox boundary. The script also POSTs platform info to a hardcoded bare-IP endpoint http://193.70.34.101:20099/vote, with the IP split across a string array ['193','70','34','101'].join('.') to hide it from static review, serving as an install beacon.\n","affected":[{"package":{"ecosystem":"npm","name":"typesript-cli"},"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":[{"path":"scripts/postinstall.js","sha256":"113e0fe60776d9400ef74ee7726267d27358ab31bd16ed0d1c9d011b934318b7","tlsh":"fad13fca1ef59035874bf96884cf9d13b2a6c207320d4a65ff8f42107f5793c85a69e9"}],"package_integrity":[{"filename":"typesript-cli-1.0.0.tgz","hashes":{"sha1":"0694fe75d98e21b5bd52090ed7052a2f89ab34cd","sha512_sri":"sha512-xidIJUNZNHjv8H6+wNAFNNwgoFW9jRl49LUjq7J3UAp4RI6/+aTs51T/HP87qiW35fb0SJtPXNDccwoWocuVZQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/typesript-cli/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018192","import_time":"2026-08-18T23:41:22.544548983Z","modified_time":"2026-08-18T23:21:19Z","sha256":"3ac32bb6c3db806740bda125cf58a8f348256baa021b0a6c7b901ebb86720505","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0