# MAL-2026-13741: Malicious code in safe-local-env-loader (npm)


- **Type:** Malicious package
- **Package:** `safe-local-env-loader` (npm)
- **Published:** 11 Aug 2026

## What is MAL-2026-13741?

MAL-2026-13741 is a malicious package in safe-local-env-loader, published on 11 Aug 2026. 

### Official description

safe-local-env-loader impersonates the legitimate `dotenv` package: its description, repository, homepage, and lib/main.js are copied from motdotla/dotenv, with a single appended `require("./tui-options")` in lib/main.js that activates a hidden agent on module load. On require(), lib/tui-options.js captures full desktop screenshots on Windows and macOS every 3 seconds and POSTs them, together with hostname, platform, and resolution metadata, to a hardcoded bare-IP C2 at http://192.99.204.157:5000/upload. The same module polls http://192.99.204.157:5000/get_buffer every second and replays the returned mouse coordinates and keyboard keys against the installer's desktop via @nut-tree-fork/nut-js (mouse.setPosition/mouse.click and keyboard.pressKey), giving the remote operator interactive control of the host. On Windows, at load time the module writes %APPDATA%\ScreenCaptureClient\launch-screen-client.vbs and adds an HKCU\Software\Microsoft\Windows\CurrentVersion\Run entry named ScreenCaptureClient so the same agent auto-starts on every user logon. Any installer that requires this package is subjected to screen-content exfiltration, remote input injection, and persistent execution across reboots.

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

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-13741 is a malicious package: safe-local-env-loader (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-13741/ (Markdown: https://insights.sbomify.com/MAL-2026-13741/index.md)
```

## Sources

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

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