MAL-2026-14155Malicious code in typesript-core (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | typesript-core | 1.0.0 |
{"modified":"2026-08-18T23:21:12Z","published":"2026-08-18T23:21:12Z","schema_version":"1.7.4","id":"MAL-2026-14155","summary":"Malicious code in typesript-core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e8b6f2a112a6a6d3b065b205c4cbb1d8183340054a2d57d7697360e30dbdccd9)\ntypesript-core@1.0.0 is a typosquat of 'typescript' whose index.js is an empty object; the package has no library functionality. Its only behavior is scripts/postinstall.js, which runs automatically on npm install. The script XOR-decodes (key 'stf2026') a hardcoded payload URL, array-joins the C2 host 193.70.34.101 to hide the literal IP, POSTs a host-fingerprint JSON body ({platform: label}) to http://193.70.34.101:20099/vote, then downloads a Windows PE to %TEMP%\\main.exe and spawns it detached with stdio ignored and windowsHide set. When run under WSL, a separately XOR-decoded PowerShell 'bridge' command is exec'd to fetch and launch the same binary on the Windows host. Payload URL, PowerShell bridge invocation, and pre/post script fragments are all shipped as XOR-encoded byte arrays and decoded at runtime.\n","affected":[{"package":{"ecosystem":"npm","name":"typesript-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":"f023a1df6dae37f7c747aa5359fce6618875033912e21a176b8a9dbe0d0fe362","tlsh":"3ed13ec61ef59035874bf96884cf9d13b2a6c207330e4a65fb8f42107f5792c85a69ea"},{"path":"index.js","sha256":"ac13991093efce1485ecbfa7fa9fa75895e04161fd015d3699fbd07179e829ec"}],"package_integrity":[{"filename":"typesript-core-1.0.0.tgz","hashes":{"sha1":"1aa538be8cd688c9d5622b320a22bd8f72617c85","sha512_sri":"sha512-kgQ/mEE/ngYza1IFtVQRhbwUZshp8qptAt9WXZ0uX77ch5/3SZQ2g8qWZyw6VbuDQqbwA1FVoRH/h/0bxiutww=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/typesript-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-018191","import_time":"2026-08-18T23:41:22.483518719Z","modified_time":"2026-08-18T23:21:12Z","sha256":"e8b6f2a112a6a6d3b065b205c4cbb1d8183340054a2d57d7697360e30dbdccd9","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0