Malicious code in devplatform-prettier-config (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-12734
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (db5580fbae2ba8f21820a5ba50d8e632cfc12192c3f7cbaeccc8065b4cb5c57d) Package presents itself as a prettier configuration/settings manager. index.js requires _compat.js at module load, which downloads a platform-specific binary from obfuscated Cloudflare Workers subdomains (oob-worker.cf99-9b3.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf101-adf.workers.dev) assembled at runtime from string-split arrays via.join(''). If the HTTPS fetch fails, it falls back to a covert DNS TXT-record channel under sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru (c.<domain> for chunk count, i.<domain> for base64-chunked payload), reassembles and executes the payload. The fetched bytes are written to /var/tmp/.cache_<rand> on Linux or TEMP\dotnet_diag_<rand>.exe on Windows using deceptive filenames, chmod 0755, then spawned detached via spawn("/bin/sh", ["-c",...]) or spawn("cmd",...). No hash or signature verification. A lock-file at /tmp/.analytics_state is used to suppress repeated runs. Destinations are unrelated to any prettier or JavaScript-tooling publisher.
- Source published
- 5 Aug 2026 13:46:43 UTC
- Source modified
- 5 Aug 2026 14:36:47 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.