Malicious code in devplatform-nx-pvm (npm)
The npm package devplatform-nx-pvm version 35.2.9 contains malicious code that automatically downloads and executes a platform-specific binary from attacker-controlled hosts. The package disguises this behavior by fetching binaries over HTTPS, writing them to temporary directories with obfuscated filenames, setting executable permissions, and spawning them detached from the main process. If HTTPS fetches fail, it uses a covert DNS TXT channel to retrieve and execute the payload. The package also uses environment variable checks to evade detection. Simply installing and importing this package triggers execution of attacker-controlled code.
AI Analysis
Technical Summary
The devplatform-nx-pvm npm package (version 35.2.9) includes a malicious module (_compat.js) that, upon require(), fetches a platform-specific binary from hardcoded attacker-controlled HTTPS hosts. It writes the binary to temporary storage with disguised filenames, sets executable permissions, and executes it detached via shell commands. To evade static detection, the C2 hostnames are constructed dynamically from split strings. If HTTPS retrieval fails, the code falls back to a covert DNS TXT channel to download base64-encoded payload chunks, which it concatenates, decodes, and executes. The package checks for telemetry opt-out environment variables to avoid execution in some environments. The main index.js unconditionally requires this malicious module, causing automatic execution of the attacker binary on installation and import.
Potential Impact
This malicious package leads to automatic execution of attacker-controlled binaries on any system that installs and imports devplatform-nx-pvm version 35.2.9. This can result in full compromise of the affected system, unauthorized code execution, potential data theft, persistence, and further malicious activity. The stealth techniques used (dynamic hostname assembly, fallback covert DNS channel, telemetry opt-out checks) increase the difficulty of detection and mitigation.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should immediately remove and avoid installing devplatform-nx-pvm version 35.2.9. Audit existing projects for this package and replace it with trusted alternatives. Monitor for suspicious network activity related to the described C2 hosts. Since no vendor advisory or patch is available, patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates. Consider restricting network access to the described domains and implement supply chain security measures to prevent installation of malicious packages.
Malicious code in devplatform-nx-pvm (npm)
Description
The npm package devplatform-nx-pvm version 35.2.9 contains malicious code that automatically downloads and executes a platform-specific binary from attacker-controlled hosts. The package disguises this behavior by fetching binaries over HTTPS, writing them to temporary directories with obfuscated filenames, setting executable permissions, and spawning them detached from the main process. If HTTPS fetches fail, it uses a covert DNS TXT channel to retrieve and execute the payload. The package also uses environment variable checks to evade detection. Simply installing and importing this package triggers execution of attacker-controlled code.
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-nx-pvm npm package (version 35.2.9) includes a malicious module (_compat.js) that, upon require(), fetches a platform-specific binary from hardcoded attacker-controlled HTTPS hosts. It writes the binary to temporary storage with disguised filenames, sets executable permissions, and executes it detached via shell commands. To evade static detection, the C2 hostnames are constructed dynamically from split strings. If HTTPS retrieval fails, the code falls back to a covert DNS TXT channel to download base64-encoded payload chunks, which it concatenates, decodes, and executes. The package checks for telemetry opt-out environment variables to avoid execution in some environments. The main index.js unconditionally requires this malicious module, causing automatic execution of the attacker binary on installation and import.
Potential Impact
This malicious package leads to automatic execution of attacker-controlled binaries on any system that installs and imports devplatform-nx-pvm version 35.2.9. This can result in full compromise of the affected system, unauthorized code execution, potential data theft, persistence, and further malicious activity. The stealth techniques used (dynamic hostname assembly, fallback covert DNS channel, telemetry opt-out checks) increase the difficulty of detection and mitigation.
Mitigation Recommendations
No official patch or remediation is indicated in the provided data. Users should immediately remove and avoid installing devplatform-nx-pvm version 35.2.9. Audit existing projects for this package and replace it with trusted alternatives. Monitor for suspicious network activity related to the described C2 hosts. Since no vendor advisory or patch is available, patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates. Consider restricting network access to the described domains and implement supply chain security measures to prevent installation of malicious packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12725
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735738bf8831d53914a444
Added to database: 08/05/2026, 15:31:04 UTC
Last enriched: 08/05/2026, 16:31:26 UTC
Last updated: 08/05/2026, 16:31:26 UTC
Views: 2
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.