Ten versions of vant were published on 2024-12-19 between 00:41:47Z and 01:49:30Z by the npm user landluck, using npm 9.2.0: 4.9.11, 2.13.3, 3.6.13, 4.9.12, 3.6.14, 2.13.4, 4.9.13, 4.9.14, 3.6.15 and 2.13.5. Each one adds an install hook, "postinstall": "node lib/utils/support.js", which no earlier release of vant had. Clean releases by the maintainer followed from 02:20:40Z the same day (4.9.15, 3.6.16, 2.13.6). The ten versions are deprecated on the registry with the message "Contains security vulnerabilities, do not use" but remain installable.
Content (all ten tarballs read statically, integrity matching the registry; nothing was executed): every version is the clean 4.9.10 build with every other file byte-identical to 4.9.10, package.json "version" set to the target number, the postinstall hook added, and one added file, lib/utils/support.js. The 2.13.x and 3.6.x versions therefore ship 4.x code under 2.x and 3.x numbers. lib/utils/support.js is a single obfuscated line in two builds:
The script uses child_process and writes and marks files executable. Strings in both builds: the XMRig 6.22.2 linux-static-x64 release download from github.com, the endpoint 80.78.28.72/tokens (https in the first build, http in the second), an IP lookup at ipinfo.io/json, the GitHub API path api.github.com/repos/youzan/vant/git/blobs/, and the local paths /tmp/vant_helper and /tmp/xmrig. Classification: cryptocurrency miner dropper run from an install hook.
This compromise was reported publicly on the same day, in the vant maintainers' notice (youzan/vant discussion #13273, 2024-12-19T01:39Z) and in vendor write-ups such as Sonatype's, which lists the same ten versions. ossf/malicious-packages issue #1628 asks for a record for eight of them; this record adds 4.9.11 and 3.6.15. At the time of writing no malware record for these versions exists in OSV or the GitHub Advisory Database.
{
"iocs": {
"files": [
{
"digests": {
"sha256": "92c486bcc03a68b5b0b914417bca063bf40ad08db246a1c3f11bb8999afedf43"
},
"note": "postinstall payload, build 1, 609615 bytes (4.9.11, 2.13.3, 3.6.13)",
"paths": [
"package/lib/utils/support.js"
],
"source": "PACKAGE_ARCHIVE"
},
{
"digests": {
"sha256": "b91f82dc09bae8c3e72e4cf8f6778a8530417bf5fed3a7e2df49e8b85950eb85"
},
"note": "postinstall payload, build 2, 609441 bytes (4.9.12, 3.6.14, 2.13.4, 4.9.13, 4.9.14, 3.6.15, 2.13.5)",
"paths": [
"package/lib/utils/support.js"
],
"source": "PACKAGE_ARCHIVE"
},
{
"note": "local paths written by the payload",
"paths": [
"/tmp/vant_helper",
"/tmp/xmrig"
]
}
],
"ips": [
"80.78.28.72"
],
"urls": [
"https://80.78.28.72/tokens",
"http://80.78.28.72/tokens",
"https://github.com/xmrig/xmrig/releases/download/v6.22.2/xmrig-6.22.2-linux-static-x64.tar.gz"
]
}
}