{"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","modified":"2026-08-18T23:45:11.478206313Z","published":"2026-08-18T23:21:03Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-18T23:21:03Z","sha256":"adcb90c6a48b3b20928967d1aea32cde54035ed455c474a6db4fab148b424b53","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-018190","import_time":"2026-08-18T23:41:22.381392618Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/typescrit-cli/v/1.0.0"}],"affected":[{"package":{"name":"typescrit-cli","ecosystem":"npm","purl":"pkg:npm/typescrit-cli"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/typescrit-cli/MAL-2026-14153.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"hashes":{"sha1":"8aed52b60061191051c4979c91aa29bddb02e898","sha512_sri":"sha512-/CqdMFG+y+4B5WvXTYt7FxhQdr2oqwu+/c5TJfyNyzMcejq4SIJHl0juzu7LwfGZdc1AEY/NzXXok9ojbeJ5kA=="},"filename":"typescrit-cli-1.0.0.tgz"}],"evidence_files":[{"path":"scripts/postinstall.js","sha256":"e19ac3004d924f2294d27f5671e98793f8e92babdff33f95d6f2e643fcc03dca","tlsh":"5fd13fca1ef59035874bf96884cf9d13b2a6c207320e4a65ff8f42107f5793c85a69e9"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}