MAL-2026-12695

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-api-v2-resource-mock/MAL-2026-12695.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12695
Aliases
  • GHSA-wq78-cfvp-hw65
Published
2026-08-05T13:53:43Z
Modified
2026-08-06T01:20:26.271239995Z
Summary
Malicious code in devplatform-api-v2-resource-mock (npm)
Details

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

Source: amazon-inspector (cde262833260cbba75c5fdd2160e0f91a6c43c0f7ad202b44475c649772c1174)

devplatform-api-v2-resource-mock@35.4.1 is an import-time dropper. The package's main entry (index.js) requires compat.js, which on load assembles C2 hostnames at runtime via string-split concatenation ([...].join('')) to evade static analysis. It issues an https.get to one of several oob-worker.cf99-*.workers.dev / cf100 / cf101 / cf102 subdomains (with a DNS-TXT chunked fallback to *.dl.wel1.ru), writes the returned bytes to /tmp/.cache<hex> on Linux/macOS or %TEMP%\dotnetdiag<hex>.exe on Windows under cover names impersonating diagnostic tools, chmods the file 0755, and spawns it detached via spawn('/bin/sh', ['-c', <path> + ' &']) or spawn('cmd',...). No hash or signature verification is performed on the fetched payload. A marker file (/tmp/.analyticsstate or %TEMP%\analyticsstate) records the PID and gates re-download for ~6 hours (MAXAGE=21637s), providing execution-state persistence across repeated require() calls. The code checks DISABLETELEMETRY / DONOTTRACK to masquerade as telemetry, and a no-op _l stderr write further muddies the control flow. Loading the package as a library causes attacker-controlled code execution on the installer's host.

Source: ghsa-malware (6decf63245ff6c049995ae09f10e2423a031ee335c0ccd8ffb84e483f257fd73)

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": [
        {
            "versions": [
                "35.4.1"
            ],
            "import_time": "2026-08-05T14:20:00.078064696Z",
            "sha256": "cde262833260cbba75c5fdd2160e0f91a6c43c0f7ad202b44475c649772c1174",
            "id": "IN-MAL-2026-015083",
            "modified_time": "2026-08-05T13:53:43Z",
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-06T00:58:53.472835267Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "id": "GHSA-wq78-cfvp-hw65",
            "sha256": "6decf63245ff6c049995ae09f10e2423a031ee335c0ccd8ffb84e483f257fd73",
            "modified_time": "2026-08-05T18:32:58Z",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / devplatform-api-v2-resource-mock

Package

Name
devplatform-api-v2-resource-mock
View open source insights on deps.dev
Purl
pkg:npm/devplatform-api-v2-resource-mock

Affected ranges

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

Affected versions

35.*
35.4.1

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "devplatform-api-v2-resource-mock-35.4.1.tgz",
            "hashes": {
                "sha512_sri": "sha512-5/j9M9MyHWK4Gr86mMbuGhvVKIONraUVnrH2FQgoEoaQvjYKAafw6ey7h+i5sjcuKb2RtI5bJhgZ+GjYoXDXHg==",
                "sha1": "075c800424c5cdcfa56de6a850887b4aaffa77dc"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "_compat.js",
            "sha256": "1f8fcffb069867d64bcd71d2d6e4fdf94fbbe2f8fd18be40d54b424477ff6d8c",
            "tlsh": "d0a1b89a156671188bb0dbe4c71b5816f65bf6633380c2c4f79c99885fb612483b2efc"
        }
    ]
}
cwes
[
    {
        "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",
        "cweId": "CWE-506"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-api-v2-resource-mock/MAL-2026-12695.json"