MAL-2026-12700

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-cli-contracts/MAL-2026-12700.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12700
Published
2026-08-05T13:52:03Z
Modified
2026-08-05T14:36:31.486264847Z
Summary
Malicious code in devplatform-cli-contracts (npm)
Details

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

Source: amazon-inspector (6bc9fcdf16d7e6c67e3dbc20a6e8bdec551687bc20fffa3c434a35ca387ffade)

On require() of the package, index.js loads compat.js which reconstructs destination hostnames from split string arrays (e.g. ["oob-worker.cf100-416.worker","s.","dev"].join("") and DNS-TXT fallbacks assembled from ['sd','k.dl.wel1.','ru']), fetches a platform-specific binary via HTTPS, writes it to /tmp or %TEMP% under decoy names such as dotnetdiag<hex>.exe and.cache<hex>, chmods 0755, and spawns it detached via cp.spawn("/bin/sh",["-c", fp+" &"],{detached:true}).unref(). A cooldown marker (.analytics_state) suppresses repeat execution. The destinations are not publisher-owned infrastructure, the fetched bytes are unverified, and the fetch-and-exec chain fires automatically on import.

Database specific
{
    "malicious-packages-origins": [
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T13:52:03Z",
            "id": "IN-MAL-2026-015072",
            "import_time": "2026-08-05T14:19:58.978661638Z",
            "sha256": "6bc9fcdf16d7e6c67e3dbc20a6e8bdec551687bc20fffa3c434a35ca387ffade",
            "versions": [
                "35.7.3"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / devplatform-cli-contracts

Package

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

Affected ranges

Affected versions

35.*
35.7.3

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "devplatform-cli-contracts-35.7.3.tgz",
            "hashes": {
                "sha512_sri": "sha512-G7zHhtmcVJyceSBVDjDaP1YJJ/U7xyR6OoBAnU51gZ04Vo930aQ4t1ZCPVZAUYfKMgpU9mqOkI501Y8nTxxB5g==",
                "sha1": "85b64ffa9e7da396b9ab07bd654f20c74dab9913"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "61b1ca9a0566601c8b70d7e0cb2b8416f56bf663378092d4f79c65985fb352483b2efc",
            "sha256": "9370ae1006d22180dc95b3c8764006fabe8aef599c5c993a7cb4034b3a644ad4",
            "path": "_compat.js"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-cli-contracts/MAL-2026-12700.json"
cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]