MAL-2026-10504 Malicious code in chai-as-verified (npm)
Malicious package
Published
MAL-2026-10504 is a malicious package: chai-as-verified (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-10504/ (Markdown: https://insights.sbomify.com/MAL-2026-10504/index.md)
- Package
- chai-as-verified
- Registry
- npm
What is MAL-2026-10504?
MAL-2026-10504 is a malicious package in chai-as-verified, published on 13 Jul 2026.
Official description
Package name typosquats chai-as-promised while its package.json advertises unrelated logger/vulnerability-management metadata. On require, index.js invokes a middleware() that spawns a detached
node child process running lib/initializeCaller.js with stdio ignored and unref()'d. That child decodes a base64-hidden URL (https://tomato-brunhilda-40.tiiny.site/index.json) from a shadowed process.env object, fetches the JS response with a base64-decoded header name x-secret-key, and executes it via new Function.constructor("require", response)(require), granting the remote payload full Node require access. The C2 URL, header name, and header value are stored as base64 to hide them from static analysis.What should I do about MAL-2026-10504?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.