Injective SDK on npm Poisoned to Steal Crypto Wallets
A supply chain attack (where an attacker compromises a trusted software component that developers rely on, infecting everything built with it downstream) hit the Injective Labs SDK this month, according to Bleeping Computer.
The Injective SDK is a development toolkit that programmers use to build cryptocurrency wallets, trading bots, and decentralised finance applications on the Injective blockchain. It gets downloaded roughly 50,000 times a week.
An attacker compromised a legitimate contributor's GitHub account on June 8 and used it to publish a malicious version of the package — version 1.20.21 — on npm (Node Package Manager, the central repository where developers download code libraries). The same poisoned version was pushed across 17 related packages.
The malware did not fire on installation. Instead, it waited until a developer called wallet functions, then silently captured mnemonic seed phrases (a 12–24 word backup code that grants full wallet access) and private keys. Those credentials were bundled together, encoded, and sent to an attacker-controlled server disguised as normal traffic to Injective's own infrastructure.
The malicious package was downloaded 310 times before being deprecated. Critically, it was deprecated rather than removed — the poisoned files are still accessible.
If you or your team use the Injective SDK: check your dependency versions immediately, transfer any cryptocurrency held in affected wallets to fresh wallets with new keys, and rotate all credentials in your build environment.
Sources

