Malicious code in devplatform-prettier-config (npm)
The npm package devplatform-prettier-config version 35.1.3 contains malicious code that downloads and executes a platform-specific binary from obfuscated Cloudflare Workers subdomains or, if that fails, via covert DNS TXT-record channels. The payload is saved to deceptive filenames on the local system and executed without hash or signature verification. This behavior is unrelated to the legitimate prettier or JavaScript tooling ecosystem and is designed to evade detection by suppressing repeated runs via a lock file.
AI Analysis
Technical Summary
The devplatform-prettier-config npm package (version 35.1.3) masquerades as a prettier configuration manager but includes malicious code in its index.js. Upon module load, it requires a compatibility script that downloads a platform-specific binary from obfuscated Cloudflare Workers subdomains assembled at runtime. If the HTTPS fetch fails, it falls back to a covert channel using DNS TXT records from suspicious domains to reassemble and execute the payload. The binary is saved to /var/tmp/.cache_<rand> on Linux or TEMP\dotnet_diag_<rand>.exe on Windows with deceptive filenames and permissions set to executable. The payload is then spawned detached via shell or command prompt without any integrity verification. A lock file suppresses repeated execution. The destinations and methods are unrelated to any legitimate prettier or JavaScript tooling publisher, indicating malicious intent.
Potential Impact
This malicious package can execute arbitrary code on the host system by downloading and running an unverified binary, potentially leading to full system compromise or unauthorized actions. The use of obfuscated domains and fallback covert DNS channels indicates attempts to evade detection and maintain persistence. The lack of signature verification increases the risk of executing tampered or malicious payloads.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should immediately remove devplatform-prettier-config version 35.1.3 from their environments and avoid installing or using this package. Employing trusted package sources and verifying package integrity before installation is recommended. Monitor for any unexpected binaries or processes spawned from npm packages. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Malicious code in devplatform-prettier-config (npm)
Description
The npm package devplatform-prettier-config version 35.1.3 contains malicious code that downloads and executes a platform-specific binary from obfuscated Cloudflare Workers subdomains or, if that fails, via covert DNS TXT-record channels. The payload is saved to deceptive filenames on the local system and executed without hash or signature verification. This behavior is unrelated to the legitimate prettier or JavaScript tooling ecosystem and is designed to evade detection by suppressing repeated runs via a lock file.
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-prettier-config npm package (version 35.1.3) masquerades as a prettier configuration manager but includes malicious code in its index.js. Upon module load, it requires a compatibility script that downloads a platform-specific binary from obfuscated Cloudflare Workers subdomains assembled at runtime. If the HTTPS fetch fails, it falls back to a covert channel using DNS TXT records from suspicious domains to reassemble and execute the payload. The binary is saved to /var/tmp/.cache_<rand> on Linux or TEMP\dotnet_diag_<rand>.exe on Windows with deceptive filenames and permissions set to executable. The payload is then spawned detached via shell or command prompt without any integrity verification. A lock file suppresses repeated execution. The destinations and methods are unrelated to any legitimate prettier or JavaScript tooling publisher, indicating malicious intent.
Potential Impact
This malicious package can execute arbitrary code on the host system by downloading and running an unverified binary, potentially leading to full system compromise or unauthorized actions. The use of obfuscated domains and fallback covert DNS channels indicates attempts to evade detection and maintain persistence. The lack of signature verification increases the risk of executing tampered or malicious payloads.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users should immediately remove devplatform-prettier-config version 35.1.3 from their environments and avoid installing or using this package. Employing trusted package sources and verifying package integrity before installation is recommended. Monitor for any unexpected binaries or processes spawned from npm packages. 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-12734
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735739bf8831d53914d787
Added to database: 08/05/2026, 15:31:05 UTC
Last enriched: 08/05/2026, 16:37:01 UTC
Last updated: 08/05/2026, 16:37:01 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.