Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

chai-as-assurednpm

chai-as-assured is a confirmed malicious npm package (MAL-2026-6532) that opens a backdoor for remote access (malicious versions 6.0.4, 7.1.2). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in chai-as-assured (npm)

MAL-2026-6532
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall chai-as-assured

What this malware does

chai-as-assured impersonates the popular chai-as-promised package (matching README, author, and API surface). When the exported plugin function is invoked under normal usage, an async IIFE in the plugin body base64-decodes a hardcoded URL (https://amethyst-lorrin-26.tiiny.site/index.json), performs an axios.get against that anonymous third-party host with a disguised header, and executes the response's cookie field as JavaScript via new Function.constructor('require', response)(require). The fetched payload runs with full Node module privileges (filesystem, network, child_process, etc.) because require is passed in. The C2 URL, header name (x-secret-key), and header value are concealed as base64 strings inside a fake local process.env object (DEV_API_KEY / DEV_SECRET_KEY / DEV_SECRET_VALUE) that shadows Node's global to evade casual source review. The combination of name-confusion against a top-100 chai ecosystem package, deliberate obfuscation of attacker infrastructure, an unpinned anonymous tiiny.site host, and dynamic execution of the fetched response with require is an unambiguous remote-code-execution dropper targeting any project that installs and loads this plugin.

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.

Malicious versions

2 flagged
6.0.47.1.2

Indicators of compromise (SHA-256)

bd28efd7a3d07f87ec22556cc25a8c07117fa4cdd237c6cb1db750c976a11836
abca3307a25c5cc8fcf8d53500c5227dff24ba0e3f534148735c7382f344d4ca
c485746666d65194fcec1929637bee2ef3f7f7c1a427a5e28eaf2ce162ea8c19
e13f6608ff604a45363f4784902611c60016a30143ca1aa726856b71ef9cc044

Detection & response playbook

Backdoor / remote access
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for chai-as-assured (2 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging chai-as-assured across your stack and pipelines.

  2. If you installed it — respond

    chai-as-assured establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.

  3. Did it already run?

    If chai-as-assured was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks chai-as-assured before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. chai-as-assured on npm has been identified as a malicious package (versions 6.0.4, 7.1.2 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-007649IN-MAL-2026-007707GHSA-m282-3m8c-qjwj

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks chai-as-assured-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.

Explore

chai-as-assured (npm) malicious package — MAL-2026-6532 | O3 Security