MAL-2026-10217

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/dotnet-runtime-base/MAL-2026-10217.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10217
Aliases
  • GHSA-9gr8-wg29-9wvv
Published
2026-07-13T01:19:16Z
Modified
2026-07-13T05:01:59.948667661Z
Summary
Malicious code in dotnet-runtime-base (npm)
Details

-= 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-07-13T01:55:08.924751322Z",
            "sha256": "19868c3be64ba714fea745b8b82e6417418bea362ae477cfa3dfb4529ca4ca70",
            "id": "GHSA-9gr8-wg29-9wvv",
            "modified_time": "2026-07-13T01:19:17Z",
            "versions": [
                "1.0.5",
                "1.0.4"
            ],
            "source": "ghsa-malware"
        },
        {
            "import_time": "2026-07-13T04:43:12.567195921Z",
            "sha256": "c10c75766303f8c3bf261487e341e537f103116026309006ab71d977aacdd235",
            "id": "IN-MAL-2026-009789",
            "modified_time": "2026-07-13T04:13:24Z",
            "versions": [
                "1.0.4"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-07-13T04:43:12.690235417Z",
            "sha256": "7bc5e9634a4a10746ab548b5f54ca5b3ffb1118d562a1831d371017767e183a0",
            "id": "IN-MAL-2026-009790",
            "modified_time": "2026-07-13T04:13:34Z",
            "versions": [
                "1.0.5"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / dotnet-runtime-base

Package

Name
dotnet-runtime-base
View open source insights on deps.dev
Purl
pkg:npm/dotnet-runtime-base

Affected ranges

Affected versions

1.*
1.0.4
1.0.5

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/dotnet-runtime-base/MAL-2026-10217.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "sha256": "bc74cfcea451bf484dc98ac62f6019884b88b7b27d9d52f7923b5f2e1ecf1870",
            "tlsh": "4a1127e346a94bf45d6502d3981955479cb3c413065452f8b2bcd845ef9143f4186bde",
            "path": "install.js"
        }
    ]
}