@hostk npm packages: malicious code compromises hosts and steals secrets
Severity: critical · Patch status: no-fix-needed · Since 2026-11-23
On 2026-11-23, the GitHub Advisory Database published three critical malware advisories for npm packages @hostk/postcss-motion-helpers, @hostk/host-package-manager, and @hostk/host-details. All versions =0 are affected and no patched versions exist. The advisories state that any computer with these packages installed or running should be considered fully compromised, with possible full control handed to an outside entity; all secrets and keys should be rotated from a different computer. Removing the packages is advised, but may not eliminate all malicious software. No exploitation details, CVE, CVSS, or EPSS score were provided. This is a supply-chain compromise of the @hostk npm namespace.
What to do
- Treat any host that installed or ran these packages as fully compromised; isolate it from networks and do not use it to rotate credentials.
- From a different, trusted computer, rotate all secrets, API keys, npm tokens, SSH keys, cloud credentials, and passwords that were accessible on affected hosts.
- Remove @hostk/postcss-motion-helpers, @hostk/host-package-manager, and @hostk/host-details from projects, lockfiles, CI caches, and global npm installs; rebuild from clean environments.
- Audit npm install logs, lockfiles, CI/CD history, and package caches for these packages and unexpected postinstall or lifecycle scripts.
- Scan affected systems for persistence and malware; consider reimaging rather than cleaning, given possible full remote control.
- Review and revoke npm publish tokens and restrict CI secrets; monitor for unusual registry or cloud activity.
Sources
All live incidents on Threat Watch