Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malware in chai-foundry

Malware was discovered in the npm package chai-foundry, affecting any computer with the package installed or running. The compromise grants full system control to an outside entity and requires immediate remediation including secret rotation and package removal.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any system with chai-foundry installed or executed
Ecosystems
Attack vectors
Affected entities
  • chai-foundrynpm package containing malware

A critical malware incident was identified in the npm package chai-foundry. According to the GitHub Advisory (GHSA-x29h-74hf-jq7x), any computer with this package installed or running should be considered fully compromised.\n\nThe malware grants complete control of affected systems to an outside entity. The advisory recommends immediate action: all secrets and keys stored on compromised computers should be rotated from a different, unaffected machine. 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 initial compromise.\n\nThis represents a critical supply chain attack through a compromised npm package with potential for widespread impact across development and production environments.

Indicators of compromise

Packages
  • chai-foundry

Remediation

  • Immediately rotate all secrets, API keys, and credentials from a different, unaffected computer
  • Remove the chai-foundry package from all affected systems
  • Audit system logs and network traffic for signs of unauthorized access or data exfiltration
  • Consider the affected computer(s) fully compromised and plan for complete rebuild or forensic analysis
  • Check for any other suspicious packages or modifications on affected systems
  • Notify any systems or services that may have been accessed using credentials from the compromised computer

Sources

  1. GitHub Advisory GHSA-x29h-74hf-jq7x · GitHub Advisory Database

Cite this entry

"Malware in chai-foundry." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 18, 2026; last updated August 18, 2026. https://supplychainattack.org/incident/malware-in-chai-foundry-pjbb31

Suggest a correction

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

  1. containedcritical

    Malware in svelte-dim-kit

    The npm package svelte-dim-kit was found to contain malware, potentially giving attackers full control of affected systems. All systems with this package installed should be considered compromised and secrets/keys rotated immediately from a different computer.

    npmCompromised package
  2. containedcritical

    Malicious code in @syncraft-labs/react (npm)

    The npm package @syncraft-labs/react contained obfuscated malicious code in its ESM distribution that implements the EtherHiding pattern, fetching and executing arbitrary code from an Ethereum smart contract via RPC endpoints. The tampering occurred post-build in the dist/index.js artifact.

    npmCompromised package
  3. containedcritical

    Malicious code in stillm4ddpocs-demo-sprocket (npm)

    The npm package stillm4ddpocs-demo-sprocket version 999.9.12 contains malicious code that exfiltrates system and project metadata via multiple channels (HTTPS, HTTP, and DNS) to a hardcoded callback host. The package uses a high version number to exploit dependency-confusion attacks against organizations with internal packages of the same name.

    npmCompromised packageDependency confusion
  4. resolvedcritical

    Malicious code in stillm4ddpocs-rtest-bravo (npm)

    The npm package stillm4ddpocs-rtest-bravo contained malicious code in its preinstall script that automatically executed during installation, collecting system information and internal package metadata and exfiltrating it to a third-party Interactsh collector via HTTPS and DNS tunneling.

    npmCompromised package