Malicious code in devplatform-po-declaration-generator (npm)
--- _-= 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 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. ## 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.
AI Analysis
Technical Summary
The devplatform-po-declaration-generator npm package version 35.2.7 includes malicious code that unconditionally loads a module which fetches platform-specific native binaries from suspicious Cloudflare Workers URLs. The binaries are saved under temporary file paths with misleading names, permissions are set to executable, and they are executed detached from the main process. The code uses obfuscation techniques such as dynamic string assembly and indirect require calls to evade detection. No hash or signature verification is performed on the downloaded binaries, and the package's legitimate purpose does not require such behavior, indicating a malicious supply chain compromise.
Potential Impact
This malicious behavior allows execution of arbitrary native code on the host system when the package is required, potentially leading to full system compromise, data theft, or persistence. The lack of integrity checks and use of anonymous hosting for binaries increases the risk of undetected malicious payload delivery. Since the package executes code outside the normal npm package scope, it bypasses typical JavaScript sandboxing protections.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately stop using devplatform-po-declaration-generator version 35.2.7 and remove it from their environments. Verify dependencies and replace with trusted alternatives. Monitor for any unusual activity related to this package. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Malicious code in devplatform-po-declaration-generator (npm)
Description
--- _-= 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 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. ## 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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The devplatform-po-declaration-generator npm package version 35.2.7 includes malicious code that unconditionally loads a module which fetches platform-specific native binaries from suspicious Cloudflare Workers URLs. The binaries are saved under temporary file paths with misleading names, permissions are set to executable, and they are executed detached from the main process. The code uses obfuscation techniques such as dynamic string assembly and indirect require calls to evade detection. No hash or signature verification is performed on the downloaded binaries, and the package's legitimate purpose does not require such behavior, indicating a malicious supply chain compromise.
Potential Impact
This malicious behavior allows execution of arbitrary native code on the host system when the package is required, potentially leading to full system compromise, data theft, or persistence. The lack of integrity checks and use of anonymous hosting for binaries increases the risk of undetected malicious payload delivery. Since the package executes code outside the normal npm package scope, it bypasses typical JavaScript sandboxing protections.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should immediately stop using devplatform-po-declaration-generator version 35.2.7 and remove it from their environments. Verify dependencies and replace with trusted alternatives. Monitor for any unusual activity related to this package. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12731
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735738bf8831d53914c478
Added to database: 08/05/2026, 15:31:04 UTC
Last enriched: 08/05/2026, 16:35:19 UTC
Last updated: 09/07/2026, 22:12:11 UTC
Views: 20
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.