MAL-2026-5980

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/gpu-accelerator/MAL-2026-5980.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5980
Aliases
  • GHSA-qc67-wjjh-qpcv
Published
2026-06-17T04:26:18Z
Modified
2026-07-15T09:19:33.002544475Z
Summary
Malicious code in gpu-accelerator (npm)
Details

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

Source: amazon-inspector (ab0d6b253674f5eef505fbffb76003d2071569fd9d8abdf8993197738bb27759)

The package advertises itself as a PostCSS plugin for CSS hardware-acceleration hints, but its only legitimate behavior is a 3-line walkDecls that adds will-change: transform. When the plugin factory in lib/index.js is invoked (which happens automatically when a developer wires the plugin into their PostCSS pipeline), it reads assets/driver-shim.bin (a 55,928-byte comma-separated integer list), XOR-decodes every byte with 0xA5 to recover ~56 KB of JavaScript source, and executes that source via vm.Script(...).runInContext(...) with require, process, console, and Buffer exposed in the context — granting the decoded code full Node privileges including filesystem and network access. Decoding confirms the bytes are JavaScript source (recurring function and require tokens, quoted module names). Before decoding, lib/index.js:18-21 checks process.env.CI || process.env.CONTINUOUS_INTEGRATION and !process.stdout.isTTY and returns early in those cases — a deliberate sandbox-evasion gate that keeps the payload dormant on CI runners and automated scanners while firing on interactive developer workstations. The combination of (a) a cover-story package whose advertised purpose is unrelated to its actual code, (b) an XOR-obfuscated executable blob shipped as a.bin asset, (c) vm.Script execution of that blob with full Node capabilities, and (d) a CI/headless evasion gate is the canonical supply-chain attack fingerprint.

Source: ghsa-malware (ca121b8cab724cae30a7c0328dabe455c693b793c1679934c2edc027b50d3534)

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": [
        {
            "modified_time": "2026-06-17T04:26:28Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-17T05:45:42.620767696Z",
            "id": "IN-MAL-2026-006890",
            "versions": [
                "1.4.4"
            ],
            "sha256": "66902224a57ea11ec1dfb7f05ba35202d6ab70c39d101d35b68dbe5e2b3e2f5f"
        },
        {
            "modified_time": "2026-06-17T04:26:18Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-17T05:45:42.328507803Z",
            "id": "IN-MAL-2026-006886",
            "versions": [
                "1.4.6"
            ],
            "sha256": "86fe9c9369454bfb2bba18da9d8b21dee61004bd897a8cf62c0d1661bc5a2e2f"
        },
        {
            "modified_time": "2026-06-17T04:26:23Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-17T05:45:42.514692376Z",
            "id": "IN-MAL-2026-006888",
            "versions": [
                "1.4.2"
            ],
            "sha256": "9c838fde05746cf2beec757a3c2b29e9736abdca2665e639a5ae5e5870ce269d"
        },
        {
            "modified_time": "2026-06-17T04:26:22Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-17T05:45:42.444485259Z",
            "id": "IN-MAL-2026-006887",
            "versions": [
                "1.4.7"
            ],
            "sha256": "ab0d6b253674f5eef505fbffb76003d2071569fd9d8abdf8993197738bb27759"
        },
        {
            "modified_time": "2026-06-17T04:26:23Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-17T05:45:42.579522449Z",
            "versions": [
                "1.4.5"
            ],
            "id": "IN-MAL-2026-006889",
            "sha256": "cdf785e83cbfda56c6dd7bf4bfe31861d94a60757517f009215101e85b7de0c4"
        },
        {
            "modified_time": "2026-07-15T03:35:58Z",
            "source": "ghsa-malware",
            "import_time": "2026-07-15T05:00:56.811731658Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "GHSA-qc67-wjjh-qpcv",
            "sha256": "ca121b8cab724cae30a7c0328dabe455c693b793c1679934c2edc027b50d3534"
        },
        {
            "modified_time": "2026-07-15T08:07:04Z",
            "source": "amazon-inspector",
            "import_time": "2026-07-15T08:51:05.285726697Z",
            "id": "IN-MAL-2026-010636",
            "versions": [
                "1.4.3"
            ],
            "sha256": "7cb5234c33f14e30bee250399f352582bde70ee5f940f5763424139c19cdf707"
        }
    ]
}
References
Credits

Affected packages

npm / gpu-accelerator

Package

Affected ranges

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

Affected versions

1.*
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.4.7

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "gpu-accelerator-1.4.4.tgz",
            "hashes": {
                "sha1": "2c80b9e994face45d955b9e593aa99d1c568bf97",
                "sha512_sri": "sha512-FoCQuqBxhbsNDqm4cbeIDTvbSuG15xzhxxTvMlXwzYL0k0iT6fBDttOeVsKJcvdj3xQbPOZinBP+vjFWBcnaqA=="
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "522111855bfaa040135764e9a13b440275aec4533006c9e4faec82e55fc7a78cbd3eec",
            "path": "lib/index.js",
            "sha256": "d0cb1d7fc7655a0d06d668210b0cf15fe78a9937cd789ed68494e3e4c079cd01"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/gpu-accelerator/MAL-2026-5980.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]