@ts-apis/ts-utils (npm) · Malicious Code
Affects @ts-apis/ts-utilsSource GCVE Database
Malicious package : remove @ts-apis/ts-utils and rotate any secrets on hosts that installed it.
Data as of 14 Aug 2026, 16:48 UTC
Malicious package
Published to npm · OSV MAL-2026-6275
What to do
Remove @ts-apis/ts-utils from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npm@ts-apis/ts-utils | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package @ts-apis/ts-utils contains a malicious backdoor in its published dist/index.js file that executes an obfuscated payload at require() time. This payload harvests a wide range of sensitive credentials and configuration files from the host system, including SSH keys, AWS, Kubernetes, Docker, Git, Google Cloud, Terraform, Azure, Vault, Railway, Solana credentials, environment files, and Linux secrets. It also queries cloud instance metadata services to steal short-lived credentials. The stolen data is encoded and exfiltrated via HTTPS to a remote server. Additionally, the malware establishes a persistent command-and-control channel that can download and execute further malicious binaries and run arbitrary shell commands. The malicious code is deliberately hidden in the distributed build, while the source directory contains only legitimate code, indicating a supply chain compromise. Any system with this package installed should be considered fully compromised.
References
- npmjs.com/package/@ts-apis/ts-utils/v/1.0.0 (opens in a new tab)
- npmjs.com/package/@ts-apis/ts-utils/v/1.0.7 (opens in a new tab)
- npmjs.com/package/@ts-apis/ts-utils/v/1.0.9 (opens in a new tab)
- npmjs.com/package/@ts-apis/ts-utils/v/1.0.8 (opens in a new tab)
- npmjs.com/package/@ts-apis/ts-utils/v/1.0.5 (opens in a new tab)
- npmjs.com/package/@ts-apis/ts-utils/v/1.0.4 (opens in a new tab)
- npmjs.com/package/@ts-apis/ts-utils/v/1.0.6 (opens in a new tab)
- github.com/advisories/GHSA-3xmx-2xxv-rpfq (opens in a new tab)
- npmjs.com/package/@ts-apis/ts-utils/v/1.0.3 (opens in a new tab)
- npmjs.com/package/@ts-apis/ts-utils/v/1.1.0 (opens in a new tab)
- npmjs.com/package/@ts-apis/ts-utils/v/1.0.2 (opens in a new tab)
- npmjs.com/package/@ts-apis/ts-utils/v/1.0.1 (opens in a new tab)