TRENDING
The sun setting over the sea behind a pyramid-shaped stone monument at Cape Soya, the northernmost point of Japan
November 23, 2026
How to Retire an API Endpoint in FastAPI: Send Deprecation and Sunset Headers, Find the Clients Still Calling It, Schedule Brownouts, and Block an Early Removal With oasdiff
Brass sextant in an open wooden case inside a museum display, an instrument for measuring the angle to the horizon
November 23, 2026
MIT Technology Review’s “Most Misunderstood Graph” Update Reports METR’s Judgment Findings Mostly Fairly, but It Never Says Each Point Is a 50% Success Rate or Gives the New 3.6-Month Doubling Time and 2.1 to 4.9 Month Range, and It Credits OpenAI With a Comparison METR Built
Brass telescope on a wooden tripod inside a white observatory dome with the roof slit open to the sky
November 23, 2026
Rackspace Says Leaked Credentials Let an Intruder Act as Legitimate Users in Some Spot Customer Organizations and Reach Their Kubernetes Secrets, a Platform9 Co-Founder Names a Breached Observability System as the Root Cause, and the Status Page Says Only “System Maintenance Operations”
A person sweeping a metal detector across a wet sandy beach with a sea fort on the horizon
November 23, 2026
How to Write YARA Rules With YARA-X to Hunt Malicious Python .pth Startup Files and Measure False Positives Before You Trust Them
A peeling black-and-white metal door standing ajar, with a dark empty hall and bright windows beyond
November 23, 2026
AWS’s “Found a Zero-Day on Their Own” Post Never Names the Product; the Advisory Behind Its Link Shows a Server That Ships With No Login, a README Now Saying Keep It Off the Internet, and a Fix Merged October 19 That PyPI and Docker Hub Still Do Not Carry
23 Nov 2026
SXZ.io SXZ.io
  • Home
Search the Site
Popular Searches:
Technology Amazon AI
Recent Posts
A chalkboard covered with handwritten equations and a boxed inequality, standing for a mathematical proof
How to Prove a Rust Function Correct With Verus: Write a Spec, Read the Prover’s Errors, and Find the Bugs Tests Miss
November 22, 2026
Wooden folding rule showing a Burgos-inch scale above a centimetre scale, resting on a stone beside a lake
OpenAI’s Perplexity Proposal Turns One Internal Chart Into a Candidate Industry Limit, but Its “Cybersecurity Expert” Label Sits at 0.828, Not Below 0.8, the Millennium Prize Label Rides a November Release for a September Result, and on Open Models Per-Token Loss Hides a 2.25x Compression Gap
November 22, 2026
A fallstreak hole, a round gap punched through a layer of thin cloud, with deep blue sky showing inside it, a tree on the right and a rooftop edge at the bottom left
GL.iNet Replaced Its Advice to Factory-Reset Every Router and KVM With a Check for One Process, but a 199-Router Survey Found That Process on None, and Sunday’s First Stable Fixes Left Out the Slate AX Model With Most of the Root Shells
November 22, 2026
SXZ.io SXZ.io
  • Home

Categories

Articles 311 Posts
News 317 Posts
Learning Hub 283 Posts
Home/News/ChainDrop Worm Infected Over 400 npm Packages While Leaving Their Source Code Clean
News

ChainDrop Worm Infected Over 400 npm Packages While Leaving Their Source Code Clean

A worm called ChainDrop hijacked a maintainer's GitHub account to spread through hundreds of npm packages by rewriting their published tarballs instead of source code, then hid its command server...

August 16, 2026 4 Min Read
100

On August 4, 2026, an attacker compromised the GitHub account belonging to the maintainer of keyv, a widely used npm caching library, and used it to launch a self-replicating worm that Microsoft’s security research team named ChainDrop. More than a week later, security researchers are still unpacking exactly how quietly it spread: rather than tampering with the source code developers actually review, ChainDrop rewrites the compressed packages npm distributes after the fact, then locates its command server by querying an Ethereum smart contract instead of a fixed domain. Packages hit by the worm are downloaded a combined 2 billion times a month, according to a report from The Register published this weekend.

Table Of Content

  • A Stolen GitHub Login, Not a Stolen npm Token
  • Why Reviewing the Source Code Would Not Have Caught It
  • Credentials, Everywhere
  • Hiding the Command Center Inside a Smart Contract
  • A New Infection Path: Just Opening the Project
  • What to Actually Do About It

