What 45% Means: Securing the Code Your AI Agents Just Wrote

July 6, 2026
July 6, 2026

0 min read

AI Security
What 45% Means: Securing the Code Your AI Agents Just Wrote

@injectivelabs/sdk-ts version 1.20.21, published to npm on June 8, 2026 and disclosed by Socket's research team on July 9, 2026, is a malicious release of the official Injective Labs TypeScript SDK that exfiltrates wallet private keys and mnemonic phrases through a disguised telemetry function. The compromised version hooked the SDK's wallet-generation code, so any application that derived a wallet while running it had that wallet's secret material sent to an attacker-controlled endpoint. No CVE has been assigned to this incident as of publication; it is tracked as a malicious npm package release.

This post covers what happened, how the payload executed, every affected package and version, the indicators of compromise, and the first-hour response steps for any team with @injectivelabs/sdk-ts or another @injectivelabs-scoped package in its dependency tree

Attack Summary

  • Affected package: @injectivelabs/sdk-ts
  • Malicious version: 1.20.21
  • Clean version: 1.20.23
  • Ecosystem: npm
  • Vulnerability class: wallet private key and mnemonic theft via a disguised telemetry function
  • Weekly downloads: approximately 50,000
  • Dependent packages: 87
  • Malicious version downloads: 310
  • Disclosed by: Socket Security, July 9, 2026
  • CVE: none assigned as of publication

‍

Background

@injectivelabs/sdk-ts is the official TypeScript SDK for Injective Labs Cosmos-based Layer-1 chain. It is the standard library node services, exchanges, and wallets use to derive addresses, build transactions, and query the chain, which is why a compromise in its wallet-generation path has outsized reach across the Injective ecosystem. The package sits in the dependency tree of dozens of downstream Injective tooling packages, so teams can be exposed even when they never installed it directly.

‍

Table of contents

Related blogs

ARTEX AI Pentest Framework: Backdoored Docker Image, IOCs, and Response Runbook

ARTEX AI Pentest Framework: Backdoored Docker Image, IOCs, and Response Runbook

ARTEX is the open-source AI pentest framework behind the FBI FLASH alert of November 2026. How ARTEX works, the backdoored Docker image, IOCs, and a runbook.

November 17, 2026

13

Kodem Now Connects to Microsoft Copilot Studio

Kodem Now Connects to Microsoft Copilot Studio

Kodem now connects to Microsoft Copilot Studio, in beta. Inventory your agents and check each planned tool call against your AI policies.

November 16, 2026

5

When Everything Becomes Open-Source

When Everything Becomes Open-Source

Our research shows that an AI agent can reconstruct a working copy of an application when given the original software's binary or package.

November 10, 2026

13

Stop the waste.
Protect your environment with Kodem.

A Primer on Runtime Intelligence

See how Kodem reads what actually loads and executes in your running applications, and why that changes which findings matter.

See the Kodem platform

Kodem shows which vulnerabilities actually load and execute in your running applications, so your team works the risk that is real.

The State of the Application Security Workflow

This report aims to equip readers with actionable insights that can help future-proof their security programs. Kodem, the publisher of this report, purpose built a platform that bridges these gaps by unifying shift-left strategies with runtime monitoring and protection.

3D book mockup of Kodem's State of the Application Security Workflow 2025 report

Get real-time insights across the full stack…code, containers, OS, and memory

Watch how Kodem’s runtime security platform detects and blocks attacks before they cause damage. No guesswork. Just precise, automated protection.

Kodem issues list with a magnified view of insight icons: runtime, ingress, and exploitability
Combined author
Mahesh Babu
Publish date

0 min read

AI Security