Snipping the Long Tail of Shai-Hulud 2.0
The Shai-Hulud 2.0 supply chain worm persisted for weeks after the initial incident because a malicious OpenVSX extension (asyncapi-preview v1.0.1) remained installed on developer machines, as no higher version existed to trigger an automatic update, and because private registries and local npm caches continued to serve poisoned packages. This allowed the worm to keep compromising new repositories at a rate of 100-200 per day, and leaked secrets from the campaign may have contributed to a $7M theft from Trust Wallet.
Published on wiz.io
Since the discovery of Shai-Hulud 2.0 (aka sha1-hulud), Wiz Research has tracked a persistent "long tail" of infections. To date, this incident has impacted over � � of the Fortune 100, among hundreds of other organizations.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the lack of a clean higher version to trigger automatic updates, combined with private registries and local caches that did not purge revoked malicious packages.
Impact
The worm continued to compromise approximately 100-200 new repositories daily for a month, and many leaked secrets (cloud credentials, AI API keys, SaaS tokens) remained valid, potentially contributing to a $7M theft from Trust Wallet.
What the attacker needed
Developer uses OpenVSX extension; private registry or local cache; CI/CD with offline flags
The fix
The issue was fixed by publishing a clean higher version (1.1.0) of the extension to trigger automatic updates, and the report recommends syncing revocations in private registries, clearing local caches, rotating all secrets, and publishing clean higher-versioned updates.
How it was found
- The malicious asyncapi-preview v1.0.1 extension was published to OpenVSX and installed on developer machines.
- The extension was pulled from OpenVSX on November 26th, but the registry rolled back to v1.0.0, so IDEs did not update the installed malicious v1.0.1.
- Private registries and local npm caches continued to serve poisoned packages because they did not sync revocations from the public npm registry.
- Wiz Research reported the issue to AsyncAPI on December 23rd.
- AsyncAPI published a clean version 1.1.0 on December 24th, triggering automatic updates.
- New infections dropped to a handful per day by December 29th.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A supply chain attack is when attackers compromise software that many people download and use, so the malicious code spreads widely. Here, a malicious version of a developer tool extension stayed on people's computers because the tool's update system only checks for newer versions, and the bad version was the newest. The attackers also stole passwords and keys (secrets) that let them access other systems later.