A Stolen GitHub Login, Not a Stolen npm Token

Most npm supply chain attacks start with a leaked publishing token. ChainDrop started differently: the attacker took over the maintainer’s GitHub account itself. According to a technical breakdown from StepSecurity, the compromised account pushed unsigned commits directly to keyv’s main branch and used GitHub’s own release workflow to publish new versions. Because those releases moved through legitimate CI/CD pipelines using OIDC Trusted Publishing, they carried valid SLSA provenance attestations, the cryptographic record that is supposed to prove a package build can be trusted. StepSecurity’s writeup is blunt about the gap that opened up: provenance proves the build pipeline ran as configured, not that the commit behind it was actually authorized by a human.

From keyv, the worm spread automatically into related packages maintained by the same developer, including cacheable, flat-cache, and file-entry-cache. BleepingComputer reported that downstream projects tied to companies including Deliveroo, Ornikar, Picsart, Qlik, and ServiceTitan pulled in poisoned versions.

Why Reviewing the Source Code Would Not Have Caught It

ChainDrop’s defining trick is where it hides. Instead of committing malicious code to a package’s Git history, it rebuilds the tarball, the compressed archive npm actually ships to installers, after a legitimate release already exists. Microsoft’s security team described the mechanism directly: “the propagation routine downloads a package’s latest tarball, copies the current malware bundle into it, adds a loader, and replaces its lifecycle scripts,” all without ever touching the source repository a developer would audit. Comparing a published package against its GitHub source would turn up nothing, because the tampering happens entirely after that comparison point.

The initial infection runs through npm’s preinstall lifecycle hook, so it fires automatically the moment a developer or a CI pipeline runs npm install against a poisoned version, before the install even finishes. Rather than bundling its own JavaScript engine, the dropper downloads the real, legitimate Bun runtime straight from Bun’s official GitHub releases and runs its second-stage payload through that: a living-off-the-land technique that blends in with normal developer tooling instead of shipping a distinct binary for security tools to flag.

Credentials, Everywhere

Once running, the Bun-based payload goes after credentials across nearly every cloud a target might use. StepSecurity’s analysis found it querying AWS Secrets Manager and Systems Manager parameters across 16 regions, probing HashiCorp Vault and Kubernetes configuration, and reading Claude Code’s local credentials file. On GitHub Actions runners specifically, it uses a helper script to dump readable process memory and search it for secret values before CI jobs even finish. Anything it steals is compressed, encrypted with a random AES-256 key generated for that run, and that AES key is itself sealed with an embedded RSA public key, so only the attacker holding the matching private key can ever decrypt what was taken.

Hiding the Command Center Inside a Smart Contract

The most novel part of ChainDrop is how it finds its command-and-control server. Instead of hardcoding a domain defenders could simply block, the malware queries an Ethereum smart contract, a technique StepSecurity’s researchers call EtherHiding. Microsoft’s writeup names the specific contract address, 0xE1f2395ee43e45A1556EC6438a88c31B83493103, and StepSecurity documented the malware checking it across 75 different public Ethereum RPC endpoints to fetch its answer. At the time of Microsoft’s analysis, the contract was returning the domain npm-cache[.]com; earlier versions had pointed to pypi-get[.]com and js-mirror[.]com, hinting the same infrastructure could be repointed at Python’s package ecosystem next. Because the real answer lives on a public blockchain rather than inside the malware itself, the attacker can rotate to a new domain at will, and taking down any single domain does nothing to stop the worm from finding the next one.

A New Infection Path: Just Opening the Project

ChainDrop does not only spread through npm install. Using stolen GitHub credentials, it also commits malicious configuration files, specifically .claude/settings.json and .vscode/tasks.json, directly into a victim’s other repositories and branches. The Register reported that simply opening an infected branch in Visual Studio Code or Claude Code is enough to trigger a background task that starts harvesting credentials again, with no install step required. ActiveState CEO Abby Kearns, writing about the campaign, put it bluntly: developers should now be “treating repository-supplied configuration as executable content, because that is what it is now.”

What to Actually Do About It

