Self-propagating worm in npm compromised Keyv and other widely used packages
A large scale supply chain attack on npm was described on 4 August 2026 by Aikido and by Microsoft. The attack is tracked as ChainDrop and linked to a variant of Mini Shai-Hulud. It compromised Keyv and other widely used packages with malware that ran during installation, stole credentials from developers, build pipelines, GitHub, npm and cloud services, and used that access to publish further infected releases automatically. The incident shows how one compromised maintainer or build identity can spread malware rapidly across open source that many organisations rely on.
What happens technically
An npm package can run code as part of installation, through a script that is called automatically when the package is pulled in. That is a practical mechanism, and it is at the same time the shortest path from a package to a machine. Both the developer's own machine and the build server in the pipeline run that code without anyone reading it first.
The worm property is what makes ChainDrop serious. According to the descriptions the malware stole credentials from developers, build pipelines, GitHub, npm and cloud services, and then used the npm credentials to publish new infected releases of other packages automatically. The spread is then self sustaining, because every compromised maintainer becomes the starting point for the next round. Build identities are particularly valuable here, since they often hold the right to publish without a human approving, and since they are designed to run unattended. Secrets sitting as environment variables in a build job are therefore not merely a local problem.
What this means for you if you have a web solution
The most important point here, in our view, is that this reaches you even if you do not develop software yourself. Almost every modern web solution pulls in hundreds of packages indirectly. If you had a portal built by an agency, you carry the same exposure without having written a line of code. Whether you use Keyv is therefore rarely a question you can answer without asking your supplier.
What separates those who handle this well from the rest is whether they hold a list of what actually goes into their own solutions. With a software bill of materials the lookup takes minutes. Without one it becomes a round of phone calls over several days, while credentials that may already be stolen keep working. Credential rotation is the part we see forgotten most often, because an updated package does not remove a token the attacker has already collected. If your organisation is covered by NIS2, this is the supply chain in Article 21, and it is often the part of the article least covered in practice.
Berigo recommends
- Ask the supplier for an overview of the packages that go into your solutions, and have it refreshed with every delivery.
- Disable automatic execution of installation scripts in the build pipeline where feasible, and pin package versions.
- Rotate credentials for npm, GitHub, build pipelines and cloud services if anything suggests exposure, without waiting for final confirmation.
- Require that publishing to package registries goes through a human and a strong authentication method.
- Review the logs for what your build identities have done over the recent period.
Security that is understood, governed and works.
Let us help you turn security into an advantage, not a cost. Get in touch for a no-obligation conversation about where your organisation stands and what to prioritise first.
Get in touch