{"id":"MAL-2026-13741","revision":"26a07332da5b4235a3e05793fa8a7491","records":[{"revision":"26a07332da5b4235a3e05793fa8a7491","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13741","aliases":[],"title":"Malicious code in safe-local-env-loader (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (79536d7a1e4238fcad87abef5becbb3233148c071cae3c095798417a012896f8)\nsafe-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.\n","state":0,"publishedAt":"2026-08-11T15:14:17+00:00","modifiedAt":"2026-08-11T15:32:27.77824+00:00","affected":[{"ecosystem":"npm","name":"safe-local-env-loader","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/safe-local-env-loader/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13741","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13741","identifiers":["MAL-2026-13741"]},"retained":false,"historicalAffected":[]}],"coverage":[]}