Mini Shai-Hulud Compromised Hundreds of npm Packages via Stolen Maintainer Tokens
Supply Chain Risk · 12 sources · Updated 5mo ago · First seen May 20, 2026

Attackers linked by multiple researchers to TeamPCP hijacked the npm maintainer account atool and used it to publish roughly 639 malicious versions across 323 packages, heavily impacting Alibaba’s @antv/* ecosystem as well as packages such as echarts-for-react, timeago.js, and size-sensor. Reports said the malware executed through malicious preinstall hooks and an obfuscated Bun-based payload, stealing secrets from developer workstations and CI/CD systems including GitHub, npm, AWS, Kubernetes, Vault, SSH, Docker, and database credentials. The campaign also abused GitHub tokens to create attacker-controlled repositories for exfiltration, scraped GitHub Actions runner memory for plaintext secrets, and in some cases targeted trusted tooling including a briefly compromised Nx Console VS Code extension.
Researchers said the operation was worm-like and self-propagating, using stolen npm tokens to tamper with and republish additional packages under legitimate maintainer identities, with the broader Mini Shai-Hulud activity now tracked across npm, PyPI, and Composer. The malware reportedly established persistence in developer environments through modified VS Code and Claude Code settings and OS-level services, while some reports warned it also attempted to forge valid Sigstore/SLSA provenance using stolen CI identities. In response, npm invalidated all write-enabled granular access tokens that bypassed two-factor authentication and introduced Staged Publishing in preview, but researchers warned that any machine or pipeline that installed affected versions should be treated as fully compromised and all reachable credentials rotated immediately.
Why it matters
Impact assessment
Mini Shai-Hulud is a high-severity software supply chain compromise affecting the JavaScript ecosystem, developer workstations, CI/CD pipelines, and downstream organizations consuming compromised npm packages. The blast radius is broad rather than narrowly targeted: attackers published roughly 639 malicious versions across 323 npm packages in the May 18-19 wave, with broader tracking showing 1,055 compromised versions across 502 packages spanning npm, PyPI, and Composer.
Summary
Organizations using affected npm packages, especially Alibaba AntV-related libraries and popular packages such as echarts-for-react, timeago.js, size-sensor, and canvas-nest.js, face credential theft, CI/CD compromise, malicious republishing of their own packages, and persistence on developer endpoints. Any machine or pipeline that installed an affected version should be treated as fully compromised because the malware executed at install time, stole secrets, and could persist after package removal.
Affected populations and products
- npm ecosystem consumers, especially projects depending on:
- @antv/* packages
- echarts-for-react
- timeago.js
- size-sensor
- canvas-nest.js
- packages under @lint-md, @openclaw-cn, and @starmind
- Developer workstations running npm install
- CI/CD environments, especially GitHub Actions runners
- Organizations using trusted developer tooling including Nx Console VS Code extension
- Industries with heavy use of JavaScript visualization, dashboards, front-end apps, and cloud-native CI/CD pipelines
Severity and business impact
- Credential theft risk includes GitHub, npm, AWS, Kubernetes, Vault, SSH, Docker, database, and other deployment secrets
- Operational disruption risk includes poisoned builds, compromised release pipelines, malicious package republishes, and persistence on endpoints
- Financial and reputational risk is high because compromised maintainer identities can be abused to publish malicious versions under legitimate package names
- Downstream exposure is amplified by package popularity:
- echarts-for-react: about 1.1 million weekly downloads
- @tanstack/react-router in related activity: about 12 million weekly downloads
- Nx Console: about 2.2 million installs
Scope and exploitation status
- Exploitation in the wild is confirmed
- The campaign is active and self-propagating through stolen npm tokens and CI/CD identities
- GitHub disclosed roughly 3,800 internal repositories were exfiltrated during the broader campaign
- Researchers observed thousands of attacker-created GitHub repositories used for exfiltration staging
- npm took ecosystem-wide action by invalidating write-enabled granular access tokens that bypassed 2FA on 2026-05-19


