MAL-2026-14157Malicious code in typscript-core (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | typscript-core | 1.0.0 |
{"modified":"2026-08-18T23:21:45Z","published":"2026-08-18T23:21:45Z","schema_version":"1.7.4","id":"MAL-2026-14157","summary":"Malicious code in typscript-core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5120bfde64344d0e161bac3b4128d7eeecc483ad796361db09eacd138ecd3945)\ntypscript-core is a typosquat of the 'typescript' package. Its scripts/postinstall.js reconstructs a GitHub download URL and shell commands from byte arrays XOR-decoded with the key 'stf2026', downloads a binary to %TEMP%\\main.exe, and spawns it detached with windowsHide:true on win32 (and via a PowerShell bridge on WSL). The same postinstall also POSTs platform information to a hardcoded bare-IP endpoint at http://193.70.34.101:20099/vote, with the IP assembled from a four-element string array to evade static search. The URLs, shell commands, and destination IP are all obfuscated and reconstructed at runtime.\n","affected":[{"package":{"ecosystem":"npm","name":"typscript-core"},"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":"8cea150111543bb45f23e25134924279d2658010e9b3c3b57c6cae0189cd7042","tlsh":"40d13fc61ef59035874bf96884cf9d13b2a6c207330e4a65ff8f42107f5792c85a69e9"}],"package_integrity":[{"filename":"typscript-core-1.0.0.tgz","hashes":{"sha1":"7582296fc4fdcb5dfe12c81191f8979c90c74061","sha512_sri":"sha512-mvNKjh0ftQ2pKHFE5rXndAXFro0k5ukXqJNqsgH4Ld7vXskLXJC9PWWNSTCoDUwJlS8akBoYLEE3ItN7XmBz3A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/typscript-core/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018194","import_time":"2026-08-18T23:41:22.705888412Z","modified_time":"2026-08-18T23:21:45Z","sha256":"5120bfde64344d0e161bac3b4128d7eeecc483ad796361db09eacd138ecd3945","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0