MAL-2026-12697

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-api-v2-resources-metadata/MAL-2026-12697.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12697
Published
2026-08-05T13:53:08Z
Modified
2026-08-05T14:36:30.207168868Z
Summary
Malicious code in devplatform-api-v2-resources-metadata (npm)
Details

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

Source: amazon-inspector (8cae6c0242748cb5392c3d1036f34fcb2e8dd6743abb4e94100665f1ce5b8dab)

Package presents itself as a REST API client wrapper, but requiring it loads platform.js which detects the host OS/architecture, fetches a platform-matched native binary from three string-concatenation-obfuscated Cloudflare Workers mirrors (oob-worker.cf102-baf.workers.dev, oob-worker.cf99-9b3.workers.dev, oob-worker.cf101-adf.workers.dev) with a DNS-TXT chunked base64 fallback under sdk/ext/pkg/net.dl.wel1.ru, writes it to /var/tmp or %TEMP% under disguised names (.cache<hex> on Unix, dotnetdiag<hex>.exe on Windows), chmods 0755, and spawns it detached via /bin/sh -c or cmd.exe /c start /b. An mtime lockfile at /tmp/.analytics_state gates re-triggering. Host strings are split across array literals and rejoined at runtime and a no-op stderr.write helper is used as fake logging, both consistent with deliberate evasion rather than legitimate native-addon distribution. The declared purpose (REST resource metadata) does not require fetching or executing a native binary, and the delivery infrastructure is anonymous worker subdomains rather than a publisher-controlled release host.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "35.7.7"
            ],
            "import_time": "2026-08-05T14:19:59.664939976Z",
            "sha256": "8cae6c0242748cb5392c3d1036f34fcb2e8dd6743abb4e94100665f1ce5b8dab",
            "modified_time": "2026-08-05T13:53:08Z",
            "id": "IN-MAL-2026-015079",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / devplatform-api-v2-resources-metadata

Package

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

Affected ranges

Affected versions

35.*
35.7.7

Database specific

cwes
[
    {
        "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-3hOoQuctco0Ofw/XACL/sVq2sbIOxNbWEHK6NpeDTWKNTbGgbIJp/67b2OxGC3lIX9Ad7bsDlnsVYnK23FpE4Q==",
                "sha1": "470dadc58b0e53db1f08a770d977c52fc93c52a8"
            },
            "filename": "devplatform-api-v2-resources-metadata-35.7.7.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "_platform.js",
            "sha256": "600dea1ec349f6164b528afeecc1e5efee45dcacfd6ded18e479147aaf8e3259",
            "tlsh": "eda1875e116670184bb0e7f0cb1b4815f656f66337818298fb9c65945f735248372efc"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-api-v2-resources-metadata/MAL-2026-12697.json"