vant@4.9.13
Malicious code in vant (npm)
Analysis
Trojanized clone of the Vue mobile UI library "vant": version 4.9.13 ships a "postinstall" hook running lib/utils/support.js, a 609KB single-line bundle obfuscated with javascript-obfuscator (rotating _0x string dictionary, ~22k hex identifiers). At install it: (1) reads local credential/config files from the user's home directory, including ~/.hcloud/config.json and other home-relative config paths, hex-encodes the concatenated contents and POSTs them to hxxp://80[.]78[.]28[.]72/tokens; (2) queries hxxp://ipinfo[.]io/json and only continues if the country code is CN, RU, HK, BY, IR or UNK; (3) downloads hxxps://github[.]com/xmrig/xmrig/releases/download/v6[.]22[.]2/xmrig-6[.]22[.]2-linux-static-x64[.]tar[.]gz, extracts it, renames the binary to /tmp/vant_helper, chmods it 0755 and spawns it with mining flags (-u/-o/--tls/-k/--cpu-max-threads-hint=75) pointed at pool[.]supportxmr[.]com:443; (4) suppresses stdout/stderr and console output, and exits immediately on non-Linux platforms. Endpoints: 80[.]78[.]28[.]72:80 (/tokens), pool[.]supportxmr[.]com:443, ipinfo[.]io, and a GitHub releases download of xmrig 6.22.2. Dropped artifact: /tmp/vant_helper (xmrig miner); staging path /tmp/xmrig.
- analyzed by
- Leitwacht
- first seen
- Nov 18, 2026, 03:38 AM
- analyzed
- Nov 18, 2026, 03:42 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@3.6.13 same package
- vant@3.6.15 same package
- malvin-wa@0.1.1
- @vanzzooffc/baileys@1.0.0
- @devil-fight/baileys@1.0.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.