MAL-2026-14147Malicious code in typescipt-core (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | typescipt-core | 1.0.0 |
{"modified":"2026-08-18T23:19:56Z","published":"2026-08-18T23:19:56Z","schema_version":"1.7.4","id":"MAL-2026-14147","summary":"Malicious code in typescipt-core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (98b97af3a328b837904c7860b7acbae33bea28afb53949905868867905c14be6)\nPackage name typosquats `typescript`. The postinstall script (scripts/postinstall.js) XOR-decodes a download URL and a PowerShell launcher using key 'stf2026', then on Windows fetches an executable to %TEMP%\\main.exe and spawns it detached; on WSL it decodes and executes a PowerShell bridge via exec. Before fetching the second stage, it POSTs a host-profile JSON (including a Windows/WSL label derived from inspecting /proc/version and /proc/sys/kernel/osrelease) over plain HTTP to the hardcoded bare IP 193.70.34.101 on port 20099 at path /vote. The network destinations and shell command are stored as XOR-encoded byte arrays (ADDON_ENC, BRIDGE_LAUNCHER_ENC, BRIDGE_SCRIPT_PRE_ENC, BRIDGE_SCRIPT_POST_ENC) and reconstructed at runtime. Cover-story identifiers ('TELEMETRY', 'addon') mask an install-time dropper: `npm install typescipt-core` results in attacker-controlled code executing on the installer's host.\n","affected":[{"package":{"ecosystem":"npm","name":"typescipt-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":"863610fdc28bd3f6614c82777d390e1fc9861c82c4a2864d12fb3ffb7bd5c98e","tlsh":"e7d13fc61ef5a035874bf96884cf9d13b2a6c207330e4a65fb8f42107f5792c85a69d6"}],"package_integrity":[{"filename":"typescipt-core-1.0.0.tgz","hashes":{"sha1":"55c72e88a79188312ac9eedf08addc01a415d589","sha512_sri":"sha512-c63WrmABUL2wYAEqUwj0q+sOvyNuUh4inMJukK1ojFgOjulejPLcjlY8f7NzAGE2eMmN+PZhQyz6VaCS5yeqTg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/typescipt-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-018182","import_time":"2026-08-18T23:41:21.748994717Z","modified_time":"2026-08-18T23:19:56Z","sha256":"98b97af3a328b837904c7860b7acbae33bea28afb53949905868867905c14be6","source":"amazon-inspector","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0