← Lab /Security & privacy

Supply chain attack hijacks over 400 npm packages in the keyv/cacheable ecosystem

A compromised GitHub maintainer account was used to publish malicious versions of keyv and related packages, resulting in a worm that has spread to more than 400 npm packages.

Security & privacy Wiz Research 4 Aug 2026 Incident analysis Real-world evidence

Published as “keyv and cacheable npm Package Hijacked in Supply Chain Attack”

Why it matters

The attack shows that a single compromised maintainer can quickly distribute malicious code throughout the npm ecosystem, exposing a wide range of developer and cloud credentials.

Summary

Wiz researchers discovered that a GitHub maintainer account was compromised and used to publish malicious versions of the keyv and cacheable npm packages. The payload, based on the Mini Shai-Hulud malware family, adds new features such as retrieving C2 domains from an Ethereum smart contract and a dead-man's switch. The worm has propagated to over 400 distinct npm packages and expands credential theft targets by roughly 70%. Evidence comes from analysis of the malicious package code, commit history, and on-chain contract data.

What they found 3

  1. The worm has spread to over 400 npm packages.

    “This worm has since propagated to over 400 distinct npm packages.”

  2. C2 domains are retrieved from an Ethereum smart contract.

    “The malware now retrieves its command-and-control (C2) domains from an Ethereum smart contract (StringListStore) using an eth_call, rather than embedding them in the payload.”

  3. Credential-theft targets increased by almost 70%.

    “Targets for credential theft have been expanded by almost 70%, with new additions including AI-agent credential stores for Claude, OpenAI, Codex, Cursor and Gemini; cryptocurrency keystores for Foundry, Solana and Monero; self-hosted CI and registry secrets such as Jenkins' master.key, Argo CD and Harbor; Alibaba Cloud and Tencent Cloud CLI configurations; and system files including /etc/shadow.”

Caveats 1

  • This blog presents our initial findings based on the analysis completed so far.

What’s new here 4

  • Identification of a compromised maintainer account that introduced malicious keyv versions.
  • Malware now fetches C2 domains from an Ethereum smart contract, enabling dynamic updates.
  • Credential-theft targets expanded by ~70% to include AI model APIs and multiple crypto wallets.
  • Propagation observed across more than 400 npm packages in the ecosystem.

In the news