vite-plugin-bar-plus@1.0.47
Malicious code in vite-plugin-bar-plus (npm)
Analysis
vite-plugin-bar-plus@1.0.47 is a Vite progress-bar plugin whose dist/index.js contains a build-time beacon and remote kill switch. When a project using it runs a production build, the plugin's config() hook (plugin apply: 'build') POSTs to hxxp://api[.]wit-ui[.]com/check[.]php. The endpoint and payload keys are assembled from string fragments at runtime ('ht'+'tp'+'://'+'api'+'.'+'wi'+'t'+'-u'+'i'+'.'+'c'+'o'+'m'+'/'+'che'+'ck'+'.'+'p'+'hp' and 'VI'+'TE_A'+'PP_EM'+'AIL'+'_US'+'ER'+'_NA'+'ME'), so the host never appears intact in the source. The POST body contains the machine hardware UUID read from systeminformation (`si.system().uuid`), INIT_CWD, npm_package_name, npm_package_version, USERDOMAIN, USERNAME, a timestamp, and the value of the Vite option VITE_APP_EMAIL_USER_NAME. The response is used as a kill switch: when the server answers ret == 0 the plugin prints the server-supplied message and calls process.exit(), aborting the developer's build; when si.system() cannot read the hardware UUID the plugin exits with an error banner, and a failed request errors the build. The package declares no install lifecycle hook, so this runs only at build time, on a host the plugin has no documented reason to contact. IOC: hxxp://api[.]wit-ui[.]com/check[.]php (POST).
- analyzed by
- Leitwacht
- first seen
- Nov 16, 2026, 03:17 AM
- analyzed
- Nov 17, 2026, 12:08 AM
hxxps://github[.]com/wituijs/vite-plugin-bar-plus Request takedown / dispute →Related advisories
- @axo_cuy/baileys@5.0.0
- @wppconnect/server@2.10.82
- @wanzforme/bails@5.0.0
- @csc-protocol/token-saver@1.3.3
- @poucode/baileys@2.0.0
- base65-77x@0.0.0-stage
- base65-15x@0.0.0-stage
- base65-15x@5.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.