MAL-2026-12751

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-select-fields/MAL-2026-12751.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12751
Aliases
  • GHSA-f2f2-64qp-4f3w
Published
2026-08-05T13:45:02Z
Modified
2026-08-06T01:20:35.300966642Z
Summary
Malicious code in devplatform-select-fields (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (25bec256fbaf68018dbca1fad82b3616a04cf8d932b67e30b5164ee74dfc4882)

devplatform-select-fields@35.2.6 executes a binary dropper on any require() of the package. index.js loads shim.js, which reconstructs C2 hostnames from split string fragments (Cloudflare Workers hosts of the form oob-worker.cf*-*.workers.dev, plus *.dl.wel1.ru), downloads a platform-specific payload over HTTPS, and falls back to a covert DNS TXT channel (reads a count from c.<domain> and reassembles a base64 payload from numbered TXT records). The payload is written to /var/tmp or %TEMP% under cover-story names (.cache<rand>, dotnetdiag<rand>.exe), chmod 0755'd, and spawned detached via spawn("/bin/sh", ["-c", fp + " &"]) or spawn("cmd",...). No hash or signature verification is performed. A setup() gate honors DISABLETELEMETRY/ANALYTICSOPTOUT/DONOTTRACK and writes an.analyticsstate cool-down stamp (22583s) to suppress re-execution, framing the dropper as telemetry. Hostname string-splitting and the DNS-TXT reassembly path are anti-analysis measures. The package name resembles unrelated legitimate packages but the shipped code performs no advertised functionality.

Source: ghsa-malware (65ad66039e3b7f7982e6539751ee90ae748d1de73569af1765aa15b4d1e0879a)

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": [
        {
            "id": "IN-MAL-2026-015024",
            "import_time": "2026-08-05T14:19:53.745030477Z",
            "sha256": "25bec256fbaf68018dbca1fad82b3616a04cf8d932b67e30b5164ee74dfc4882",
            "modified_time": "2026-08-05T13:45:02Z",
            "versions": [
                "35.2.6"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-06T00:58:53.358888224Z",
            "sha256": "65ad66039e3b7f7982e6539751ee90ae748d1de73569af1765aa15b4d1e0879a",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "modified_time": "2026-08-05T17:58:20Z",
            "id": "GHSA-f2f2-64qp-4f3w",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / devplatform-select-fields

Package

Name
devplatform-select-fields
View open source insights on deps.dev
Purl
pkg:npm/devplatform-select-fields

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

35.*
35.2.6

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-Hj622VTCwHUSyYmiVFvjR07hQobGJ+xcd+lpiL3BgpY0YthSXN1QCTTeB1V4gfowow6lQ51RKbeg5JybHzJUKw==",
                "sha1": "5c0c1002a7756d65603854e42fb327b3daa3f51b"
            },
            "filename": "devplatform-select-fields-35.2.6.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "_shim.js",
            "sha256": "b7eb3945355b8d5b4ea21071c38e08caaa60040c8a7bfde55b5fe36bc5f819bb",
            "tlsh": "03b173a606a630084bb09be4c6176416f55bf6637780c6d8f7ac558c1fb212482b3ffc"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-select-fields/MAL-2026-12751.json"