• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Sq Magazine LogoSQ Magazine

Smarter Insights for a Fast-Moving Digital World

  • Latest News
  • Statistics
  • Tools
  • About
  • Contact
  • Subscribe
Subscribe
Sq Magazine Logo
  • Latest News
  • Statistics
  • Tools
  • About
  • Contact
Add as a preferred
source on Google
Home » Cybersecurity

npm Attack Hits Keyv and Cacheable Packages, Security Alert

Published on: August 4, 2026 • Last Updated: September 8, 2026, 6:51 AM EDT
Sofia Ramirez
Senior Tech Writer • 689 Articles
Sofia Ramirez is a technology and cybersecurity writer at SQ Magazine. With a keen eye on emerging threats and innovations, she helps reader...
LATEST POSTS:
Apple Moves Romantic AI Companions and Dating Apps to 18+
Static Bot Rules Lose When the Bots Retrain Faster
Siemens IoT2050 Flaw Exploited to Plant Node-RED Backdoors
Robert A. Lee
Senior Editor • 473 Articles
Robert A. Lee is a journalist at SQ Magazine who unpacks the fast-moving worlds of gaming and internet trends. He tracks everything from maj...
LATEST POSTS:
Yelp Statistics 2026: Reviews, Revenue and Advertiser Base
Education Technology Trends: What Holds Up in 2026
Anthropic Files S-1 for Nasdaq IPO Under Symbol ANT
Npm Attack Hits Keyv And Cacheable
As Featured In
The New York Times LogoForbes LogoWired LogoDeloitte LogoResearch.com Logo
Share on LinkedIn ChatGPT Perplexity Share on X Share on Facebook

A compromised release of the `keyv` npm package, published at 09:35 UTC on August 4, 2026, spread a credential-stealing worm across over 400 distinct npm packages within roughly 30 minutes, according to Wiz.

Quick Summary – TLDR:

  • Attackers published a malicious `keyv@6.0.0` release and 10 related packages, per Snyk, after compromising a maintainer account on GitHub.
  • A hidden `preinstall` script deployed a 727,680-byte payload that harvests GitHub tokens, cloud credentials, private keys, and database connection strings.
  • The repository also planted persistence hooks inside Claude Code and VS Code that only trigger if a developer trusts the workspace, The Hacker News found.
  • The malicious release still carried valid npm attestation and GitHub Actions trusted-publisher credentials, passing the standard signing checks.
  • Pre-incident downloads for the affected packages topped 619,682,667 for `keyv` alone in the month before the compromise, per Snyk.

What Happened?

The npm package keyv, a widely used key-value storage library, shipped a modified `package.json` adding `”preinstall“: “node setup.mjs“` to version 6.0.0. That loader fetched a 727,680-byte second-stage payload named `Math_Symbol.js`, which Snyk’s analysis found performs platform checks for Linux, macOS, and Windows, use of child_process.execFileSync, filesystem operations, HTTPS access, and Bun runtime handling. It is the same class of dependency-poisoning trick that hit AWS CodeBuild, which risked a JavaScript SDK used by about 66% of cloud environments.

The same attacker published 10 related packages in the `cacheable` family, including `@cacheable/net`, `cache-manager`, and `file-entry-cache`. The worm then republished itself into other organizations’ packages every 2 to 7 minutes, completing its cross-organization burst in roughly half an hour.

Beyond npm’s own install hooks, Wiz Research traced the intrusion to a compromised GitHub maintainer account used to inject IDE persistence payloads into the keyv repository starting around 09:00 UTC. The repository’s `.claude/settings.json` carried a `SessionStart` hook, and `.vscode/tasks.json` carried a `folderOpen` task, each pointing at a setup script in the other tool’s directory. Both require the developer, or an autonomous coding agent, to trust the workspace first: VS Code blocks automatic tasks in untrusted workspaces by default, and Claude Code applies its own workspace trust restrictions.

‼️ BREAKING: An active npm supply chain attack has compromised at least 868 packages carrying over 2 billion monthly installs with a credential-stealing worm. Shai-Hulud is back.

It started with the compromise of the GitHub account of the maintainer behind keyv, a library with… pic.twitter.com/OpaAa64w8i

— International Cyber Digest (@IntCyberDigest) August 4, 2026

Signed and Verified, But Not Safe

The malicious release passed the checks teams normally rely on to trust a dependency:

  • The commit author identity showed as `github-actions[bot]` carrying a verified GitHub signature.
  • The release carried valid OIDC and SLSA provenance through keyv’s own GitHub Actions workflow.
  • Snyk read that combination as evidence of compromise of an account, credential, session, or release path rather than an unauthorized outside maintainer inserting code by hand.

