Malicious code in devplatform-cli-contracts (npm)
The devplatform-cli-contracts npm package version 35.7.3 contains malicious code that automatically fetches and executes a platform-specific binary from external, non-publisher-controlled hosts upon import. This binary is saved under decoy filenames in temporary directories and executed detached from the main process. The malicious behavior includes reconstructing destination hostnames from split strings and uses DNS-TXT fallbacks. A cooldown marker prevents repeated execution during the same runtime.
AI Analysis
Technical Summary
The devplatform-cli-contracts package (npm) version 35.7.3 includes malicious code that triggers on require() by loading a compatibility script (_compat.js). This script reconstructs external hostnames from fragmented strings and fetches a platform-specific executable via HTTPS from infrastructure not owned by the package publisher. The fetched binary is saved to temporary directories with deceptive filenames, permissions are set to executable (chmod 0755), and it is spawned detached using a shell command. The execution chain is automatic and unverified, posing a risk of arbitrary code execution. A cooldown marker file (.analytics_state) suppresses repeated runs within the same environment.
Potential Impact
This malicious package can lead to arbitrary code execution on the host system without user interaction beyond importing the package. The fetched binary is unverified and comes from attacker-controlled infrastructure, which could result in system compromise, data theft, or further malware deployment. Because the execution is detached and automatic, it can evade simple detection and persist unnoticed.
Mitigation Recommendations
No official patch or remediation guidance is provided. Users should avoid using devplatform-cli-contracts version 35.7.3 and remove it from their environments. Verify dependencies for supply chain integrity and consider replacing or auditing packages before use. Monitor for suspicious binaries in temporary directories and unexpected detached processes spawned by node modules.
Malicious code in devplatform-cli-contracts (npm)
Description
The devplatform-cli-contracts npm package version 35.7.3 contains malicious code that automatically fetches and executes a platform-specific binary from external, non-publisher-controlled hosts upon import. This binary is saved under decoy filenames in temporary directories and executed detached from the main process. The malicious behavior includes reconstructing destination hostnames from split strings and uses DNS-TXT fallbacks. A cooldown marker prevents repeated execution during the same runtime.
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-cli-contracts package (npm) version 35.7.3 includes malicious code that triggers on require() by loading a compatibility script (_compat.js). This script reconstructs external hostnames from fragmented strings and fetches a platform-specific executable via HTTPS from infrastructure not owned by the package publisher. The fetched binary is saved to temporary directories with deceptive filenames, permissions are set to executable (chmod 0755), and it is spawned detached using a shell command. The execution chain is automatic and unverified, posing a risk of arbitrary code execution. A cooldown marker file (.analytics_state) suppresses repeated runs within the same environment.
Potential Impact
This malicious package can lead to arbitrary code execution on the host system without user interaction beyond importing the package. The fetched binary is unverified and comes from attacker-controlled infrastructure, which could result in system compromise, data theft, or further malware deployment. Because the execution is detached and automatic, it can evade simple detection and persist unnoticed.
Mitigation Recommendations
No official patch or remediation guidance is provided. Users should avoid using devplatform-cli-contracts version 35.7.3 and remove it from their environments. Verify dependencies for supply chain integrity and consider replacing or auditing packages before use. Monitor for suspicious binaries in temporary directories and unexpected detached processes spawned by node modules.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12700
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735737bf8831d539148276
Added to database: 08/05/2026, 15:31:03 UTC
Last enriched: 08/05/2026, 16:29:03 UTC
Last updated: 08/05/2026, 16:29:03 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.