# @injectivelabs/wallet-private-key - compromised npm versions

> @injectivelabs/wallet-private-key on the npm registry has 1 version flagged in 1 tracked supply-chain incident. Only the exact versions listed below were named by the source advisories. @injectivelabs/wallet-private-key is a legitimate package. Only the versions listed were malicious; other versions were not affected, but a lockfile that resolved to a listed version installed the payload.

- Package: @injectivelabs/wallet-private-key
- Ecosystem: npm
- Highest severity: critical
- Kind: Compromise
- Compromised versions: 1.20.21
- Check what you have installed: `npm ls @injectivelabs/wallet-private-key`

## The incident that flagged it

| Date | Severity | Kind | Incident | Versions named |
|---|---|---|---|---|
| 2026-07-08 | critical | Compromise | [@injectivelabs/sdk-ts + 16 sibling packages compromised - wallet-key stealer shipped via GitHub maintainer takeover](https://dependencywatch.io/incident/npm-2026-07-08-injectivelabs-sdk-ts-crypto-wallet-drain) | 1.20.21 |

## What to do if you installed one of these

1. Treat the machine as compromised rather than simply upgrading. Packages in these incidents typically execute at install time, so the payload has already run with whatever credentials were in the environment.
2. Rotate every credential that machine or CI job could reach - registry tokens, cloud keys, SSH keys, CI secrets - from a *different* machine.
3. Pin to a version not listed above, then reinstall from a clean lockfile.
4. Clear caches and private mirrors. Artifactory, Nexus, Verdaccio, and devpi routinely keep serving a tarball after the public registry has pulled it.
5. Read the incident write-up linked above - recommended actions differ per incident, and some have specific indicators of compromise worth grepping your logs for.

## Check your whole project

A compromised package is often a transitive dependency rather than one you installed directly. Paste your package-lock.json to check every dependency at once: https://dependencywatch.io/check/package-lock-json

All flagged npm packages: https://dependencywatch.io/package/npm

## Other packages in the same incident

If @injectivelabs/wallet-private-key is in your tree, these are worth checking too - they were published by the same campaign.

- [@injectivelabs/exceptions](https://dependencywatch.io/package/npm/@injectivelabs/exceptions) (npm)
- [@injectivelabs/networks](https://dependencywatch.io/package/npm/@injectivelabs/networks) (npm)
- [@injectivelabs/sdk-ts](https://dependencywatch.io/package/npm/@injectivelabs/sdk-ts) (npm)
- [@injectivelabs/ts-types](https://dependencywatch.io/package/npm/@injectivelabs/ts-types) (npm)
- [@injectivelabs/utils](https://dependencywatch.io/package/npm/@injectivelabs/utils) (npm)
- [@injectivelabs/wallet-base](https://dependencywatch.io/package/npm/@injectivelabs/wallet-base) (npm)
- [@injectivelabs/wallet-core](https://dependencywatch.io/package/npm/@injectivelabs/wallet-core) (npm)
- [@injectivelabs/wallet-cosmos](https://dependencywatch.io/package/npm/@injectivelabs/wallet-cosmos) (npm)
- [@injectivelabs/wallet-cosmos-strategy](https://dependencywatch.io/package/npm/@injectivelabs/wallet-cosmos-strategy) (npm)
- [@injectivelabs/wallet-evm](https://dependencywatch.io/package/npm/@injectivelabs/wallet-evm) (npm)
- [@injectivelabs/wallet-ledger](https://dependencywatch.io/package/npm/@injectivelabs/wallet-ledger) (npm)
- [@injectivelabs/wallet-magic](https://dependencywatch.io/package/npm/@injectivelabs/wallet-magic) (npm)

Full incident: https://dependencywatch.io/incident/npm-2026-07-08-injectivelabs-sdk-ts-crypto-wallet-drain

## Sourcing

Version data comes from the public advisories cited on each incident page. We list only versions those advisories name - we don't infer additional ones. Corrections: https://dependencywatch.io/submit

---

Canonical page: https://dependencywatch.io/package/npm/@injectivelabs/wallet-private-key
Markdown version: https://dependencywatch.io/package/npm/@injectivelabs/wallet-private-key.md
Site index for agents: https://dependencywatch.io/llms.txt
DependencyWatch.io is operated by Precursor Security (https://precursorsecurity.com).
