MAL-2026-14153Malicious code in typescrit-cli (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | typescrit-cli | 1.0.0 |
{"modified":"2026-08-18T23:21:03Z","published":"2026-08-18T23:21:03Z","schema_version":"1.7.4","id":"MAL-2026-14153","summary":"Malicious code in typescrit-cli (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (adcb90c6a48b3b20928967d1aea32cde54035ed455c474a6db4fab148b424b53)\nOn npm install, scripts/postinstall.js XOR-decodes (key 'stf2026') a hidden URL that resolves to an unrelated personal GitHub account (github.com/bebra1/...), downloads a payload to %TEMP%\\main.exe, and spawns it detached with stdio ignored and window hidden. When the host is detected as WSL (via /proc/version, /proc/sys/kernel/osrelease, WSL_DISTRO_NAME), the script assembles an XOR-decoded powershell.exe bridge command and exec()s it to escape the Linux container and run the same payload on the Windows host. The same postinstall also POSTs a JSON body containing the platform to a hardcoded bare-IP C2 at http://193.70.34.101:20099/vote, with the IP assembled from a split array (['193','70','34','101'].join('.')) to evade literal-URL detection. All network destinations and shell command fragments (addon URL, powershell launcher, bridge script fragments) are stored as byte arrays and XOR-decoded at runtime. The package name resembles a mistyped 'typescript-cli' and the publisher is unrelated to the GitHub account hosting the payload.\n","affected":[{"package":{"ecosystem":"npm","name":"typescrit-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":"e19ac3004d924f2294d27f5671e98793f8e92babdff33f95d6f2e643fcc03dca","tlsh":"5fd13fca1ef59035874bf96884cf9d13b2a6c207320e4a65ff8f42107f5793c85a69e9"}],"package_integrity":[{"filename":"typescrit-cli-1.0.0.tgz","hashes":{"sha1":"8aed52b60061191051c4979c91aa29bddb02e898","sha512_sri":"sha512-/CqdMFG+y+4B5WvXTYt7FxhQdr2oqwu+/c5TJfyNyzMcejq4SIJHl0juzu7LwfGZdc1AEY/NzXXok9ojbeJ5kA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/typescrit-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-018190","import_time":"2026-08-18T23:41:22.381392618Z","modified_time":"2026-08-18T23:21:03Z","sha256":"adcb90c6a48b3b20928967d1aea32cde54035ed455c474a6db4fab148b424b53","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0