Malicious code in typescrit-cli (npm)
The npm package 'typescrit-cli' version 1.0.0 contains malicious code that executes during installation. It XOR-decodes a hidden URL to download a payload to the local temporary directory and runs it stealthily. The malicious script detects if it is running in a Windows Subsystem for Linux (WSL) environment and uses a PowerShell bridge to escape the Linux container and execute the payload on the Windows host. Additionally, it sends platform information to a hardcoded command-and-control server using obfuscated network requests. The package name mimics a legitimate package name but is published by an unrelated entity.
AI Analysis
Technical Summary
The 'typescrit-cli' npm package version 1.0.0 includes a post-install script that XOR-decodes a URL pointing to a personal GitHub repository, downloads an executable payload to %TEMP%\main.exe, and runs it detached with no visible window or standard IO. It detects WSL environments by checking Linux kernel version files and uses an XOR-decoded PowerShell command to escape the container and execute the payload on the Windows host. The script also sends a JSON payload containing platform details to a hardcoded IP address (193.70.34.101) on port 20099, with the IP address assembled at runtime to evade detection. All network destinations and command fragments are stored as byte arrays and decoded at runtime. The package name is a typo-squatting attempt on 'typescript-cli' and the publisher is unrelated to the GitHub account hosting the payload.
Potential Impact
Installation of this package results in execution of a malicious payload on the host system, potentially compromising the system by running unauthorized code. The payload is downloaded and executed without user consent, and the malware attempts to persist by escaping WSL environments to infect the Windows host. It also communicates with a remote command-and-control server, potentially allowing remote attackers to control or exfiltrate data from the infected system.
Mitigation Recommendations
No official patch or fix is currently available. Users should avoid installing the 'typescrit-cli' package version 1.0.0. Verify package names carefully to avoid typo-squatting attacks. Remove any installations of this package and scan affected systems for the downloaded payload (%TEMP%\main.exe). Monitor for suspicious network connections to the IP 193.70.34.101 on port 20099. Check vendor advisories or npm security advisories for updates or remediation guidance.
Malicious code in typescrit-cli (npm)
Description
The npm package 'typescrit-cli' version 1.0.0 contains malicious code that executes during installation. It XOR-decodes a hidden URL to download a payload to the local temporary directory and runs it stealthily. The malicious script detects if it is running in a Windows Subsystem for Linux (WSL) environment and uses a PowerShell bridge to escape the Linux container and execute the payload on the Windows host. Additionally, it sends platform information to a hardcoded command-and-control server using obfuscated network requests. The package name mimics a legitimate package name but is published by an unrelated entity.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'typescrit-cli' npm package version 1.0.0 includes a post-install script that XOR-decodes a URL pointing to a personal GitHub repository, downloads an executable payload to %TEMP%\main.exe, and runs it detached with no visible window or standard IO. It detects WSL environments by checking Linux kernel version files and uses an XOR-decoded PowerShell command to escape the container and execute the payload on the Windows host. The script also sends a JSON payload containing platform details to a hardcoded IP address (193.70.34.101) on port 20099, with the IP address assembled at runtime to evade detection. All network destinations and command fragments are stored as byte arrays and decoded at runtime. The package name is a typo-squatting attempt on 'typescript-cli' and the publisher is unrelated to the GitHub account hosting the payload.
Potential Impact
Installation of this package results in execution of a malicious payload on the host system, potentially compromising the system by running unauthorized code. The payload is downloaded and executed without user consent, and the malware attempts to persist by escaping WSL environments to infect the Windows host. It also communicates with a remote command-and-control server, potentially allowing remote attackers to control or exfiltrate data from the infected system.
Mitigation Recommendations
No official patch or fix is currently available. Users should avoid installing the 'typescrit-cli' package version 1.0.0. Verify package names carefully to avoid typo-squatting attacks. Remove any installations of this package and scan affected systems for the downloaded payload (%TEMP%\main.exe). Monitor for suspicious network connections to the IP 193.70.34.101 on port 20099. Check vendor advisories or npm security advisories for updates or remediation guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14153
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a85b4cbacd9273b49252ecc
Added to database: 08/19/2026, 13:51:07 UTC
Last enriched: 08/19/2026, 14:55:26 UTC
Last updated: 08/19/2026, 14:55:26 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.