Your website, your customer portal and that handy internal tool someone built last year are probably made mostly of other people's code. A modern JavaScript project pulls in hundreds of small open source packages from npm, the public registry for JavaScript. Since September 2025, attackers have been poisoning those packages at the source, and every business that installs them inherits the problem.
On 8 September 2025, the maintainer of chalk and debug, two tiny packages that sit underneath a huge share of JavaScript projects, fell for a phishing email sent from a look-alike domain, npmjs.help. The same day, malicious versions of 18 packages were live. Together they were downloaded more than two billion times a week. That payload went after cryptocurrency wallets in the browser. The next one went after something more useful to criminals: your keys.
How worried should you be? If you build or host software, or pay an agency that does, take it seriously. If you only use off-the-shelf SaaS, this is mostly your suppliers' problem, but it's a fair question to ask them.
How it works
Shai-Hulud, named after the sandworms in Dune, turned up in mid September 2025. The US Cybersecurity and Infrastructure Security Agency (CISA) said on 23 September that it had compromised more than 500 packages. It was a worm, so it spread by itself:
- A developer or build server installs an infected package, and a script inside it runs automatically as part of the install.
- The malware searches the machine for secrets: npm tokens, GitHub personal access tokens, and cloud keys for AWS, Google Cloud and Microsoft Azure.
- It sends them to the attacker and also publishes them to a public GitHub repository under the victim's own account.
- It uses the stolen npm token to publish infected versions of every other package that developer maintains, and the cycle repeats.
It kept going. A second wave in November 2025, dubbed Shai-Hulud 2.0, ran even earlier in the install process. Palo Alto Networks' Unit 42 counted more than 25,000 malicious GitHub repositories across about 350 users, and if the malware couldn't steal anything, it tried to wipe the victim's home folder.
2026 brought more of the same:
- On 31 March 2026, versions
1.14.1and0.30.4of Axios, one of the most used HTTP libraries in JavaScript, shipped with a malicious dependency that installed a remote access trojan. CISA issued an alert on 20 April. - On 1 June 2026, Red Hat disclosed that packages in its
@redhat-cloud-servicesnamespace had been tampered with after a GitHub account was compromised through a malicious VS Code extension. - On 6 August 2026, Singapore's Cyber Security Agency warned of Shai-Hulud malware in
keyvand related packages.
The pattern is steady: steal one maintainer's access, publish a poisoned update, and let automatic installs do the rest.
Why it matters to a business that isn't a software company
The risk isn't only a broken website. What gets stolen is the keys to everything around it. A build server that deploys your website usually holds credentials for your hosting, your domain's DNS, your cloud account and sometimes your email provider. A developer laptop holds even more.
Stolen cloud keys can lead to data theft, ransomware in your cloud environment or a surprise bill for someone else's crypto mining. And if you're a client of a web agency, their compromise can become yours.
How to fix it
These are for whoever looks after your code, in-house or at an agency. Most are an afternoon's work each.
- Commit the lockfile and install from it.
package-lock.jsonrecords the exact version of every package. In build pipelines usenpm ci, which installs exactly what the lockfile says rather than quietly pulling the newest release. - Pin versions and don't rush updates. CISA's advice after both Shai-Hulud and Axios was to pin dependencies to known safe releases. Poisoned versions are usually caught within hours or days, so letting a new release age a few days before you adopt it avoids most of them.
- Stop install scripts where you can. Most of these attacks run through scripts that execute during install.
npm ci --ignore-scriptsblocks them. Some packages genuinely need them, so test first. - Move publishing to trusted publishing. If you publish packages, npm's trusted publishing uses short-lived OpenID Connect credentials from your CI system instead of a long-lived token, and it adds provenance so people can check where a package was built. GitHub announced in September 2025 that it was moving npm towards trusted publishing, mandatory two-factor authentication for local publishing and short-lived granular tokens.
- Use read-only tokens for installing. npm recommends a read-only granular access token where CI needs to install private packages. A stolen read-only token can't publish anything.
- Turn on secret scanning. GitHub secret scanning and push protection catch keys before they land in a repository, and alert you if they do.
- Give CI the least it needs. Set GitHub Actions
permissionsto read-only by default, scope each secret to the job that needs it, and prefer OIDC federation to your cloud provider over stored access keys. - Require phishing-resistant MFA on npm, GitHub and your cloud consoles. The September 2025 attack started with a phishing email.
If your team leans on AI coding assistants, the same discipline applies to the packages they suggest. Our piece on AI coding assistants and security covers that side.
If you think it already happened
Check your lockfiles against the package lists in the CISA and vendor advisories, including packages nested deep in the dependency tree. If an affected version was installed anywhere, assume every secret on that machine or build runner is gone:
- Rotate npm tokens, GitHub tokens and SSH keys, cloud keys and CI secrets, starting with the most powerful.
- Look in your GitHub organisation for unfamiliar public repositories, new workflow files and self-hosted runners nobody registered.
- Rebuild affected build servers from a clean image rather than cleaning them up.
- Check cloud logs for activity from the stolen keys.
Report it to ASD's ACSC at cyber.gov.au (opens in a new tab) ("Cybercrime" for most businesses, "Cyber security incident" for organisations with 250 or more staff, government and critical infrastructure) or call the Australian Cyber Security Hotline on 1300 CYBER1 (1300 292 371). If personal information may have been accessed, check whether the Notifiable Data Breaches scheme applies.
Where Geidi fits
Our team covers website design and development, DevOps and SecOps, and our cyber security services are backed by a 24/7 security operations centre. If you'd like to talk about your build pipeline, talk to us.
Sources
- CISA: Widespread Supply Chain Compromise Impacting npm Ecosystem (23 September 2025) (opens in a new tab)
- CISA: Supply Chain Compromise Impacts Axios Node Package Manager (20 April 2026) (opens in a new tab)
- Palo Alto Networks Unit 42: "Shai-Hulud" Worm Compromises npm Ecosystem in Supply Chain Attack (opens in a new tab)
- Aikido Security: npm debug and chalk packages compromised (opens in a new tab)
- Red Hat: RHSB-2026-006 Supply chain compromise of @redhat-cloud-services npm packages (opens in a new tab)
- Cyber Security Agency of Singapore: Ongoing npm Supply Chain Attack Affecting Keyv and Related Packages (6 August 2026) (opens in a new tab)
- GitHub Blog: Our plan for a more secure npm supply chain (22 September 2025) (opens in a new tab)
- npm Docs: Trusted publishing for npm packages (opens in a new tab)
- GitHub Docs: About secret scanning (opens in a new tab)




