Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malware in chai-as-const

Malware was discovered in the npm package chai-as-const. Systems with this package installed are considered fully compromised and require immediate remediation.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any system with chai-as-const installed or running
Ecosystems
Attack vectors
Affected entities
  • chai-as-const

The npm package chai-as-const was found to contain malware. According to the GitHub Advisory (GHSA-c2cc-6c6f-8qrp), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory recommends that all secrets and keys stored on affected computers be rotated immediately from a different, uncompromised system. While the malicious 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 is a critical supply chain incident affecting the npm ecosystem, with potential impact to all users and systems that have installed or executed this package.

Indicators of compromise

Packages
  • chai-as-const

Remediation

  • Immediately isolate any system that has installed or run chai-as-const
  • Rotate all secrets, API keys, and credentials from a different, uncompromised computer
  • Remove the chai-as-const package from all affected systems
  • Conduct a full security audit and malware scan of affected systems
  • Review system logs and network traffic for signs of unauthorized access or data exfiltration
  • Consider the affected system(s) as potentially fully compromised and plan for complete rebuild if critical systems are involved

Sources

  1. GitHub Advisory GHSA-c2cc-6c6f-8qrp · GitHub Advisory Database

Cite this entry

"Malware in chai-as-const." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 16, 2026; last updated July 16, 2026. https://supplychainattack.org/incident/malware-in-chai-as-const-okdm5s

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. containedcritical

    Malware in @sectest429/hello-npm-world

    Malware was discovered in the npm package @sectest429/hello-npm-world. Systems with this package installed or running should be considered fully compromised and require immediate remediation.

    npmCompromised package
  2. containedcritical

    Malware in vor8zakon

    The npm package vor8zakon was found to contain malware that grants full system compromise to an outside entity. Any computer with this package installed or running should be considered fully compromised.

    npmCompromised package
  3. activecritical

    Malware in my-tailwind-gutenberg-block

    The npm package my-tailwind-gutenberg-block contains malware that grants full system compromise to an outside entity. All systems with this package installed should be considered fully compromised and all secrets and keys rotated immediately from a different computer.

    npmCompromised package
  4. containedcritical

    Malware in websight-p2p

    Malware was discovered in the npm package websight-p2p. 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