vant@3.6.13
Malicious code in vant (npm)
Analysis
This publish of the `vant` Vue UI library is a trojanized clone: it adds a lifecycle hook `"postinstall": "node lib/utils/support.js"` that upstream vant does not ship. The hook target, `lib/utils/support.js` (609 KB of obfuscated, javascript-obfuscator-style code with a large encoded string array), silences `process.stdout.write`, `process.stderr.write`, `console.log` and `console.error`, and only runs on linux, darwin or win32. When it runs it performs two things: 1. Cloud credential theft. It reads `~/.hcloud/config.json` (Hetzner), `~/.aliyun/config.json` (Alibaba Cloud) and a further file under the user's home directory, concatenates their contents, base64-encodes them and POSTs the result to `hxxps://80[.]78[.]28[.]72/tokens`. 2. Cryptominer deployment. It geo-fences via `hxxp://ipinfo[.]io/json`, continuing only when the reported country is CN, RU, HK, BY, IR or unresolvable, and then downloads `hxxps://api[.]github[.]com/repos/youzan/vant/git/blobs/8ed1c9256b4bfeb3e4f5aaff48bf140398361ae3` (Accept: application/vnd.github.raw+json) into `/tmp`, extracts it with tar, `chmod 0755`s the result and launches it with `-u <Monero address> -o pool[.]supportxmr[.]com:443 --tls` — XMRig pointed at a SupportXMR mining pool. The miner tarball is also referenced as `hxxps://github[.]com/xmrig/xmrig/releases/download/v6[.]22[.]2/xmrig-6[.]22[.]2-linux-static-x64[.]tar[.]gz`. If the GitHub fetch fails, it falls back to downloading a tarball from `hxxp://80[.]78[.]28[.]72/`, extracting it with an `xmrig` name filter and running the helper from `/tmp`. It then calls `process.exit(0)` to hide the activity behind a successful install. IOCs: `80[.]78[.]28[.]72` (HTTP download + `/tokens` credential upload), `pool[.]supportxmr[.]com:443`, `ipinfo[.]io/json`, `api[.]github[.]com/repos/youzan/vant/git/blobs/8ed1c9256b4bfeb3e4f5aaff48bf140398361ae3`, files dropped under `/tmp` (`/tmp/xmrig`, `/tmp/vant_helper`).
- analyzed by
- Leitwacht
- first seen
- Nov 18, 2026, 03:37 AM
- analyzed
- Nov 18, 2026, 03:44 AM
- weekly installs
- 89,733
hxxps://github[.]com/vant-ui/vant Request takedown / dispute →Related advisories
- vant@4.9.12 same package
- vant@2.13.5 same package
- vant@2.13.3 same package
- vant@4.9.11 same package
- vojmd-ajgkr-util@1.0.0
- @animebails/baileys@1.0.4
- strapi-plugin-conresh-meeb@3.6.8
- tailwind-scrollbar-styles@4.0.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.