Malware in chai-as-persisted
Malware was discovered in the npm package chai-as-persisted. Any computer with this package installed or running should be considered fully compromised, with all secrets and keys requiring immediate rotation from a different system.
- Disclosed
- Last updated
- Blast radius
- Any system with the package installed or running
- Ecosystems
- Attack vectors
- Affected entities
- chai-as-persisted
The npm package chai-as-persisted was found to contain malware. According to the GitHub Advisory (GHSA-4wm6-vmww-2544), any computer that has this package installed or running should be considered fully compromised.\n\nImmediate action is required: all secrets and keys stored on affected computers should be rotated immediately from a different, uncompromised computer. 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 package installation, as the outside entity may have gained full control of the system.\n\nThe advisory was published on 2026-06-30 via the GitHub Advisory database.
Indicators of compromise
- Packages
- chai-as-persisted
Remediation
- Immediately rotate all secrets and keys from a different, uncompromised computer
- Remove the chai-as-persisted package from all affected systems
- Conduct a full security audit of any system that had this package installed
- Consider the affected system(s) as potentially fully compromised and take appropriate incident response measures
- Review system logs and network traffic for signs of unauthorized access or data exfiltration
Sources
- GitHub Advisory GHSA-4wm6-vmww-2544 · GitHub Advisory Database
Cite this entry
"Malware in chai-as-persisted." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 30, 2026; last updated June 30, 2026. https://supplychainattack.org/incident/malware-in-chai-as-persisted-1wbilc
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malicious code in test2221 (npm)
The npm package test2221 version 2.2.4 was identified as malicious by the OpenSSF Package Analysis project. The package executes commands associated with malicious behavior.
npmCompromised package - containedcritical
Malware in n8n-nodes-trust-me-im-totally-safe
Malware was discovered in the npm package n8n-nodes-trust-me-im-totally-safe, resulting in full system compromise for any computer with the package installed or running. All secrets and keys on affected systems should be rotated immediately from a different computer.
npmCompromised package - activecritical
Malware in litespeed-cache
Malware discovered in the npm package litespeed-cache. The package grants full system compromise to attackers, requiring immediate removal and credential rotation from a clean system.
npmCompromised package - containedcritical
Malware in open-worker-cli
Malware was discovered in the npm package open-worker-cli. Systems with this package installed or running should be considered fully compromised, with all secrets and keys requiring immediate rotation from a different computer.
npmCompromised package