aamirhafiz (npm): malicious package compromises machines that install it (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-11-18
GitHub's advisory database published a malware advisory for the npm package aamirhafiz (version 1.0.0), classified as CWE-506 embedded malicious code. Any computer with the package installed or running should be considered fully compromised, with control potentially handed to an outside entity; secrets and keys on affected machines are at risk. The package has roughly 129 downloads per month and no fixed or patched versions exist — removal of the package alone cannot be assumed to remove all malicious software. No CVE is assigned. Users who installed aamirhafiz 1.0.0 should treat their machines as compromised, rotate all credentials from a clean machine, and rebuild affected systems.
What to do
- Remove aamirhafiz from all projects and lockfiles
- Rotate all secrets, keys, and credentials stored on affected machines, using a clean computer
- Rebuild or reimage affected machines; do not assume removal removes the malware
- Audit npm dependencies for the package and block it in CI/CD and dependency scanning
- Review access logs and monitor for suspicious activity from affected systems
Sources
All live incidents on Threat Watch