Malicious code in chai-as-encrypted (npm)
MAL-2026-2888 · GHSA-5m93-37pp-5rc3
Published · Modified
Dependency scanning
Check whether chai-as-encrypted is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
chai-as-encrypted is a malicious npm package that when imported downloads a C2 dropper from https://api.npoint[.]io/29ebd497b6f232e6b0a9 and executes it (similar to malware in to chai-await-test).
__
Source: amazon-inspector (dfb6c123f5eba4181918855f8beed0a215d004463947ad5df587298dac555a14)
The package chai-as-encrypted was found to contain malicious code.
Source: ghsa-malware (852d51d07fcb5997c5789823a3ac844c3788de931fcf80b9e8c589a87f3274fb)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Ready to move
Start Securing
Free, no credit card | First findings in minutes