MAL-2026-12731

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-po-declaration-generator/MAL-2026-12731.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12731
Aliases
  • GHSA-xxx7-r77w-88jc
Published
2026-08-05T13:47:40Z
Modified
2026-08-06T01:20:31.615737075Z
Summary
Malicious code in devplatform-po-declaration-generator (npm)
Details

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

Source: amazon-inspector (3270e0e94deb3e2573594f28e84026653ee60f6c7f0a1fb79286ebba811ca525)

On require, index.js unconditionally loads init.js, which selects a platform-specific binary for linux/darwin/win32, downloads it from Cloudflare Workers hosts whose names are assembled by splitting and joining string fragments (oob-worker.cf103-070.workers.dev, oob-worker.cf102-baf.workers.dev, oob-worker.cf100-416.workers.dev) with a DNS-TXT fallback under sdk/ext/pkg/net subdomains of dl.wel1.ru, writes the bytes to /tmp or %TEMP% under disguised names such as dotnetdiag_*.exe and.cache_*, chmods 0755, and detach-spawns the file via cp.spawn("/bin/sh", ["-c", path + " &"], {detached:true}) or cmd.exe /c start /b. No hash or signature verification is performed and the destinations are not documented publisher infrastructure. childprocess is obtained via require("child" + "process") to evade static matching. lib/telemetry.js ships an 81 KB second loader that reproduces the same fetch, base64-decode, chmod 0755, and /bin/sh -c spawn chain. The package's declared purpose (PO declaration generator) does not require fetching and executing native binaries from anonymous Cloudflare Workers hosts.

Source: ghsa-malware (0a16595ba151c2cc5e13ed55ecd21e30ac2aab5a1723f476d76f0a2547ee0ac3)

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": [
        {
            "import_time": "2026-08-05T14:19:55.770906148Z",
            "modified_time": "2026-08-05T13:47:40Z",
            "sha256": "3270e0e94deb3e2573594f28e84026653ee60f6c7f0a1fb79286ebba811ca525",
            "id": "IN-MAL-2026-015042",
            "versions": [
                "35.2.7"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "ghsa-malware",
            "modified_time": "2026-08-05T17:55:56Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "GHSA-xxx7-r77w-88jc",
            "sha256": "0a16595ba151c2cc5e13ed55ecd21e30ac2aab5a1723f476d76f0a2547ee0ac3",
            "import_time": "2026-08-06T00:58:53.488707833Z"
        }
    ]
}
References
Credits

Affected packages

npm / devplatform-po-declaration-generator

Package

Name
devplatform-po-declaration-generator
View open source insights on deps.dev
Purl
pkg:npm/devplatform-po-declaration-generator

Affected ranges

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

Affected versions

35.*
35.2.7

Database specific

cwes
[
    {
        "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",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-YUiQxPCxb5RkOqjUC2smSe4aUP6y57oIxBOIldlxT1id1qoym9vc+A1GAmFl0EnzWg9IqsX9YMmAjESN52Qgew==",
                "sha1": "9a0e578cb3f9a3703f749a72d2e58192fc4387e5"
            },
            "filename": "devplatform-po-declaration-generator-35.2.7.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "_init.js",
            "sha256": "673826850940c67878d96b31088d96131c859ce2d26409a8ea2f37fed4cbc75b",
            "tlsh": "34b1b79e167a70194b7097e487275816f657f6b323c0c284fb5ca5981fb61288272efc"
        },
        {
            "path": "lib/telemetry.js",
            "sha256": "ec8b221b97cf7282e83f081ca0ff21c5c9167b3e13f827a002d2c3f170656872",
            "tlsh": "80835056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-po-declaration-generator/MAL-2026-12731.json"