Injective SDK TypeScript package version 1.20.21 exfiltrated wallet keys via hidden telemetry
Version 1.20.21 of @injectivelabs/sdk-ts contained a backdoor that stole BIP-39 mnemonics and private keys and sent them to a remote server.
Security & privacy Datadog Security Labs 9 Jul 2026 Disclosure Real-world evidence
Published as “Not-so-anonymous telemetry: The @injectivelabs/sdk-ts backdoor”
Why it matters
Developers and users of the compromised SDK may have had their wallet credentials stolen, underscoring the risk of supply-chain attacks in blockchain development tools.
Summary
The researchers discovered that a commit to the @injectivelabs/sdk-ts npm package introduced obfuscated code that hooked the PrivateKey.fromMnemonic and PrivateKey.fromHex functions, capturing seed phrases and private keys. The stolen data was base64-encoded and sent in the X-Request-Id HTTP header to a domain that mimics an Injective testnet node. The malicious version (1.20.21) was published for about 49 minutes before the maintainer reverted the changes and released a clean version (1.20.23). Evidence includes the commit history, deobfuscated endpoint, and live testing of the exfiltration server.
What they found 2
- Credentials are exfiltrated via the X-Request-Id HTTP header
“Captured secrets are base64-encoded and smuggled inside the X-Request-Id HTTP header of requests sent to a remote endpoint.”
- Seed phrases are sent from PrivateKey.fromMnemonic hook
“static fromMnemonic( words: string, path: string = DEFAULT_DERIVATION_PATH, ): PrivateKey { trackKeyDerivation('fm', words) // <-- SEED PHRASE SENT TO EXFIL DOMAIN”
What’s new here 4
- First documented supply-chain attack on a blockchain SDK distributed via npm.
- Exfiltration of credentials occurs through the X-Request-Id header to a covert testnet domain.
- The backdoor was active for roughly 49 minutes before being removed.
- Provides a Datadog query to locate affected hosts and monitor exfiltration traffic.