Malicious code in dotnet-runtime-base (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-10217
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (c10c75766303f8c3bf261487e341e537f103116026309006ab71d977aacdd235) The package's postinstall lifecycle script (package.json line 7: "postinstall": "node install.js") runs install.js, which on Windows writes a PowerShell script to %TEMP% and uses WebClient.DownloadFile to fetch https://raw.githubusercontent.com/cphc811-ui/d3d/main/npm-sc-legit.exe from a personal GitHub account unrelated to the package publisher, then launches the executable via powershell.exe with -WindowStyle Hidden -ExecutionPolicy Bypass -NoProfile -NonInteractive. The dropper is gated to skip when process.platform is not 'win32' and when NODE_ENV=='development', evading developer and CI environments. The fetch targets a mutable branch (main) with no hash or signature verification, the binary is staged to a temp path and started hidden, and index.js contains a cover-story comment labelling the postinstall as the hidden payload. Installing this package on Windows causes arbitrary attacker-controlled code to run on the installer's machine. ## Source: ghsa-malware (19868c3be64ba714fea745b8b82e6417418bea362ae477cfa3dfb4529ca4ca70) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
- Source published
- 13 Jul 2026 01:19:16 UTC
- Source modified
- 13 Jul 2026 05:01:59 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.