MAL-2026-10433 Malicious code in chain-guardian (npm)
Malicious package
Published
MAL-2026-10433 is a malicious package: chain-guardian (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-10433/ (Markdown: https://insights.sbomify.com/MAL-2026-10433/index.md)
- Package
- chain-guardian
- Registry
- npm
What is MAL-2026-10433?
MAL-2026-10433 is a malicious package in chain-guardian, published on 13 Jul 2026.
Official description
chain-guardian presents itself as a mocha gas reporter (typosquatting eth-gas-reporter) but its main entry index.js contains an always-true gate (
var opt = 1; if (!opt) {... } else {... }) that forces construction of the reporter to invoke utils.connectNet. connectNet resolves lib/syncResolve.js and spawns it via spawn('node', [u_src], { detached: true, stdio: ['ignore'] }) followed by progs.unref(), so the child continues running after mocha exits with its output suppressed. lib/syncResolve.js fetches http://check-server-state.vercel.app/server/v2 over plaintext HTTP and, on a 404 response whose body carries a token field, passes that field to new Function('require', error.response.data.token) and invokes the resulting function with the real require, giving the remote host arbitrary code execution in the developer or CI Node process. A duplicate benign Gas reporter function is defined but never exported, serving as cover for the dropper path.What should I do about MAL-2026-10433?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.