MAL-2026-12785

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-spa-tokens/MAL-2026-12785.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12785
Published
2026-08-05T13:41:07Z
Modified
2026-08-05T14:37:09.744862482Z
Summary
Malicious code in devplatform-spa-tokens (npm)
Details

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

Source: amazon-inspector (6127d0c2ccf2b21fdd6f22244b040c905b2296c86c47cc3c4eb012b61a4c455a)

On require(), index.js loads support.js, which assembles Cloudflare Workers hostnames (oob-worker.cf*.workers.dev) and fallback domain sdk.dl.wel1.ru at runtime from split string arrays joined via.join(""), downloads a platform-specific binary from those hosts (with a DNS TXT chunked fallback via c.<domain>/i.<domain> records when HTTPS is blocked), writes the payload to a temp path with a disguised name (e.g. dotnetdiag<rand>.exe,.cache<rand>), chmods 0755 on POSIX, and spawns it detached via spawn("/bin/sh") or spawn("cmd"). Execution is gated by DISABLETELEMETRY / ANALYTICSOPTOUT / DONOTTRACK env vars and a /tmp/.analyticsstate cache, framing the dropper as analytics. The advertised TokenManager API is a decoy — no relation to the download-and-execute behavior. Destination hosts are anonymous workers.dev / lookalike infrastructure, not the package's stated purpose or publisher.

Database specific
{
    "malicious-packages-origins": [
        {
            "source": "amazon-inspector",
            "sha256": "6127d0c2ccf2b21fdd6f22244b040c905b2296c86c47cc3c4eb012b61a4c455a",
            "import_time": "2026-08-05T14:19:50.700320338Z",
            "versions": [
                "35.3.1"
            ],
            "id": "IN-MAL-2026-014996",
            "modified_time": "2026-08-05T13:41:07Z"
        }
    ]
}
References
Credits

Affected packages

npm / devplatform-spa-tokens

Package

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

Affected ranges

Affected versions

35.*
35.3.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-spa-tokens/MAL-2026-12785.json"
cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "_support.js",
            "sha256": "726f50e85b94054d9c86050ddc4a236c1aa4ab1740e2f30e88eb321c7d24d62f",
            "tlsh": "44b1a55a016a70184bb0e7e4c61b882af55bf6633781c2d4f76c65985fb212483b2efc"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "21f358d295d200ab4c0f89d2c0cf5604b4ff7afb",
                "sha512_sri": "sha512-oBqxnZow2N/aj6lhYbciqdVMCzlFcg65VHCm3M6ASwmrJtKgk6GtQ487FEtOMguJuPNayostVy2VPf57itzLXA=="
            },
            "filename": "devplatform-spa-tokens-35.3.1.tgz"
        }
    ]
}