Malicious code in @hkyyy/portal-widget-helper-0601 (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-10648
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f72e27d8bfbf5b9bfefe661d642be934399a38031c1bee028a20ed3282e0f482) The package has no real functionality — index.js only exports `{ ok: true }` — and its sole effect is to run a postinstall reconnaissance script. package.json declares `scripts.install` -> `node postinstall.js`, which on `npm install` executes `whoami`, `id`, `hostname`, captures cwd and Node version, and prints a `PROOF_BEGIN`/`PROOF_END` block to stderr. postinstall.js also contains a fully-formed exfiltration path that issues `curl -fsS "${url}" || wget -qO- "${url}"` and a `dns.lookup(sub,...)` call against a `DNSLOG_URL` constant. The URL is currently the placeholder string `'CHANGE_ME_DNSLOG_URL'`, so the network beacon is gated off in this published version, but the host-recon commands fire unconditionally and the exfil channel is one literal-string edit away from active. The package name `@hkyyy/portal-widget-helper-0601` (date-suffixed variant of an apparent internal package name) plus the trivial body match the standard dependency-confusion PoC shape: the package exists to be picked up by mistaken namespace/version resolution and to fingerprint the installer's host. ## Source: ghsa-malware (b3b0ce2b99bea6ebe380f50b96b9729b4e293690631a77ec7a3c3023510d2bdf) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
- Source published
- 15 Jul 2026 02:53:22 UTC
- Source modified
- 15 Jul 2026 09:19:30 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.