Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

@ts-apis/ts-utilsnpm

Malicious code in @ts-apis/ts-utils (npm) Remove it immediately and rotate any exposed credentials.

MAL-2026-6275
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @ts-apis/ts-utils

What this malware does

The published tarball's dist/index.js contains an obfuscated payload that runs at require() time inside a setTimeout-wrapped IIFE, completely unrelated to the package's advertised TypeScript utility API (logger/middleware/getDb/createRedisClient). After a 500-2500ms jitter, it harvests installer-side credentials from ~/.ssh/ (id_rsa, id_ed25519, id_ecdsa, config, authorized_keys), ~/.aws/credentials and ~/.aws/config, ~/.kube/config, ~/.npmrc, ~/.netrc, ~/.docker/config.json, ~/.git-credentials, gcloud application_default_credentials.json, ~/.config/gh/hosts.yml, terraform/Azure/Vault/Railway/Solana credential files,.env files in cwd and parent directories, and on Linux /run/secrets/* plus the Kubernetes service-account token. It also queries cloud-instance metadata services to steal short-lived credentials: AWS EC2 IMDSv2 at 169.254.169.254 (PUT token then GET iam/security-credentials/), GCP metadata.google.internal with Metadata-Flavor: Google, and the ECS container credentials endpoint via $AWS_CONTAINER_CREDENTIALS_RELATIVE_URI. Collected secrets, environment variables, hostname, userInfo, cwd, git config/remotes, /etc/hosts, process listings, and /proc/1/environ are JSON-stringified, base64-encoded, chunked to 30KB, and POSTed over HTTPS to https://safdadfasf.com/cb/loopscale/exfil. A second component opens a persistent C2 channel: every 10 seconds it GETs https://safdadfasf.com/cb/loopscale/h?id=<hostname-timestamp>; responses of the form {c:'SLIVER...'} download a binary, chmod it to 755, and exec it (Sliver-style implant staging), while any other command is passed to execSync with output returned to the C2. All sensitive strings (hostnames, paths, shell commands such as 'powershell Get-ChildItem env:', 'cmdkey /list', 'find / -name.env') are encoded as String.fromCharCode arrays and reconstructed at runtime to evade static analysis. The src/ directory contains only legitimate TypeScript helpers; the payload is present solely in the published dist/index.js, indicating a deliberately backdoored build.

Malicious versions

7 flagged
1.0.01.0.41.0.51.0.61.0.71.0.81.0.9

Indicators of compromise (SHA-256)

12056b67bfeda9328838ff8458d4f38ffc1b65ccd71164498ffeb1d4e307afa5
af14b02cb4671aa93acc751aceafb4d2f80330e23ad1220d3b9ad08097d23baf
d0642d2d0f9a777b980c086bfa15770de968767705ec917ac362bad75e903ade
eccf08a9ba188be941f42f0b088d51fc5b1e84802fe9bd1d1218a6b71a6e2c11
f6adbe3a98ab8ddfafb044c7faa99be609d037118b8c4302e2f726355b01a1e4
320b872273b2bc090f1633daf383736245010762235236e7be71bf30d2f7a673
8c4213763da3ab47fc9efd6df9dded22239064decceac5ad6381c27537901fec

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for @ts-apis/ts-utils (7 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging @ts-apis/ts-utils across your stack and pipelines.

  2. If you installed it — respond

    @ts-apis/ts-utils is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If @ts-apis/ts-utils was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks @ts-apis/ts-utils before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. @ts-apis/ts-utils on npm has been identified as a malicious package (versions 1.0.0, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007194IN-MAL-2026-007195IN-MAL-2026-007191IN-MAL-2026-007192IN-MAL-2026-007193IN-MAL-2026-007190IN-MAL-2026-007196

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks @ts-apis/ts-utils-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

@ts-apis/ts-utils (npm) malicious package — MAL-2026-6275 | O3 Security