By using this site, you agree to the Privacy Policy and Terms of Use.
Accept

AceFortis

Cybersecurity Research

  • Home
Search

Categories

  • Cybersecurity
  • Penetration Testing
  • Frameworks & Theory
  • CVE & Vulnerabilities
  • Hacking Tutorials
  • Tools & Reviews
  • CTF
  • Certifications

Tools & Platforms

  • TryHackMe vs HackTheBox: A Beginner’s Comparison
  • Burp Suite vs OWASP ZAP: Complete Pentesting Comparison
  • Kali vs Parrot OS: Best Pentesting Distro 2026 Comparison
  • Metasploit vs Cobalt Strike: Features, Pricing, Evasion
  • Nmap Network Scanning Tutorial for Beginners (2026)
  • Contact
  • Blog
  • Complaint
  • Advertise
© 2026 AceFortis. All Rights Reserved.
Reading: ChainDrop: The npm Worm That Infected 444 Packages in 4 Hours
Share
Notification Show More
Font ResizerAa

AceFortis

Cybersecurity Research

Font ResizerAa
Search
Follow US
  • Contact
  • Blog
  • Complaint
  • Advertise
© 2026 AceFortis. All Rights Reserved.
Uncategorized

ChainDrop: The npm Worm That Infected 444 Packages in 4 Hours

0x1ak4sh
Last updated: August 8, 2026 12:30 am
0x1ak4sh
Share
SHARE

ChainDrop: The npm Worm That Infected 444 Packages in 4 Hours

August 2026 Supply Chain Attack

Contents
What HappenedHow ChainDrop WorkedStage 1: Initial CompromiseStage 2: Payload InjectionStage 3: Self-PropagationThe Technical TimelineAffected Packages (Partial List)Why It Spread So Fast1. SLSA Provenance Not Enough2. preinstall Hook Abused3. Monorepo Blast RadiusRemediation ChecklistIf You Installed Any Affected PackageHow to Protect Your Projects1. Pin Exact Versions2. Enable npm Audit in CI3. Use a Private Registry Proxy4. Monitor for Anomalies5. Minimal Token ScopesThe Bigger PictureLessons LearnedResources

What Happened

On August 4, 2026, at 09:02 AM UTC, an attacker pushed a malicious commit to the popular keyv npm package. Within four hours, 444 packages had been compromised. Over 2,200 malicious versions were published to npm.

Total weekly downloads of affected packages? Over 450 million.

This wasn’t a typical supply chain attack. It was a self-propagating worm.


How ChainDrop Worked

Stage 1: Initial Compromise

The attacker gained access to maintainer accounts for several high-profile packages:

  • keyv – Key-value storage abstraction
  • cacheable – Caching library
  • ecto – Database toolkit
  • And 400+ more

The method? Likely credential theft via phishing or session hijacking.

Stage 2: Payload Injection

Each compromised package received identical malicious code:

// Added to preinstall script
"preinstall": "node setup.mjs"

The setup.mjs file:
1. Harvested npm tokens from developer machines
2. Grabbed GitHub personal access tokens
3. Stole cloud credentials (AWS, GCP, Azure)
4. Exfiltrated SSH keys

Stage 3: Self-Propagation

Here’s where it got clever.

When the worm found valid npm tokens, it automatically published malicious versions of other packages accessible with those credentials.

Token from a Firebase maintainer? Worm publishes @firebase/app@malicious.
Token from a Next.js contributor? Worm hits that too.

It spread like a virus through the dependency graph.


The Technical Timeline

Time (UTC)Event
09:02:37First malicious commit to keyv repo
09:35:00keyv@6.0.0 published to npm (malicious)
09:35-10:30444 packages compromised
10:06cacheable family packages infected
10:28ecto@5.0.1 published malicious
11:28GitHub release created (delayed cover)
14:00+Security researchers detect anomaly

In under 4 hours: 2,212 malicious versions published.


Affected Packages (Partial List)

High-Impact Packages:
– keyv – 150M+ weekly downloads
– cacheable – Caching utility
– cacheable-request – HTTP caching
– cache-manager – Multi-cache manager
– flat-cache – File-based cache
– file-entry-cache – File metadata cache
– ecto – Database toolkit

Organizations Compromised:
– OneReach (170+ packages)
– Qlik (30+ packages)
– ServiceTitan (100+ packages)
– Ornikar (40+ packages)


Why It Spread So Fast

1. SLSA Provenance Not Enough

The attack had valid SLSA provenance attestations – the industry’s gold standard for software supply chain security. The worm was signed with legitimate build credentials.

Signature doesn’t mean safe.

