Malicious npm package ms-graph-types — full machine compromise; rotate all secrets
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub's advisory database published GHSA-56v6-hm44-xw6g on 2026-12-01 flagging the npm package ms-graph-types as malware (CWE-506, embedded malicious code). Every published version (= 0) is affected and no patched version exists, so the package must be removed rather than upgraded. The advisory states any computer with the package installed or running should be considered fully compromised, implying attackers may have obtained full control, exfiltrated secrets and keys, and installed persistent malicious software that removal of the package may not eliminate. The package sees roughly 648 downloads per month and has 129 GitHub stars, so exposure is limited but real. There is no known legitimate source code and no fix; remediation is incident response, not patching.
What to do
- Treat any machine with ms-graph-types installed as fully compromised; isolate and rebuild it
- Rotate all secrets, keys, tokens and credentials stored on affected machines, from a clean computer
- Remove the package and audit for persistence mechanisms and additional malware
- Audit dependency lockfiles and CI systems for the package and block it in registries/proxies
- Review logs for signs of exfiltration or attacker activity since installation
Sources
All live incidents on Threat Watch