obfuscation-detector: malicious npm versions compromise hosts and steal secrets
Severity: critical · Patch status: unpatched · Since 2026-11-24
On 2026-11-24, the GitHub Advisory Database published GHSA-2f84-r5f9-388p, a critical malware advisory for the npm package obfuscation-detector. Versions 3.0.1 and 3.1.0 contain embedded malicious code (CWE-506); no patched versions exist. The advisory states any computer that installed or ran the package should be considered fully compromised, with possible full control by an outside entity, and that removing the package may not eliminate all malicious software. The package had about 9,516 downloads/month, two dependent repositories, and three GitHub stars. No CVE, CVSS, EPSS, or in-the-wild exploitation details were provided. Affected users must isolate or rebuild hosts and rotate all secrets and keys from a different, trusted computer.
What to do
- Treat any host that installed or ran obfuscation-detector 3.0.1 or 3.1.0 as fully compromised; isolate it from the network and rebuild from trusted media.
- From a different clean computer, rotate all credentials, API keys, SSH keys, tokens, and secrets that were present on affected hosts.
- Remove the package and lockfile entries, block the affected versions in registry/proxy controls, and audit dependency trees for transitive installs.
- Hunt for persistence, unauthorized access, data exfiltration, and malicious processes; review logs and egress for suspicious activity.
- Review CI/CD systems and developer machines that may have executed the package; rotate CI secrets and rebuild affected artifacts.
Sources
All live incidents on Threat Watch