MAL-2026-14156Malicious code in typscript-cli (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | typscript-cli | 1.0.0 |
{"modified":"2026-08-18T23:21:27Z","published":"2026-08-18T23:21:27Z","schema_version":"1.7.4","id":"MAL-2026-14156","summary":"Malicious code in typscript-cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1425e6f0bb2305eeddecaab5403e09ead0e8f60b9b1f817581a343cb5a3dd062)\ntypscript-cli is a typosquat of 'typescript' (index.js exports an empty object; no library functionality). Its scripts/postinstall.js is the only functional code and executes on npm install. It XOR-decodes (key 'stf2026') four embedded numeric arrays to reconstruct a download URL and a PowerShell 'bridge' command, downloads a Windows executable to %TEMP%\\main.exe, and spawns it detached with windowsHide:true. On WSL/Linux hosts it uses child_process.exec with the XOR-decoded PowerShell bridge command to drop and run the same payload on the Windows side. The same postinstall also POSTs a platform label to a hardcoded bare-IP endpoint 193.70.34.101:20099/vote over plain HTTP, with the host assembled from a split array ['193','70','34','101'].join('.') to evade literal-string scanning. There is no publisher-matched destination, no version pinning, and no integrity check on the fetched binary.\n","affected":[{"package":{"ecosystem":"npm","name":"typscript-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":"c4f525aedc0047df61e13d911b0c067613095842b3d7028d6d509005ccdddae5","tlsh":"40d13fca1ef590348747f96884cf9d13b2a6c207320e4a65ff8f42107f5793c85a69e9"},{"path":"package.json","sha256":"22c47b85234d6c098e28f65272da54d6cef0a6f76f1e26c51ee96bd9c1c532c4","tlsh":"dad012104d32da3338c4aba50a33c109a6614d6f2044f81837e7545883de7b75dfe71e"}],"package_integrity":[{"filename":"typscript-cli-1.0.0.tgz","hashes":{"sha1":"ceb9523050818fe5910ebad3ff229da42ff2be19","sha512_sri":"sha512-C9zFcwBrVaF4bbkZGKU5UOpBBgiJLbfvi35BAh5zrUs2mkdiSbs4MOc77fXa90oi7uADum9VhP0F4p0ts5VUeA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/typscript-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-018193","import_time":"2026-08-18T23:41:22.637759699Z","modified_time":"2026-08-18T23:21:27Z","sha256":"1425e6f0bb2305eeddecaab5403e09ead0e8f60b9b1f817581a343cb5a3dd062","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0