• 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
  • About
  • Contact
Subscribe
Sq Magazine Logo
  • Latest News
  • Statistics
  • About
  • Contact
Subscribe
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
Written By
Sofia Ramirez
Sofia Ramirez
Senior Tech Writer • 606 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:
ChatGPT Billing Scam Exposes Critical OpenAI Account Risk
Gyazo Breach Exposes Link IDs Behind Private Captures
Spain’s AEPD Logs First Data Breach Caused by AI Agent
Robert A. Lee
Reviewed By
Robert A. Lee
Robert A. Lee
Senior Editor • 453 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:
Meta One Bundles Instagram, Facebook, WhatsApp Into One AI Subscription
How Many Videos Are on YouTube Statistics 2026: Key Data
How Do Promotional Codes Work in Online Gambling?
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.

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

Megalodon Malware Hits Thousands Of Github Projects
Cybersecurity

New Megalodon Malware Hits Thousands of GitHub Projects

N8n Rce Threat Affects Thousands Of Systems
Cybersecurity

Massive RCE Threat in n8n Platform Impacts Thousands of Exposed Systems

Attackers Hijack N Central Servers
Cybersecurity

N-able N-central Bypass Exploited: Patch to 2026.3.1.7 Now

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

Zapier, Postman, ENS Hit as Shai-Hulud Malware Infects Hundreds of npm Packages
Axios npm Attack Pushes RAT Through Malicious Packages
TrapDoor Malware Targets npm, PyPI, and Rust Developers

Table of Contents

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

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

Worth Checking

  • Social Media Attention Span Stats
  • Gen Z Social Media Statistics
  • TikTok vs. Instagram Statistics
  • LLM Hallucination Statistics
  • Spotify User Statistics
  • Apple Customer Loyalty Statistics
  • Data Breach Tracker
  • Patch Tuesday Dashboard
  • AI Model Tracker
  • AI Funding Tracker
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
  • Cybersecurity
Internet
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
Spotify Listening Statistics
Spotify Listening Statistics 2026: Average Listening Time
How Many Subscribers Does MrBeast Have
How Many Subscribers Does MrBeast Have in 2026? Channel Growth Statistics
WhatsApp Business Statistics
WhatsApp Business Statistics 2026: Real Market Insights
Udemy Statistics
Udemy Statistics 2026: Revenue and Learner Data
Technology
How Many iPhones Has Apple Sold
How Many iPhones Has Apple Sold in 2026? Units Sold by Year
How Many Employees Does Amazon Have
How Many Employees Does Amazon Have 2026: Workforce Growth
Netflix vs. Hulu Statistics
Netflix vs Hulu Statistics 2026: Viewer Growth Data
TripAdvisor Statistics
TripAdvisor Statistics 2026: Revenue, Reviews, Viator and TheFork Data
Search Engine Statistics
Search Engine Statistics 2026: Market Share, Volume & AI Shift
NVIDIA Employee Count Statistics
NVIDIA Employee Count Statistics 2026: Headcount, R&D, and Revenue
Artificial Intelligence
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
ChatGPT vs DeepSeek Statistics
ChatGPT vs DeepSeek Statistics 2026: Users, Benchmarks & Pricing
ChatGPT vs Claude vs Gemini vs Perplexity Statistics
ChatGPT vs Claude vs Gemini vs Perplexity Statistics 2026: Users, Revenue & Market Share
Gaming
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
Apex Legends Statistics 2026: Players, Revenue, and Esports
Fortnite Statistics
Fortnite Statistics 2026: Players, Revenue, Esports, and Engagement
Cybersecurity
Signal Statistics
Signal Statistics 2026: Users, Finances and Encryption Adoption
Password Statistics
Password Statistics 2026: Credential Theft, MFA, and the Passkey Tipping Point
Identity Theft Statistics
Identity Theft Statistics 2026: Key Fraud Data and Trends
CVE Statistics
CVE Statistics 2026: Severity Distribution and Top Affected Vendors
Dark Web AI Tool Marketplace Statistics
Dark Web AI Tool Marketplace Statistics 2026: Explosive Market Growth
API Security Breach Statistics
API Security Breach Statistics 2026: Hidden Threats
Categories
  • Cybersecurity
  • Artificial Intelligence
  • Internet
  • Technology
  • Gaming
Cybersecurity
Microsoft Patches Azure Ai Foundry Cvss 10 Flaw Featured 1
Microsoft Patches 18 Azure and Copilot Security Vulnerabilities
Chatgpt Billing Phishing Scam Active
ChatGPT Billing Scam Exposes Critical OpenAI Account Risk
Gyazo Data Breach Image Metadata Leak
Gyazo Breach Exposes Link IDs Behind Private Captures
Spain Aepd Ai Assisted Cyberattack
Spain’s AEPD Logs First Data Breach Caused by AI Agent
Centerpoint Energy Data Breach Confirmation
CenterPoint Energy Confirms Breach After Hacker Claims 7.49M Records Stolen
Events Calendar Plugin Vulnerability Wordpress
The Events Calendar Plugin Exposes 600,000 Sites to Takeover
Artificial Intelligence
Perplexity Computer Model Effort Control
Perplexity Computer Adds Powerful Effort Controls for Model Selection
Anthropic Merges Claude Chat And Cowork
Anthropic Merges Claude Chat and Cowork Into One Window
Novo Nordisk Anthropic Drug R D
Novo Partners With Anthropic for Faster Drug R&D
Gemini 3 8 Live And Extended Thinking Launch
Google Launches Gemini 3.8 Live and Extended Thinking Models
Openai Ends 1 Us Government Deal
OpenAI Ends $1 Government Deal, Offers 50% Discount
Openai Samsung Ai Chip Alliance
OpenAI Taps Samsung for Breakthrough Next-Gen Chips
Internet
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
Apple Eu App Store Fee Reduction
Apple Sets New EU App Store Fees, Effective October 1
Github Outage Aug 2026
GitHub Down: Outage Hits Thousands of Users Worldwide
Technology
New Samsung Patent Reveals Galaxy Watch Glucose Tracking
New Samsung Patent Reveals Galaxy Watch Glucose Tracking
Microsoft Kb5002914 Breaks Excel Copypaste
Microsoft Confirms KB5002914 Breaks Excel Copy and Paste
Homepod 27 Update Launched By Apple
Apple Releases HomePod Software 27 With AutoMix Support
Microsoft Copilot Now In Carplay
Microsoft Brings Copilot on Apple CarPlay for iOS Users
Snapchat Social Event Planning Feature
Snap Brings Social Event Planning Feature With Private Invites
Apple Iphone 18 And 18 Pro Launched
iPhone 18 Pro Debuts With Breakthrough Camera Upgrades
Gaming
Xbox Live Down Again
Xbox Live Down Again: Sign-In Error 0x80004005 Hits Players
Gta Vi Official Cover Art
GTA 6 Pre-Orders Start June 25, New Cover Art Unveiled
Epic Games Teases Unreal Engine 6 For Rocket League
Epic Games Teases Unreal Engine 6 for Rocket League
Stardew Valley Launched For Nintendo Switch 2 Edition
Stardew Valley Switch 2 Edition Arrives with Online Co-op
Hogwarts Legacy Game Crosses 40m Downloads
Hogwarts Legacy Crosses 40M Sales, Beating Industry Giants
Pubg Black Budget Closed Alpha Launched
PUBG: Black Budget Launches Closed Alpha Test With a Bold PvPvE Twist
Newsletter

Too much tech noise?

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

Newsletter

The SQ Briefing

We track tech, AI, and security 24/7. You get a 5-minute weekly summary.