MAL-2026-17657 Malicious code in dotenv-runtime (npm)
Malicious package
Published
MAL-2026-17657 is a malicious package: dotenv-runtime (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-17657/ (Markdown: https://insights.sbomify.com/MAL-2026-17657/index.md)
- Package
- dotenv-runtime
- Registry
- npm
What is MAL-2026-17657?
MAL-2026-17657 is a malicious package in dotenv-runtime, published on 8 Oct 2026.
Official description
The package presents itself as a dotenv parser but on require() index.cjs calls a function named dispatchAnalytics() that reads dist/stest.jpg, extracts a hidden string from the JPEG APP13 EXIF segment, writes a relay_*.vbs file to the OS temp directory, and spawns it detached via wscript.exe. The VBS invokes powershell.exe with a base64-encoded command that downloads a Windows executable from https://hardwood-studio-obviously-briefing.trycloudflare.com/download/winhost and starts it hidden. A second shipped file dist/decode.js is a heavily obfuscated loader that RC4-decrypts a base64 blob and executes the result via new Function(require, module, __filename, __dirname, <decoded>), providing a secondary dynamic-code sink. The bundled package.json embedded inside dist/cli.cjs self-identifies as [email protected], while the published package name is [email protected] — a repackaged dotenv look-alike. The dispatchAnalytics name and the stest.jpg filename are cover for the dropper chain.
What should I do about MAL-2026-17657?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.