That distinction matters more than it sounds. Provenance attestation proves a release came out of the pipeline it claims to, not that the pipeline itself is clean. A compromised maintainer token satisfies every automated trust check a supply-chain scanner runs.

Security firms’ scale estimates diverged sharply as the incident unfolded, a normal feature of real-time worm telemetry rather than a discrepancy in the underlying attack. SafeDep’s initial count of 353 poisoned versions across 79 package names later grew to 1,684 versions across 420 names, while Socket estimated 442 versions across 353 names and Aikido counted at least 868 packages across 1,381 versions. Wiz’s own tally put the damage at over 400 distinct npm packages.

Wiz attributed the payload to a descendant of the ‘Mini’ Shai-Hulud malware family, tying it to earlier TeamPCP and antv supply-chain campaigns. Stolen data was exfiltrated to GitHub repositories created under compromised identities, using the description “Shai-Hulud: Here We Go Again“, and the malware’s command-and-control layer used an Ethereum smart contract to retrieve domains dynamically instead of relying on hardcoded infrastructure.

npm’s own response was partial in the first hours. The registry removed three malicious versions between 10:39 and 11:11 UTC, but eight malicious releases were still tagged “latest” in Snyk’s 11:16 UTC snapshot. The gap fits a wider pattern tracked in Cybersecurity Jobs: 55% of cybersecurity teams report being understaffed, and 65% have unfilled roles, a shortfall that slows exactly the kind of rapid, cross-registry cleanup this worm demanded.

What’s Next?

Pin known-clean versions such as `keyv@5.6.0` and `flat-cache@6.1.23`, then reinstall with lifecycle scripts disabled. From there, sequence carefully: hunt for and disable the malware’s `gh-token-monitor` persistence mechanism before rotating credentials, since rotating first can trip the malware’s own credential-revocation watcher. npm 12 and later block unapproved dependency lifecycle scripts by default, but earlier versions remain exposed to the same `preinstall` trick this worm used.

Coding-agent workflows carry a related exposure worth auditing alongside npm hooks. Cymulate researchers separately disclosed a command-injection flaw in Claude’s coding assistant, CVE-2025-54795, reachable through whitelisted commands such as echo, pwd, and whoami, via Claude AI Command Injection Vulnerabilities, a reminder that the trust boundary around coding-agent workspaces is an active target well beyond this one worm.

On the defensive side, vendors shipping multi-platform client software are shifting from point-in-time scans to continuous composition monitoring. Return-to-China VPN operator QuickFox partnered with Murphy Security in September 2026 to run software composition identification, supply chain poisoning detection, and license compliance checks across its Windows, macOS, Android, iOS, and TV clients.

Newsletter
Don’t chase tech news. We track it for you.

One weekly briefing with the launches, AI developments, and breaches that matter. No filler.

Read by pros at Fortinet, TSMC, Barclays, and Deloitte.

SQ Magazine’s Takeaway

One compromised maintainer credential reached over 400 packages in a single August 2026 morning. A `preinstall` hook used to mean a risky install script. Here, it meant a Bun-compiled binary hunting for GitHub tokens, Kubernetes secrets, and cloud keys, wrapped in attestation that made the release look routine to every automated scanner checking for it.

The IDE hooks are the detail that helps reduce any sense that this is over once the bad versions are unpublished. A workspace trust prompt has not historically carried much weight as a security boundary, and coding agents that auto-approve trust to save a click widen exactly the path this worm tried to open. Closing that gap means auditing install scripts and workspace trust settings alongside pinning clean package versions, not settling for the version pin alone.

This article has been reviewed and fact-checked by Robert A. Lee. SQ Magazine follows strict Publishing Principles and a documented Fact-Check Policy to ensure accuracy, transparency, and editorial independence across all content.

Add SQ Magazine as a Preferred Source on Google for updates! Follow on Google News
Share ChatGPT Perplexity

References

  • Inside the keyv npm Compromise: preinstall Malware, Trusted Provenance, and IDE Hooks (Snyk, August 4, 2026)
  • keyv and cacheable npm Package Hijacked in Supply Chain Attack (Wiz Research, August 4, 2026)
Sofia Ramirez

Sofia Ramirez

Senior Tech Writer


Sofia Ramirez is a technology and cybersecurity writer at SQ Magazine. With a keen eye on emerging threats and innovations, she helps readers stay informed and secure in today’s fast-changing tech landscape. Passionate about making cybersecurity accessible, Sofia blends research-driven analysis with straightforward explanations; so whether you’re a tech professional or a curious reader, her work ensures you’re always one step ahead in the digital world.

Related Posts

Axios Npm Attack Pushes Trojan Through Packages
Cybersecurity

Axios npm Attack Pushes RAT Through Malicious Packages