The affected packages were pulled from npm once discovered, but the mitigations researchers are recommending go beyond removing bad versions. Passing --ignore-scripts to npm install neutralizes ChainDrop’s initial dropper, since the entire attack depends on that preinstall hook running. sxz.io has previously covered how to set up dependency cooldowns that delay adoption of freshly published package versions by a few days, a policy StepSecurity specifically recommends here because it would have kept most installs behind the worm’s initial spread window. Provenance attestations alone are not enough, since ChainDrop’s own releases passed that check; StepSecurity recommends pairing provenance with change detection on what a release actually adds, new files and new lifecycle scripts in particular. Teams that depend on keyv, cacheable, flat-cache, or file-entry-cache should also check every branch, not just main, for unexpected .claude/settings.json or .vscode/tasks.json files, and rotate any credentials that may have touched an infected machine from a separate, clean system. sxz.io’s earlier walkthrough on detecting malicious npm preinstall scripts, written the day after the initial keyv compromise was disclosed, covers the verification steps in more detail.

Tags:

GitHub SecurityMalwarenpmSupply Chain Security

Share

A hotel-style key board with numbered tags, some slots holding keys and others empty
Previous Post

How to Detect and Revoke Suspicious Login Sessions in a Python Web App

A draft horse pulls a plow through a field while a farmer walks behind holding the reins
Next Post

Google’s Gemini 3.7 Flash Turns AI Pricing Into a Compression Race

No Comment! Be the first one.

Leave a Reply Cancel reply

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

Latest
22 Nov
How to Prove a Rust Function Correct With Verus: Write a Spec, Read the Prover’s Errors, and Find the Bugs Tests Miss
22 Nov
OpenAI’s Perplexity Proposal Turns One Internal Chart Into a Candidate Industry Limit, but Its “Cybersecurity Expert” Label Sits at 0.828, Not Below 0.8, the Millennium Prize Label Rides a November Release for a September Result, and on Open Models Per-Token Loss Hides a 2.25x Compression Gap
Trending
November 22, 2026
How to Prove a Rust Function Correct With Verus: Write a Spec, Read the Prover’s Errors, and Find the Bugs Tests Miss
November 22, 2026
OpenAI’s Perplexity Proposal Turns One Internal Chart Into a Candidate Industry Limit, but Its “Cybersecurity Expert” Label Sits at 0.828, Not Below 0.8, the Millennium Prize Label Rides a November Release for a September Result, and on Open Models Per-Token Loss Hides a 2.25x Compression Gap
November 22, 2026
GL.iNet Replaced Its Advice to Factory-Reset Every Router and KVM With a Check for One Process, but a 199-Router Survey Found That Process on None, and Sunday’s First Stable Fixes Left Out the Slate AX Model With Most of the Root Shells
November 22, 2026
How to Retire an API Endpoint in FastAPI: Send Deprecation and Sunset Headers, Find the Clients Still Calling It, Schedule Brownouts, and Block an Early Removal With oasdiff
November 22, 2026
MIT Technology Review’s “Most Misunderstood Graph” Update Reports METR’s Judgment Findings Mostly Fairly, but It Never Says Each Point Is a 50% Success Rate or Gives the New 3.6-Month Doubling Time and 2.1 to 4.9 Month Range, and It Credits OpenAI With a Comparison METR Built
November 22, 2026
Rackspace Says Leaked Credentials Let an Intruder Act as Legitimate Users in Some Spot Customer Organizations and Reach Their Kubernetes Secrets, a Platform9 Co-Founder Names a Breached Observability System as the Root Cause, and the Status Page Says Only “System Maintenance Operations”

Related Posts

Rows of server racks in a data center representing network infrastructure targeted by botnets
News

C0XMO Botnet Shows Why Old Router Firmware Still Matters

June 7, 2026
Close-up of a USB flash drive, representing physical data-theft risk in office security incidents
News

Fake IT Support Is Now Walking Through the Front Door

June 7, 2026
A phone security app on a smartphone resting on a laptop keyboard.
News

Everest Forms Pro Flaw Is Being Exploited to Create Rogue WordPress Admins

June 7, 2026
A phone secured by a padlock, illustrating AI data-leak containment and security controls.
News

OpenAI’s Lockdown Mode Is a Data-Leak Brake, Not a Prompt-Injection Cure

June 8, 2026
SXZ.io SXZ.io
  • [email protected]

Categories

Articles
Learning Hub
News

All Rights Reserved by SXZ.io ©2026