Malware in chai-mocks
Malware discovered in the npm package chai-mocks. Systems with this package installed are considered fully compromised and require immediate remediation including secret rotation and package removal.
- Disclosed
- Last updated
- Blast radius
- Any system with chai-mocks installed or running
- Ecosystems
- Attack vectors
- Affected entities
- chai-mocksnpm package
A malware incident has been identified in the npm package chai-mocks. According to the GitHub advisory (GHSA-5wqh-hxqx-c6j3), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory recommends immediate action: all secrets and keys stored on affected computers should be rotated from a different, uncompromised system. While the package should be removed, there is no guarantee that removal will eliminate all malicious software that may have been installed as a result of the compromise.\n\nThis represents a critical supply chain attack through a compromised npm package with potential for complete system compromise.
Indicators of compromise
- Packages
- chai-mocks
Remediation
- Immediately rotate all secrets and keys from a different, uncompromised computer
- Remove the chai-mocks package from all affected systems
- Conduct a full security audit of any system that had chai-mocks installed
- Consider the affected system(s) as potentially fully compromised and plan for complete rebuild if critical
- Review access logs and monitor for unauthorized activity on affected systems
Sources
- GitHub Advisory GHSA-5wqh-hxqx-c6j3 · GitHub Advisory Database
Cite this entry
"Malware in chai-mocks." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 8, 2026; last updated June 8, 2026. https://supplychainattack.org/incident/malware-in-chai-mocks-bw7o1x
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- containedcritical
Malware in eth-codergen
Malware was discovered in the npm package eth-codergen. Systems with this package installed are considered fully compromised and require immediate remediation.
npmCompromised package - containedcritical
Malware in fs-extra-core
Malware was discovered in the npm package fs-extra-core. Systems with this package installed or running are considered fully compromised and require immediate remediation including secret rotation and package removal.
npmCompromised package - containedcritical
Malware in cktool-core
Malware was discovered in the npm package cktool-core. Systems with the package installed or running are considered fully compromised and require immediate remediation.
npmCompromised package - activecritical
Malware in lychee-norm-cache
Malware discovered in the npm package lychee-norm-cache. Systems with this package installed are considered fully compromised and require immediate remediation.
npmCompromised package