The npm ecosystem is currently facing a massive supply chain attack targeting the popular @antv packages and related projects. Researchers at Socket have identified a highlycoordinated malicious publish wave tied to the Mini Shai-Hulud threat actor.
By compromising a key maintainer account named atool, attackers successfully injected malware into widely used data visualization and React component libraries.
This breach introduces a substantial potential blast radius for developers.
The affected packages include echarts-for-react, which sees about 1.1 million weekly downloads, alongside core ecosystem libraries like @antv/g2, @antv/g6, and @antv/x6.
In a single night, the attackers published 639 compromised package versions across 323 unique packages.
Hackers Hijack @antv Packages
The malicious payload executes automatically during installation using a simple lifecycle script modification.
Attackers altered the package configuration file to include a preinstall hook that runs a root-level JavaScript file using the Bun runtime.
This heavily obfuscated file uses a custom decryptor and runtime string decoding to evade simple static analysis.
"preinstall":"bun run index.js"
Once triggered, the malware aggressively hunts for high-value secrets across developer environments and popular CI/CD platforms, including GitHub Actions, GitLab CI, and Jenkins.
It scans for GitHub tokens, npm tokens, AWS credentials, Kubernetes service accounts, and database connection strings.

To ensure defenders cannot easily recover stolen plaintext from network logs, the payload serializes the data, compresses it, and encrypts it using a combination of AES-256-GCM and RSA-OAEP.
The primary exfiltration endpoint routes traffic to a hardcoded HTTPS domain. However, the malware also features a highly creative fallback mechanism utilizing GitHub.
If the script successfully steals a GitHub token, it creates a new repository under the victim’s account to store the stolen data.
These repositories are easily identifiable by their Dune-themed naming conventions, such as sayyadina-stillsuit-852 or atreides-ornithopter-112.
They also contain a reversed campaign marker that translates to “Shai-Hulud: Here We Go Again,” which is currently visible on nearly 2,000 repositories in public GitHub searches.
Beyond data theft, this Mini Shai-Hulud variant employs worm-like capabilities to spread the infection further.
The malware uses stolen npm tokens to query registry APIs and enumerate other packages the compromised victim can maintain.
It then automatically downloads the package tarballs, injects the malicious preinstall hook, bumps the version number, and republishes the poisoned packages back to the registry.
According to Socket research, this self-propagating loop is exactly how the campaign achieved such high volume in a short window.
The injected code also introduces a malicious GitHub dependency, providing attackers with an alternative execution path during installation.
Indicators of Compromise
| IOC Type | Indicator | Context / Description |
|---|---|---|
| Domain | t[.]m-kosche[.]com | Primary Command and Control (C2) / exfiltration domain. |
| URL | https://t[.]m-kosche[.]com:443/api/public/otel/v1/traces | HTTPS endpoint where encrypted, stolen developer secrets are exfiltrated. |
| URL | https://fulcio[.]sigstore[.]dev/api/v2/signingCert | Sigstore API endpoint queried by the malicious payload. |
Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.
Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google.