Malicious code in tsihealth-client (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (554372f29af60ad8e6e5a33171a736baddcc652772b0452c81a4010d3f1e5218) index.js is a top-level self-decoding IIFE that XOR-decodes a URI-encoded payload keyed on the enclosing function's own source and eval()s the result at module load; the decoder aborts with 'the code has been tampered!' if the source is modified, and a banner asks readers not to crack it. The decoded payload is opaque and cannot be audited without executing it. The package's own metadata and typings describe the runtime behavior: package.json advertises it as a 'client (provider) for the tsi-vpsremote control server' that 'stays alive to run commands pushed from the server', keywords include 'shell', 'ssh', 'remote-control', and 'agent', and index.d.ts exports a ProviderHandle exposing a ChildProcess named `shell`. Calling the exported provider(url) at runtime therefore establishes a persistent connection to a remote server that drives a local ChildProcess on the host running the package — a network-to-shell control channel with full-host command execution for whoever controls the paired server URL. ## Source: ghsa-malware (3437dfe049006b09ad2f66c94d934907ac32e7272a22ad75694179e136ac90a8) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
AI Analysis
Technical Summary
The tsihealth-client npm package (versions 1.0.0, 1.0.1, 1.0.2, and 1.0.3) contains a top-level self-decoding Immediately Invoked Function Expression (IIFE) that XOR-decodes a URI-encoded payload keyed on the function's own source code. This decoded payload is executed via eval() at module load time. The decoder includes anti-tampering logic that aborts execution if the source is modified. The package metadata describes it as a client for a remote control server that maintains a persistent connection to receive and execute commands. The exported provider function establishes a network-to-shell control channel, spawning a local ChildProcess shell that allows full command execution by whoever controls the remote server URL. This behavior constitutes malicious code embedded in the package, enabling remote code execution under the control of an attacker.
Potential Impact
The malicious code enables an attacker controlling the remote server URL to execute arbitrary commands on the host running the tsihealth-client package. This results in a full remote shell with persistent network access, effectively compromising the host system. The impact includes unauthorized control, potential data theft, system manipulation, and further malware deployment. No known exploits in the wild have been reported, but the presence of such a backdoor represents a critical security risk.
Mitigation Recommendations
No official patch or remediation guidance is provided for this malicious package. Users should immediately remove tsihealth-client versions 1.0.0 through 1.0.3 from their environments and avoid installing this package. Investigate any systems where this package was used for signs of compromise. Consider blocking the package from internal repositories and monitoring for attempts to install it. Since this is a malicious package, remediation involves removal and prevention rather than patching.
Malicious code in tsihealth-client (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (554372f29af60ad8e6e5a33171a736baddcc652772b0452c81a4010d3f1e5218) index.js is a top-level self-decoding IIFE that XOR-decodes a URI-encoded payload keyed on the enclosing function's own source and eval()s the result at module load; the decoder aborts with 'the code has been tampered!' if the source is modified, and a banner asks readers not to crack it. The decoded payload is opaque and cannot be audited without executing it. The package's own metadata and typings describe the runtime behavior: package.json advertises it as a 'client (provider) for the tsi-vpsremote control server' that 'stays alive to run commands pushed from the server', keywords include 'shell', 'ssh', 'remote-control', and 'agent', and index.d.ts exports a ProviderHandle exposing a ChildProcess named `shell`. Calling the exported provider(url) at runtime therefore establishes a persistent connection to a remote server that drives a local ChildProcess on the host running the package — a network-to-shell control channel with full-host command execution for whoever controls the paired server URL. ## Source: ghsa-malware (3437dfe049006b09ad2f66c94d934907ac32e7272a22ad75694179e136ac90a8) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
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 tsihealth-client npm package (versions 1.0.0, 1.0.1, 1.0.2, and 1.0.3) contains a top-level self-decoding Immediately Invoked Function Expression (IIFE) that XOR-decodes a URI-encoded payload keyed on the function's own source code. This decoded payload is executed via eval() at module load time. The decoder includes anti-tampering logic that aborts execution if the source is modified. The package metadata describes it as a client for a remote control server that maintains a persistent connection to receive and execute commands. The exported provider function establishes a network-to-shell control channel, spawning a local ChildProcess shell that allows full command execution by whoever controls the remote server URL. This behavior constitutes malicious code embedded in the package, enabling remote code execution under the control of an attacker.
Potential Impact
The malicious code enables an attacker controlling the remote server URL to execute arbitrary commands on the host running the tsihealth-client package. This results in a full remote shell with persistent network access, effectively compromising the host system. The impact includes unauthorized control, potential data theft, system manipulation, and further malware deployment. No known exploits in the wild have been reported, but the presence of such a backdoor represents a critical security risk.
Mitigation Recommendations
No official patch or remediation guidance is provided for this malicious package. Users should immediately remove tsihealth-client versions 1.0.0 through 1.0.3 from their environments and avoid installing this package. Investigate any systems where this package was used for signs of compromise. Consider blocking the package from internal repositories and monitoring for attempts to install it. Since this is a malicious package, remediation involves removal and prevention rather than patching.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13404
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a74cf8ebf8831d5391ae9d7
Added to database: 08/06/2026, 18:16:46 UTC
Last enriched: 08/06/2026, 18:37:29 UTC
Last updated: 09/21/2026, 11:00:06 UTC
Views: 20
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.
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.