@antv maintainer takeover spreads Mini Shai-Hulud to about 300 packages

CriticalCompromisenpm

On 2026-05-19 the compromised npm publisher atool (Alibaba / AntV co-maintainer) pushed an automated burst of 639 malicious versions across 323 unique packages - the entire @antv visualization suite plus widely-used unscoped libraries including echarts-for-react, size-sensor, and timeago.js (>15M combined monthly downloads). Each release adds a preinstall: bun run index.js hook running the Mini Shai-Hulud credential-stealer. Attributed to TeamPCP.

Published 19 May 2026 · Updated 28 Jul 2026

At a glancenpm-2026-05-19-antv-mini-shai-hulud
298
Packages tracked599 malicious versions

Every version named by the advisory is in the scanner, so a lockfile check finds it directly.

Severity
Critical
Type
Compromise
Published
19 May 2026
Last updated
28 Jul 2026
Ecosystems
npm
Threat actor
TeamPCP
Detected by
Socket, JFrog, Microsoft, Aikido, OX Security, Snyk, SafeDep
Also known as
Mini Shai-Hulud, AntV burst

Compromise. A legitimate, already-used package, maintainer account, CI pipeline, or release tag was hijacked and a malicious version was published under a name people already depend on.

What happened

The full picture

On 2026-05-19 between 01:39 and 02:06 UTC, the npm publisher account atool (an Alibaba / AntV co-maintainer) was compromised and used as the launch point for an automated burst of malicious releases. Socket telemetry continued seeing publishes through ~02:56 UTC; detections fired until ~03:09 UTC. After reconciliation across Socket, JFrog Security Research, Aikido, OX Security, Snyk, GBHackers, The Hacker News, BleepingComputer, and Microsoft Threat Intelligence, the final tally is 639 malicious versions across 323 unique packages - up from the initial 598+/297+ estimate.

