MAL-2026-12731Malicious code in devplatform-po-declaration-generator (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | devplatform-po-declaration-generator | * |
| npm | devplatform-po-declaration-generator | 35.2.7 |
{"schema_version":"1.7.4","id":"MAL-2026-12731","published":"2026-08-05T13:47:40Z","modified":"2026-08-06T01:00:38.505397353Z","aliases":["GHSA-xxx7-r77w-88jc"],"summary":"Malicious code in devplatform-po-declaration-generator (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3270e0e94deb3e2573594f28e84026653ee60f6c7f0a1fb79286ebba811ca525)\nOn 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 dotnet_diag_*.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. child_process 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.\n\n## Source: ghsa-malware (0a16595ba151c2cc5e13ed55ecd21e30ac2aab5a1723f476d76f0a2547ee0ac3)\nAny 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.\n","affected":[{"package":{"name":"devplatform-po-declaration-generator","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["35.2.7"],"database_specific":{"cwes":[{"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.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"_init.js","sha256":"673826850940c67878d96b31088d96131c859ce2d26409a8ea2f37fed4cbc75b","tlsh":"34b1b79e167a70194b7097e487275816f657f6b323c0c284fb5ca5981fb61288272efc"},{"path":"lib/telemetry.js","sha256":"ec8b221b97cf7282e83f081ca0ff21c5c9167b3e13f827a002d2c3f170656872","tlsh":"80835056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc"}],"package_integrity":[{"filename":"devplatform-po-declaration-generator-35.2.7.tgz","hashes":{"sha1":"9a0e578cb3f9a3703f749a72d2e58192fc4387e5","sha512_sri":"sha512-YUiQxPCxb5RkOqjUC2smSe4aUP6y57oIxBOIldlxT1id1qoym9vc+A1GAmFl0EnzWg9IqsX9YMmAjESN52Qgew=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-po-declaration-generator/v/35.2.7"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xxx7-r77w-88jc"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015042","import_time":"2026-08-05T14:19:55.770906148Z","modified_time":"2026-08-05T13:47:40Z","sha256":"3270e0e94deb3e2573594f28e84026653ee60f6c7f0a1fb79286ebba811ca525","source":"amazon-inspector","versions":["35.2.7"]},{"id":"GHSA-xxx7-r77w-88jc","import_time":"2026-08-06T00:58:53.488707833Z","modified_time":"2026-08-05T17:55:56Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"0a16595ba151c2cc5e13ed55ecd21e30ac2aab5a1723f476d76f0a2547ee0ac3","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0