2. preinstall Hook Abused

npm runs preinstall scripts automatically before installation. Developers don’t review package code before running npm install.

3. Monorepo Blast Radius

Many affected packages were in monorepos. Compromising one maintainer token gave access to dozens of packages.


Remediation Checklist

If You Installed Any Affected Package

1. Check your lock files

# Search for affected versions
npm ls | grep -E "keyv@6.0.0|cacheable@2.5.1|ecto@5.0.1"

# For specific packages
npm ls keyv
npm ls cacheable-request
npm ls cache-manager

2. Rotate ALL credentials immediately
– npm tokens (all scopes)
– GitHub personal access tokens
– Cloud provider keys (AWS, GCP, Azure)
– CI/CD secrets
– SSH private keys used on affected machines

# NPM
npm logout
npm login
# Then regenerate all tokens at npmjs.com/settings/tokens

# GitHub
# Go to github.com/settings/tokens and delete ALL tokens
# Generate new ones with minimal required scopes

3. Check for signs of compromise

# Look for unexpected network connections
lsof -i | grep -E "node|npm"

# Check for credential files
find ~/.npmrc ~/.aws ~/.ssh -mtime -7

# Review process list for unusual node processes
ps aux | grep node

4. Reinstall from clean cache

npm cache clean --force
rm -rf node_modules package-lock.json
npm install

How to Protect Your Projects

1. Pin Exact Versions

Don’t use version ranges. Pin to exact versions.

// BAD
"dependencies": {
  "keyv": "^6.0.0"
}

// GOOD
"dependencies": {
  "keyv": "6.0.1"  // Known safe version
}

2. Enable npm Audit in CI

# GitHub Actions
- name: Security Audit
  run: npm audit --audit-level=high

3. Use a Private Registry Proxy

Services like Artifactory or Nexus can:
– Cache approved versions
– Block known malicious packages
– Add “cooldown” period before new versions are available

4. Monitor for Anomalies

Watch for:
– Unexpected version bumps
– New pre/post install scripts
– Large file size changes
– Unusual dependency additions

5. Minimal Token Scopes

Never use tokens with more permissions than necessary. Use:
– Read-only tokens for CI
– Short-lived tokens
– Package-specific tokens where possible


The Bigger Picture

ChainDrop wasn’t the first npm supply chain attack. But it was the most sophisticated.

Previous attacks:
– Shai-Hulud (2025) – 800 packages, self-propagating
– Axios compromise (March 2026) – Cross-platform RAT
– TeamPCP attacks – Targeted PyPI and npm

Each attack gets more clever. Each spreads faster.


Lessons Learned

  1. Supply chain attacks are the new frontier – Attackers target the build, not the app
  2. ~~Trusted maintainers~~ Never fully trust – Even legitimate accounts get compromised
  3. Speed matters – 4 hours from first commit to 444 packages infected
  4. Layer defenses – Signed packages + audit + monitoring + least privilege

The era of npm install without review is over.


Resources

  • Datadog Security Labs Analysis
  • StepSecurity: ChainDrop Analysis
  • CISA Alert: Axios Supply Chain

Bottom line: Every npm install runs code on your machine. Know what you’re installing.

You Might Also Like

Pass-the-Hash Attacks: Complete Guide for Pentesters
Best Linux Gaming Distros 2026: Performance & Philosophy
What is Phishing? 2026 Guide to Spot & Stop Attacks
Ubuntu vs Linux Mint 2026: Which Should You Use?
Malware Types for Beginners: The 7 You Need to Know

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
[mc4wp_form]
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Copy Link Print
Share
Previous Article wp2shell: The Critical WordPress RCE That Needed No Credentials
Next Article Shai-Hulud: The npm Worm That Compromised 800+ Packages
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest News

Is Penetration Testing Dead in 2026? The Truth About the “Commoditization” Fear
CRTO Certification: Certified Red Team Operator
CRTP Certification: Windows Active Directory Pentesting
PNPT Certification: Practical Network Pentesting from TCM

You Might also Like

Uncategorized

Linux vs Windows for Developers: Performance, Cost & Security

0x1ak4sh
0x1ak4sh
16 Min Read
Uncategorized

What is a Firewall? A Beginner’s Guide to Network Security

0x1ak4sh
0x1ak4sh
17 Min Read
Uncategorized

What is Two-Factor Authentication? A Simple 2026 Guide

0x1ak4sh
0x1ak4sh
16 Min Read
//

Sharing knowledge that keeps the digital world a little safer.

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

[mc4wp_form id=”1616″]

AceFortisAceFortis
Follow US
© 2026 AceFortis. All Rights Reserved.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?