Trapdoor Malware Attacks Rust Pypi And Npm Devs
Cybersecurity

TrapDoor Malware Targets npm, PyPI, and Rust Developers

Cursor Ai Agent Extension Flaw Unpatched
Cybersecurity

Cursor AI Flaw Lets Hackers Steal API Keys and Run Code Silently

Disclaimer: The content published on SQ Magazine is for informational and educational purposes only. Please verify details independently before making any important decisions based on our content.

Reader Interactions

Leave a Comment Cancel reply

Primary Sidebar

Connect With Us

facebook x linkedin google-news telegram pinterest whatsapp email
google-preferred-source-badge Add as a preferred source on Google

You Should Also Read

Tensorlake npm Package Hit by Dangerous Malware Worm
Zapier, Postman, ENS Hit as Shai-Hulud Malware Infects Hundreds of npm Packages
Cursor Warns Fake Claude Code Extension Planted SSH Backdoor

Table of Contents

  • Quick Summary – TLDR:
  • What Happened?
  • Signed and Verified, But Not Safe
  • What’s Next?
  • SQ Magazine’s Takeaway

Weekly stats quiz Week 45

How much of a tech geek are you?

5 fast questions from this week's verified industry data. About a minute.

Play the quiz New every Monday

Footer

SQ Magazine Logo

Smarter Insights for a Fast-Moving Digital World

Connect With Us

Follow Us on Google News

Editorial & Trust

  • About
  • Publishing Principles
  • Fact-Check Policy
  • Corrections Policy
  • Ethics Policy
  • Disclaimer
  • Cookie Policy

Worth Checking

  • The Tech Index
  • The Threat Index
  • Social Media Attention Span Stats
  • Instagram Followers Stats
  • Google Usage Stats
  • LLM Hallucination Stats
  • Gen Z Social Media Stats
Contact Us
13570 Grove Dr #189,
Maple Grove, MN 55311,
United States
10 a.m. to 6 p.m. | Every day

Copyright © 2022–2026 SQ Magazine. All Rights Reserved. Powered by the Neural Stack.

  • Privacy Policy
  • Terms
  • Accessibility Statement
Company
  • About Us
  • Our Team
  • Our Mission
  • Core Values
Discover
  • Brand Assets
    Brand Assets
  • Stats Methodology
    Stats Research Process
  • Glossary
    Glossary
Categories
  • Internet
  • Technology
  • Artificial Intelligence
  • Gaming
Internet
Yelp Statistics 2026: Reviews, Revenue and Advertiser Base
Yelp Statistics 2026: Reviews, Revenue and Advertiser Base
Influencer Marketing Platform Statistics 2026: Market and Spend
Influencer Marketing Platform Statistics 2026: Market and Spend
Dailymotion Statistics Users Views and Market Share
Dailymotion Statistics 2026: Users, Views and Market Share
Average Attention Span Statistics The Cross-Domain Numbers
Average Attention Span Statistics 2026: The Cross-Domain Numbers
How Many Videos Are on YouTube Statistics
How Many Videos Are on YouTube Statistics 2026: Key Data
How Many People Work at WhatsApp
How Many People Work at WhatsApp 2026: Employee Count and History
Technology
RevenueCat Statistics Apps Revenue and Market Share
RevenueCat Statistics 2026: Apps, Revenue and Market Share
Linux Distro Market Share Statistics Most Popular Distributions
Linux Distro Market Share Statistics 2026: Most Popular Distributions
Average US Salary Statistics Median Income by Age and State
Average US Salary Statistics 2026: Median Income by Age and State
Aptoide Statistics 2026: Downloads, Users and App Store Share
Aptoide Statistics 2026: Downloads, Users and App Store Share
AppsFlyer Statistics Customers Revenue and Market Position
AppsFlyer Statistics 2026: Customers, Revenue and Market Position
How Many iPhones Has Apple Sold
How Many iPhones Has Apple Sold in 2026? Units Sold by Year
Artificial Intelligence
NotebookLM Statistics Users Growth and Adoption
NotebookLM Statistics 2026: Users, Growth and Adoption
Cursor AI Statistics 2026: Users, Revenue and Developer Adoption
Cursor AI Statistics 2026: Users, Revenue and Developer Adoption
AI Search Engine Statistics Usage Market Share and Adoption
AI Search Engine Statistics 2026: Usage, Market Share and Adoption
AI Music Statistics
AI Music Statistics 2026: Generation, Adoption and Industry Impact
AI Coding Statistics
AI Coding Statistics 2026: Adoption, Productivity and Market Data
How Much Content on Social Media Is AI Generated Statistics
How Much Content on Social Media Is AI Generated Statistics 2026: Hidden Truths
Gaming
Clash Royale Statistics Revenue Players and Engagement
Clash Royale Statistics 2026: Revenue, Players and Engagement
Gaming Statistics
Gaming Statistics 2026: Market Size, Players, Revenue, and Platforms
Roblox vs Minecraft Statistics
Roblox vs Minecraft Statistics 2026: Players, Revenue, Creators
Online Gambling Regulations Statistics
Online Gambling Regulations Statistics 2026: Global Compliance and Enforcement Data
Fantasy Sports Statistics
Fantasy Sports Statistics 2026: Users, Revenue & Trends
Apex Legends Statistics 2026: Players, Revenue, and Esports
Apex Legends Statistics 2026: Players, Revenue, and Esports
Categories
  • Artificial Intelligence
  • Cybersecurity
  • Technology
  • Internet
