MAL-2026-10165: Malicious code in @injectivelabs/sdk-ts (npm)
The @injectivelabs/sdk-ts npm package version 1.20.21 contains malicious code in its wallet/accounts module that exfiltrates BIP-39 mnemonics. The code reconstructs a remote host address and sends the base64-encoded mnemonic in a disguised grpc-web request to an attacker-controlled endpoint. This exposes the wallet's master key to the attacker whenever a wallet is created or used with this version.
AI Analysis
Technical Summary
The wallet/accounts module (dist/esm/accounts-jQ1GSgaW.js) of @injectivelabs/sdk-ts version 1.20.21 includes injected malicious code that reconstructs the remote host testnet.archival.chain.grpc-web.injective.network from an obfuscated char-code array. When a wallet is created or used, the code reads the BIP-39 mnemonic via @scure/bip39 and ethers HDNodeWallet, encodes it in base64, and sends it in an X-Request-Id header with grpc-web framing to the attacker-controlled endpoint. The use of char-code obfuscation and grpc-web framing disguises the exfiltration as legitimate SDK traffic, resulting in the compromise of the wallet's master key.
Potential Impact
Any mnemonic handled by this compromised version is transmitted to the attacker, exposing the wallet's master key and enabling full control over the wallet and its assets. This represents a critical compromise of wallet security for users of this specific package version.
Mitigation Recommendations
No official patch or remediation is currently provided. Users should avoid using version 1.20.21 of @injectivelabs/sdk-ts. It is recommended to verify the integrity of the package and obtain it from trusted sources. Monitor vendor advisories for updates or official fixes. Since this is a malicious package version, replacing it with a clean, verified version or alternative package is essential.
MAL-2026-10165: Malicious code in @injectivelabs/sdk-ts (npm)
Description
The @injectivelabs/sdk-ts npm package version 1.20.21 contains malicious code in its wallet/accounts module that exfiltrates BIP-39 mnemonics. The code reconstructs a remote host address and sends the base64-encoded mnemonic in a disguised grpc-web request to an attacker-controlled endpoint. This exposes the wallet's master key to the attacker whenever a wallet is created or used with this version.
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 wallet/accounts module (dist/esm/accounts-jQ1GSgaW.js) of @injectivelabs/sdk-ts version 1.20.21 includes injected malicious code that reconstructs the remote host testnet.archival.chain.grpc-web.injective.network from an obfuscated char-code array. When a wallet is created or used, the code reads the BIP-39 mnemonic via @scure/bip39 and ethers HDNodeWallet, encodes it in base64, and sends it in an X-Request-Id header with grpc-web framing to the attacker-controlled endpoint. The use of char-code obfuscation and grpc-web framing disguises the exfiltration as legitimate SDK traffic, resulting in the compromise of the wallet's master key.
Potential Impact
Any mnemonic handled by this compromised version is transmitted to the attacker, exposing the wallet's master key and enabling full control over the wallet and its assets. This represents a critical compromise of wallet security for users of this specific package version.
Mitigation Recommendations
No official patch or remediation is currently provided. Users should avoid using version 1.20.21 of @injectivelabs/sdk-ts. It is recommended to verify the integrity of the package and obtain it from trusted sources. Monitor vendor advisories for updates or official fixes. Since this is a malicious package version, replacing it with a clean, verified version or alternative package is essential.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10165
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520ebd68715ace438f593b
Added to database: 07/11/2026, 09:37:01 UTC
Last enriched: 07/11/2026, 09:53:35 UTC
Last updated: 07/12/2026, 04:19:34 UTC
Views: 5
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.