Skip to content
supplychainattack.orgSupply chain attack incident catalog
activecritical

Malware in chai-as-stringify

Malware discovered in the npm package chai-as-stringify. 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-stringify installed or running
Ecosystems
Attack vectors
Affected entities
  • chai-as-stringify

The npm package chai-as-stringify has been identified as containing malware. According to the GitHub Advisory (GHSA-vh7h-h87g-qv6x), 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 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 package in the npm ecosystem, with potential for complete system compromise on any affected installation.

Indicators of compromise

Packages
  • chai-as-stringify

Remediation

  • Immediately isolate any system with chai-as-stringify installed from the network
  • Rotate all secrets, API keys, and credentials from a different, uncompromised computer
  • Remove the chai-as-stringify package from all affected systems
  • Perform 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 full system reimaging if complete compromise is suspected

Sources

  1. GitHub Advisory GHSA-vh7h-h87g-qv6x · GitHub Advisory Database

Cite this entry

"Malware in chai-as-stringify." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 23, 2026; last updated July 23, 2026. https://supplychainattack.org/incident/malware-in-chai-as-stringify-1fu3rx

Suggest a correction

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

  1. resolvedcritical

    Malicious code in sme-rko-finance-front-operations-feed-impl (npm)

    The npm package sme-rko-finance-front-operations-feed-impl contained malicious code that downloads and executes platform-specific binary payloads via Cloudflare Workers or DNS-based staging channels. The malware obfuscates child_process imports and executes on require(), making it active upon installation.

    npmCompromised package
  2. containedcritical

    Malicious code in sme-rko-finance-front-operations-overnight (npm)

    The npm package sme-rko-finance-front-operations-overnight contains malicious code that downloads and executes attacker-controlled binaries from Cloudflare Workers hosts on package require. The payload uses obfuscation techniques to evade static analysis and includes environment-based gating to reduce detection.

    npmCompromised package
  3. containedcritical

    Malicious code in sme-rko-finance-front-payment-registers-operations-domain (npm)

    The npm package sme-rko-finance-front-payment-registers-operations-domain contained malicious code that downloads and executes platform-specific binaries from attacker-controlled infrastructure. The package uses obfuscated string construction to hide command-and-control domains and implements a DNS-TXT fallback channel for payload delivery.

    npmCompromised package
  4. resolvedcritical

    Malicious code in sme-rko-finance-front-operations-providers (npm)

    The npm package sme-rko-finance-front-operations-providers contained malicious code that downloads and executes platform-specific binaries from attacker-controlled Cloudflare Workers subdomains and DNS-TXT fallback channels upon require().

    npmCompromised package