⚠️ THREAT ALERT: Mini Shai-Hulud Pushes Malicious AntV npm Packages via Compromised Maintainer Account
The malicious activity centers on a supply‑chain intrusion of the AntV ecosystem, where a compromised maintainer account was used to publish spoofed npm packages that mirror legitimate AntV modules (e.g., `@antv/g6`, `@antv/data-set`). The attacker capitalized on npm’s automatic install‑time script execution by embedding a post‑install hook that invokes a downloader payload. The payload fetches a second‑stage binary from a hard‑coded CDN (leveraging a URL shortener to evade static analysis) and executes it with elevated privileges via `child_process.exec`. The initial package leverages the `prepare` script to inject malicious code into the consumer’s `node_modules/.bin` directory, ensuring persistence across subsequent `npm install` cycles. This vector aligns with “dependency confusion” and “maintainer account takeover” patterns observed in recent supply‑chain attacks, and the usage of AntV’s highly‑visible visualization libraries maximizes the blast radius across JavaScript front‑end projects.
Preliminary binary analysis indicates the second‑stage payload is a packed Node.js executable built with `pkg`, containing a native compiled extension that loads a malicious shared object (`.node` file) and establishes a reverse TLS tunnel to a C2 server hosted on a dynamic DNS domain. The compiled extension leverages the `node-ffi-napi` library to perform process injection on the host machine, targeting Node processes that run with elevated privileges (e.g., CI runners). The activity also appears to exploit CVE‑2023‑26159 (npm’s insufficient token revocation) and CVE‑2024‑23302 (npm’s package name hijacking via similar‑name detection bypass). By re‑using the compromised maintainer’s authentication token, the attacker sidestepped npm’s two‑factor enforcement, enabling rapid publishing of multiple malicious variants before detection.
Mitigation requires a multi‑layered response: immediately rotate all npm authentication tokens for AntV maintainers and enforce mandatory 2FA or hardware‑based MFA for all privileged accounts; revoke and re‑issue any compromised tokens via npm’s “revoke‑token” API, and file a security incident with npm to trigger package takedowns. Consumers should audit their lockfiles for any versions of AntV packages published after the compromise window (e.g., any `@antv/*` versions > 4.8.0‑beta) and employ `npm audit` with the `--audit-level=high` flag to surface known malicious versions. Deploy runtime protections such as npm’s `package-lock-only` mode, enable `npm ci` in CI pipelines, and integrate SCA tools that validate package integrity against cryptographic signatures (e.g., Sigstore). Finally, monitor network traffic for outbound TLS connections to newly registered domains and block suspicious `child_process.exec` patterns via EDR rule sets to contain any residual infection.
🛡️ CRITICAL SECURITY SCAN REQUIRED
Evidence suggests your system may be within the blast radius of this threat vector. Use the ZeroDay Radar scanner to verify your integrity immediately.
>> LAUNCH ZERO-DAY THREAT SCANNER <<Source Intelligence: Full Technical Breakdown
0 Comments