Artificial Intelligence
Chatgpt Work Codex Limits
ChatGPT and Codex to Share Usage Limits as Work Tab Merges
Nvidia Nemotron 3 5 Transcribe Model
Nvidia Releases Open Nemotron 3.5 Transcribe Model for 40 Languages
Google Deepmind Genie 4 Adds Native Audio And Live Scene
Google DeepMind Genie 4 Adds Native Audio and Live Scene Edits
Anthropic European Consultancy Firms
Anthropic and Hg to Launch AI Consultancy for European Firms
Google Cloud Brings Openai Models
Google Cloud Brings OpenAI Models to Enterprise Customers
Muse Spark Open Launched With Apple
Meta’s Muse Spark Open Lands With Fine Print and a China Gap
Cybersecurity
Siemens Gateway Vulnerabiltiy Exploit
Siemens IoT2050 Flaw Exploited to Plant Node-RED Backdoors
Google Videostrong Android Tv Botnet Disruption
Google Disrupts Massive Android TV Botnet, Bans Device Maker
Chainalysis Data Breach Ai
Chainalysis Discloses AI-Linked Breach Exposing Customer Data
Claude Code Malicious Extension Cursor Ai
Cursor Warns Fake Claude Code Extension Planted SSH Backdoor
Telegram Voice Call Vulnerability
Telegram Android Flaw Exposes Phones to Voice Call Attacks
Vmware Esxi Flaw Chinese Hackers
Warp Panda Exploited Low-Severity VMware ESXi Flaw to Hide Tracks
Technology
Apple App Store Romantic Ai Apps Removal
Apple Moves Romantic AI Companions and Dating Apps to 18+
Amazon Echo Time Smart Device Launch
Amazon Unveils Echo Time: A Smarter Alarm Clock
Arc Browser Shutdown Confirmed
The Browser Company Will Shut Down Arc on December 22
Spotify Family Plan Qr Sharing
Spotify Adds QR Checks to Verify Family Plan Households
Apple Music New Logo Rebrand
Apple Music Rebrands With a Logo Made by Fred Again’s Music
Apple Homepod Mini 2 Preorder Featured 1
Apple Launches HomePod Mini 2 with £149 and Opens Pre-Order
Internet
Anthropic Files S 1 Ipo With Sec
Anthropic Files S-1 for Nasdaq IPO Under Symbol ANT
Microsoft 365 Family Sharing Storage Cuts
Microsoft 365 Family Faces Massive OneDrive Storage Cut
Meta Launched Meta One Subscription
Meta One Bundles Instagram, Facebook, WhatsApp Into One AI Subscription
Apple Wallet Ids Launch In Oklahoma
Apple Wallet IDs Launch in Oklahoma in Major Expansion
Meta to Pay 18 Billion in Landmark Teen Safety Deal
Meta to Pay $18 Billion in Landmark Teen Safety Deal
Whatsapp Brings Passkeys 2fa
WhatsApp Hits 1 Billion Passkey Users, Adds 2FA Passwords
Security Calculators
  • Random Password Generator Strong random passwords, with the strength of each shown.
  • Uptime Calculator Downtime an uptime target allows, from a day to a year.
  • Download Time Calculator How long a file takes at your connection speed.
Network Tools
  • What Is My IP Address Your public IP, provider and location, read at the edge.
  • IP Subnet Calculator Network, broadcast, host range and mask for any IPv4 block.
  • What Is My User Agent What a user agent string says about the browser behind it.
  • What Is My Screen Resolution Your screen size, pixel ratio and viewport, read live.
  • TXT Record Lookup TXT, SPF and DMARC records for any domain.
All 7 Network Tools
AI Tools
  • Token Counter Token counts for GPT-4o and GPT-4 encodings.
All 11 tools
Newsletter

Too much tech noise?

We respect your time. One high-signal briefing a week: tech, AI, and security. Nothing else.

Read by pros at Fortinet, TSMC, Barclays, and Deloitte.