MAL-2026-14150Malicious code in typescrip-cli (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | typescrip-cli | 1.0.0 |
{"modified":"2026-08-18T23:20:40Z","published":"2026-08-18T23:20:40Z","schema_version":"1.7.4","id":"MAL-2026-14150","summary":"Malicious code in typescrip-cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (44399cd197dfa6f24adf7c96a380d2e0c95a4123d8c14932ceb0a85e32ebc9b9)\nPackage name 'typescrip-cli' typosquats 'typescript-cli'; index.js exports an empty object and the package has no library functionality. scripts/postinstall.js hides its network destinations and command lines inside four numeric byte arrays that are XOR-decoded at runtime with the key 'stf2026'. The decoded URL is https://github.com/bebra1/qPzM50V1AKG0rVlH/releases/download/null/main.exe (an unrelated personal GitHub account, mutable 'null' release tag). On Windows the script downloads that executable to %TEMP%\\main.exe and spawns it detached. On WSL/virtualized Linux it decodes a PowerShell launcher and bridge script and passes the concatenated command to child_process.exec with windowsHide:true, running the same payload on the Windows host across the WSL boundary. In parallel, postinstall POSTs a JSON body identifying the host platform to a hardcoded bare-IP beacon at http://193.70.34.101:20099/vote, with the host string reassembled from a split array ['193','70','34','101'].join('.') to avoid literal-string detection.\n","affected":[{"package":{"ecosystem":"npm","name":"typescrip-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":"7de15767ced41ebdf7bbe85d4196d2d1e98a2e00f8d13aff1ccd3e02207c337b","tlsh":"72d13fca1ef59035874bf96884cf9d13b2a6c207330e4a65ff8f42107f5792c85a69e9"},{"path":"package.json","sha256":"88abbc5bb9d7d7646ee3fe853615ce2d6f87fce27eed09cef4abdfdcf6d82fd5","tlsh":"37d012104d329a3338c46ba50e338509a6714d6f1044bc1827e76568c3ea7bb5dfe71e"}],"package_integrity":[{"filename":"typescrip-cli-1.0.0.tgz","hashes":{"sha1":"22efad227d583c8868b34ee66c462ec1d3f26fe7","sha512_sri":"sha512-vGl3F12cNKEa/FLTE3Xuh2+cfeTxHv7DjeZ8Pr+WSuQOSkbmXmrTb+copnNQgabrlbmFJSbC2aetZFH5FyaveA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/typescrip-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-018187","import_time":"2026-08-18T23:41:22.186300503Z","modified_time":"2026-08-18T23:20:40Z","sha256":"44399cd197dfa6f24adf7c96a380d2e0c95a4123d8c14932ceb0a85e32ebc9b9","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0