Malware in sort-destructure-keys (npm): fully compromised machines, rotate all secrets
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub published a malware advisory (GHSA-wv5f-3gpr-6cpm) for the npm package sort-destructure-keys on 2026-12-01. All versions (= 0) are flagged as embedded malicious code (CWE-506) with no patched versions available. The advisory states any computer with the package installed or running should be considered fully compromised, meaning attackers may have obtained full control, including access to secrets and keys. The package has low reach (~49 downloads/month), limiting blast radius, but any affected machine is assumed compromised. There is no fix; removal of the package does not guarantee removal of resulting malicious software. Users must rotate credentials from a clean machine and rebuild affected systems.
What to do
- Remove sort-destructure-keys from all projects and lockfiles immediately
- Rotate all secrets, keys, and credentials stored on or accessible from affected machines, from a clean computer
- Rebuild/reimage affected machines; do not assume removal of the package removes the malware
- Audit npm dependencies for the package and check logs/CI for signs of compromise
- Block the package name in dependency management and CI to prevent reintroduction
Sources
All live incidents on Threat Watch