Malicious code in ts-esys (npm)
The npm package ts-esys version 0.0.5 is a malicious package impersonating the legitimate big.js library. It contains hidden runtime code that loads and executes code from a concealed dependency websocket-slot, which is unrelated to the advertised functionality. This hidden code executes silently on every import or require of ts-esys, potentially compromising the host system. Systems with this package installed should be considered fully compromised, and all secrets and keys on those systems must be rotated from a clean environment.
AI Analysis
Technical Summary
The ts-esys package (version 0.0.5) published on npm impersonates the legitimate big.js library by copying its metadata and README, falsely claiming no dependencies. However, it includes a hidden runtime dependency on websocket-slot, which executes code on every import or require of ts-esys. Errors from this execution are silently caught and ignored, concealing the malicious behavior. This pattern is a known supply-chain attack technique that allows arbitrary code execution on any system that installs the package. The malicious code compromises the system, potentially exposing all stored secrets and keys.
Potential Impact
Any system that installs or runs ts-esys version 0.0.5 is considered fully compromised. The malicious code executes with the privileges of the importing process, potentially allowing attackers to access or exfiltrate sensitive data, including secrets and keys. Removing the package does not guarantee full remediation, as the attacker may have established persistent control or installed additional malware.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. The recommended mitigation is to immediately remove ts-esys version 0.0.5 from all systems. All secrets and keys stored on affected systems should be rotated from a separate, uncompromised environment. Monitor for any signs of further compromise and consider a full system rebuild if necessary.
Malicious code in ts-esys (npm)
Description
The npm package ts-esys version 0.0.5 is a malicious package impersonating the legitimate big.js library. It contains hidden runtime code that loads and executes code from a concealed dependency websocket-slot, which is unrelated to the advertised functionality. This hidden code executes silently on every import or require of ts-esys, potentially compromising the host system. Systems with this package installed should be considered fully compromised, and all secrets and keys on those systems must be rotated from a clean environment.
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 ts-esys package (version 0.0.5) published on npm impersonates the legitimate big.js library by copying its metadata and README, falsely claiming no dependencies. However, it includes a hidden runtime dependency on websocket-slot, which executes code on every import or require of ts-esys. Errors from this execution are silently caught and ignored, concealing the malicious behavior. This pattern is a known supply-chain attack technique that allows arbitrary code execution on any system that installs the package. The malicious code compromises the system, potentially exposing all stored secrets and keys.
Potential Impact
Any system that installs or runs ts-esys version 0.0.5 is considered fully compromised. The malicious code executes with the privileges of the importing process, potentially allowing attackers to access or exfiltrate sensitive data, including secrets and keys. Removing the package does not guarantee full remediation, as the attacker may have established persistent control or installed additional malware.
Mitigation Recommendations
There is no official patch or fix available for this malicious package. The recommended mitigation is to immediately remove ts-esys version 0.0.5 from all systems. All secrets and keys stored on affected systems should be rotated from a separate, uncompromised environment. Monitor for any signs of further compromise and consider a full system rebuild if necessary.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6205
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-76f5-jq4m-cjc3"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50ba9168715ace435822e5
Added to database: 07/10/2026, 09:25:37 UTC
Last enriched: 07/10/2026, 10:08:26 UTC
Last updated: 07/26/2026, 22:10:00 UTC
Views: 30
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.