Surprisingly Useful AI Article Enhancements
A self-replicating worm is actively compromising Node.js packages across the NPM registry, hijacking tokens from CI/CD pipelines and using them to spread to further packages in what security researchers are describing as a persistent supply chain attack.
The campaign, dubbed “Mini Shai-Hulud” by researchers at GitGuardian, has hit more than 300 packages in its latest wave, including packages from the @opensearch-project and @mistralai namespaces. The OpenSearch NPM package alone accounts for 1.3 million weekly downloads, while the Mistral package is downloaded more than two million times per week.
The attack was first detected on April 29 by Aikido researchers, who identified compromised packages in SAP’s NPM namespace. It has since escalated, with a new phase identified between May 11 and May 12 that broadened the scope from a limited number of enterprise-focused packages to a much wider target set.
Trusted publishing bypassed
One of the more notable aspects of the attack is that many of the affected packages relied on trusted publishing to protect their NPM package publication. The mechanism is designed to prevent unauthorised releases, but because the malware specifically targets CI/CD environments, it was able to exploit OIDC integration to bypass this protection.
The compromise of both the OpenSearch and Mistral packages occurred as a result of the supply chain attack rather than through direct targeting, indicating the worm’s self-propagating nature is driving much of the spread.
The malicious versions of the OpenSearch package (3.5.3, 3.8.0 and 3.7.0) were live for roughly 10 hours before removal. The compromised Mistral package versions (2.2.2, 2.2.3 and 2.2.4) were removed within approximately 30 minutes.
How the worm operates
The malware adjusts its behaviour based on the CI environment it finds itself in. It reads environment variables and looks for GitHub personal access tokens. If it finds one locally, it exfiltrates encrypted secrets to the corresponding GitHub account.
If no token is present, the worm falls back to a secondary mechanism. It scans commit messages for a specific string, then decodes a double-base64-encoded payload hidden inside and uses that to exfiltrate the encrypted secrets to an attacker-controlled account.
The RSA keys used to encrypt the exfiltrated data are the same ones identified in a previous attack targeting the @bitwarden/cli package.
Dune-themed infrastructure
GitGuardian identified seven commits containing exposed GitHub personal access tokens, all of which remained valid and active at the time of analysis. The attacker used the stolen tokens to create public repositories, each named with keywords drawn from Frank Herbert’s Dune series.
Each repository contained a README.md file with the string “A Mini Shai-Hulud has Appeared” and a results directory holding a JSON file with the encrypted payload, protected by a 4,096-bit RSA key.
Scale of the campaign
GitGuardian’s telemetry data reveals the footprint of the attack: 23 GitHub accounts were used for exfiltration, with 971 public repositories created using stolen tokens. The top six accounts were responsible for 936 of those repositories, accounting for 96 per cent of the total. Those six accounts are tied to the seven compromised tokens identified by the researchers.
The latest wave of the attack used the Session secure messaging application as its primary exfiltration channel, a shift from the methods used in earlier phases.
Ongoing threat
The attack remains active. The self-replicating nature of the worm means that each compromised package has the potential to expose further tokens and propagate to additional packages, creating a cascading effect across the NPM ecosystem.
Organisations running CI/CD pipelines that install affected packages should audit their environments for signs of compromise, rotate any exposed tokens and review their dependency trees for unexpected version changes.
Related: Best Business Laptops for work & school
Related: Best Gaming Laptops
Related: Best Portable Laptop
Last Updated on May 13, 2026 by Nick Ross



