# MAL-2026-14374: Malicious code in rust-testing-utils (npm)


- **Type:** Malicious package
- **Package:** `rust-testing-utils` (npm)
- **Published:** 23 Aug 2026

## What is MAL-2026-14374?

MAL-2026-14374 is a malicious package in rust-testing-utils, published on 23 Aug 2026. 

### Official description

The package impersonates the pino logger in its README, keywords, and API surface. index.js exports middleware that spawns lib/caller.js as a detached child process on invocation. caller.js reconstructs a hardcoded URL by base64-decoding a value stored under a fake `process.env.DEV_API_KEY` inside a fabricated `process` object, resolving to https://api.jsonstorage.net/v1/json/2ef8c758-a96f-459e-b036-b3b90379a165/f89e8264-86c2-4684-94da-c3f82d59370f. It fetches this URL with axios and passes the returned `cookie` field to `new Function.constructor("require", s)`, then invokes the resulting function with `require` as an argument, giving the remotely fetched code arbitrary execution with full module-loading capability in the consumer's process. The endpoint content is attacker-controlled and mutable, so the executed payload can change at any time without a package update. The base64-encoded URL, fabricated env-var names used to hide the destination, and pino-lookalike cover story are consistent with an intentional supply-chain attack rather than legitimate functionality.

## What should I do about MAL-2026-14374?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-14374 is a malicious package: rust-testing-utils (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-14374/ (Markdown: https://insights.sbomify.com/MAL-2026-14374/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-14374

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-14374/
Summaries are generated and may contain mistakes; the official description above is the record.