Affected scope spans the entire @antv visualization suite (g-*, g2-*, g6-*, x6-*, l7-*, s2-*, f2-*/f-*, dipper-*, gi-assets-*, li-*, and ~120 other @antv/* packages), @lint-md/*, smaller scopes (@starmind/*, @openclaw-cn/*), plus unscoped high-traffic packages including echarts-for-react (3.0.7 / 3.1.7 / 3.2.7 - 1.1M weekly downloads), size-sensor (1.0.4 / 1.1.4 / 1.2.4 - 4.2M monthly), timeago.js (4.1.2 / 4.2.2 - 1.15M monthly), jest-canvas-mock, jest-date-mock, canvas-nest.js, mcp-echarts, and mcp-mermaid. Combined estimated exposure on the unscoped packages alone exceeds 15M monthly downloads.

Each compromised release adds a preinstall: bun run index.js hook; 597 of 598 versions also inject an optionalDependencies entry pointing at imposter commits in antvis/G2 that deliver a second copy of the payload - a novel persistence vector that survives npm rebuild and resists lockfile-only audits. The payload is a 498KB obfuscated Bun script matching the Mini Shai-Hulud toolkit used in the SAP / @cap-js (April 2026), TanStack (May 11), and same-day durabletask PyPI compromises - same scanner architecture, same credential regex set, same obfuscation pattern. Attribution to TeamPCP is consistent across Socket, The Hacker News, SafeDep, and JFrog.

A novel capability in this wave: the payload can generate valid Sigstore provenance attestations by abusing OIDC tokens harvested from compromised CI runners, allowing the malicious packages to pass standard provenance verification despite carrying credential-stealing malware.

  • Payload SHA-256 (Microsoft): a68dd1e6a6e35ec3771e1f94fe796f55dfe65a2b94560516ff4ac189390dfa1c
  • Backdoor Python script SHA-256 (Microsoft): fb5c97557230a27460fdab01fafcfabeaa49590bafd5b6ef30501aa9e0a51142
  • GitHub force-removed all 640 malicious package versions and invalidated 61,274 npm granular access tokens that carried write permission with 2FA bypass.
  • Stealer scope: AWS / GCP / Azure (metadata + env), GitHub PATs + npm publish tokens, Kubernetes service-account tokens and kubeconfig, HashiCorp Vault tokens, Stripe keys, database connection strings, SSH keys, .env and .env.* secrets, plus a Docker host-socket container-escape attempt.

The cleanest known version per package is always the one immediately preceding the malicious pair (e.g. @antv/g2@5.4.8, @antv/g6@5.1.1, echarts-for-react@3.0.6, size-sensor@1.0.3, timeago.js@4.0.2).

2026-07-28 update - GHSA formal-advisory backfill

On 2026-07-27 GitHub Advisory Database began a mass formal-advisory backfill against packages already yanked in the May 2026 triage - 150+ new GHSA IDs published for @antv/* packages already tracked in this module's 261-entry map (e.g., @antv/l7-three → GHSA-gjrp-hvwh-82xh, @antv/x6-components → GHSA-qcw9-7qh9-h2m3, @antv/g-webgpu-compiler → GHSA-ww2q-9pv7-p87q, @antv/gi-cli → GHSA-pf8g-q4hp-r46f, @antv/g6-plugin → GHSA-8mwh-2297-272x, and many more across the @antv/g-*, @antv/g6-*, @antv/x6-*, @antv/l7-*, @antv/gi-*, @antv/li-* scopes). No new attack activity - these are formal advisories being catalogued for packages the initial May 2026 triage already yanked. The affected-package map below already covers these hits; no map changes required.

Ecosystem-adjacent packages caught in the same 2026-07-27 backfill batch that were NOT previously in this module (mcp-echarts, mcp-mermaid, ai-figure, gantt-for-react, amapcn, @cap-js/openapi, boring-avatars-vanilla, jest-canvas-mock) are catalogued in npm-2026-07-28-ghsa-malware-sweep with Shai-Hulud-family attribution.

wormcredential-theftci-cd-compromisemaintainer-takeoverobfuscation
Affected packages

298 packages 599 versions

These are usually pulled in as transitive dependencies rather than installed directly. Check your whole tree at once. It runs in your browser and nothing is uploaded.

Impact

What it does if you installed it

  • AWS, GCP, Azure credentials (instance metadata + env)
  • GitHub Personal Access Tokens and npm publish tokens - enables further worm propagation
  • Kubernetes service account tokens and kubeconfig files
  • HashiCorp Vault tokens, Stripe keys, database connection strings
  • SSH private keys and .env / .env.* secrets
  • Docker container escape attempt via the host socket
  • preinstall hook runs even with npm ci --ignore-scripts only if Bun is present - but bun run is invoked directly, bypassing standard npm script gating
What to do

Clean-up steps

  1. Block / pin away from every (name, version) pair in the packages map below. For top-impact packages: pin @antv/g2 to <= 5.4.8, @antv/g6 to <= 5.1.1, @antv/x6 to <= 3.1.7, echarts-for-react to <= 3.0.6, size-sensor to <= 1.0.3, timeago.js to <= 4.0.2, jest-canvas-mock to <= 2.5.2, jest-date-mock to <= 1.0.10
  2. Purge node_modules and any cached tarballs published between 2026-05-19T01:39Z and 2026-05-19T02:10Z
  3. Assume credential compromise on any CI runner or developer machine that ran npm install/pnpm install/yarn install against any of these packages during the exposure window. Rotate npm/GitHub/GitLab/CircleCI tokens, AWS/GCP/Azure keys, K8s tokens, Vault tokens, Stripe keys, DB passwords
  4. Audit optionalDependencies in every lockfile for entries pointing to antvis/G2 commit hashes - these are the secondary payload bootstrap
  5. Audit your own npm publish history (under every maintainer account on the affected machines) for unexpected releases after 2026-05-19T01:30Z - the worm targets maintainer publish rights for propagation
  6. Block egress to known Mini Shai-Hulud C2 infrastructure shared with the SAP/TanStack waves; cross-reference IOCs from the Wiz and Socket reports on those campaigns
References

Sources

npm-2026-05-19-antv-mini-shai-huludBack to incidentsSubmit a correction
Am I affected?

Check your lockfile against this and every other incident.

Paste a lockfile and it is matched on your own device against every compromised version we track. Nothing is uploaded and there is no account.