MAL-2026-17189 Malicious code in chai-as-relay (npm)
Malicious package
Published
MAL-2026-17189 is a malicious package: chai-as-relay (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-17189/ (Markdown: https://insights.sbomify.com/MAL-2026-17189/index.md)
- Package
- chai-as-relay
- Registry
- npm
What is MAL-2026-17189?
MAL-2026-17189 is a malicious package in chai-as-relay, published on 26 Sep 2026.
Official description
Package main index.js unconditionally requires./lib/config at module load. lib/config.js is a single-line ~4.4MB obfuscator.io-packed IIFE (hex-escaped string-array of 26,102 entries, rotated with wrapper decoders, control-flow flattening, ~133k transform changes) that self-invokes at top level. Any consumer that
require('chai-as-relay') executes this opaque bundle in-process. The remainder of the tarball (README, LICENSE, index.d.ts, lib/proto, etc.) is copied verbatim from the legitimate pino logger project, and index.js additionally exports a no-op Express-style middleware — the package's advertised identity is a cover for the dropper. The package.json name (chai-as-relay) and author ([email protected]) have no relationship to pino or its maintainers. A heavily obfuscated, multi-megabyte, self-executing blob wired into the require entry of a package that impersonates a top-tier logger has no legitimate purpose and gives whoever controls the payload arbitrary code execution on every installer that imports the package.What should I do about MAL-2026-17189?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.