Open Source · · 1 day
vant npm packages shipped XMRig
On 2024-12-19, the same day as the @rspack/core compromise and likely by the same actor, ten versions of the Chinese-origin Vue UI library vant were published to npm with obfuscated XMRig cryptojacking code beaconing to 80.78.28.72/tokens.
Part of Rspack and Vant shipped XMRig miners campaign
Vant was the second half of the December 2024 Rspack/Vant npm campaign. On December 19, attackers published malicious Vant releases across the v2, v3, and v4 lines, giving the payload a wide compatibility surface. The malicious code matched the Rspack pattern: it ran during npm installation, reached out to attacker infrastructure, installed the XMRig cryptocurrency miner, and sent host and credential data to 80.78.28.72/tokens. The campaign also touched cloud credential paths used by Alibaba Cloud, Huawei Cloud, and Tencent Cloud.
The Vant repository itself mattered to the campaign. Rspack's payload pulled a base64 blob from a Vant GitHub object, tying the two records together by infrastructure as well as timing. Sonatype blocked the affected packages and reported the linked compromise across both projects.
Maintainers released a clean 4.9.15 and deprecated the compromised versions. The 46,000 figure records package reach around the incident, not a confirmed victim count.
This record stays package-specific because Vant had ten affected releases across three major lines. Teams had to search lockfiles and caches for each version, not just look for a single compromised package coordinate.
Appendix · Affected releases
2 more versions
- Compromised versions span the v2, v3, and v4 release lines; maintainers released clean v4.9.15.
- Public reporting cited package download volume as exposure context; confirmed victim count is unknown.
- The SHA-256 values are measured complete npm archives and correspond to the listed versions in the same order: 2.13.3 through 2.13.5, 3.6.13 through 3.6.15, and 4.9.11 through 4.9.14.
References
- npm packages Rspack and Vant compromised, blocked by Sonatypesonatype.com
- Rspack and Vant npm packages compromised with cryptomining malwarethehackernews.com
- MUT-1692 compromises Rspack maintainer's account to distribute cryptojacking and infostealer malwaresecuritylabs.datadoghq.com
Source record: oss/attacks/vant/meta.yaml