Skip to content
supplychainattack.orgSupply chain attack incident catalog
activecritical

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.

ShareXLinkedInHacker News
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

  1. 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.

  1. activecritical

    Malware in @doaction/auth

    Malware discovered in the npm package @doaction/auth. Systems with this package installed are considered fully compromised and require immediate remediation.

    npmCompromised package
  2. containedcritical

    Malware in @doaction/shared

    Malware was discovered in the npm package @doaction/shared. Systems with this package installed are considered fully compromised and require immediate remediation.

    npmCompromised package
  3. containedcritical

    Malware in transacts

    The npm package transacts was found to contain malware, resulting in full system compromise of any computer with the package installed or running. All secrets and keys should be rotated immediately from a different computer, and the package should be removed.

    npmCompromised package
  4. containedcritical

    Malware in buffer-utilities

    Malware was discovered in the npm package buffer-utilities, resulting in full system compromise for any installation. The package should be removed immediately and all secrets and keys rotated from a clean system.

    npmCompromised package