{"id":"MAL-2026-13274","summary":"Malicious code in devplatform-vite-plugin-preserve-css-modules (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0781a29416d218a9767f37894e3ad9a851110f50693a4bcb1ab6bd168e1f6feb)\nOn require() of the package, index.js loads _loader.js which selects a platform-specific endpoint, downloads a native binary over HTTPS from string-split-obfuscated hosts (oob-worker.cf100-416.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf99-9b3.workers.dev) with a DNS TXT covert-channel fallback to sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru, writes it to /var/tmp or %TEMP% under a disguised name (.cache_\u003crnd\u003e on Unix, dotnet_diag_\u003crnd\u003e.exe on Windows), chmods 0755, and spawns it detached via /bin/sh -c or cmd.exe /c start /b. Execution is gated by a /tmp/.analytics_state TTL marker. Destination hostnames are assembled at runtime from split-string fragments to evade source-level review. The package name mimics an internal-sounding vite plugin but the shipped code fetches and executes an arbitrary native binary on the installer's machine at first require().\n","modified":"2026-08-05T16:50:28.638950901Z","published":"2026-08-05T15:29:25Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-08-05T16:13:35.733919033Z","modified_time":"2026-08-05T15:29:25Z","sha256":"0781a29416d218a9767f37894e3ad9a851110f50693a4bcb1ab6bd168e1f6feb","source":"amazon-inspector","versions":["35.6.8"],"id":"IN-MAL-2026-015718"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/devplatform-vite-plugin-preserve-css-modules/v/35.6.8"}],"affected":[{"package":{"name":"devplatform-vite-plugin-preserve-css-modules","ecosystem":"npm","purl":"pkg:npm/devplatform-vite-plugin-preserve-css-modules"},"versions":["35.6.8"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/devplatform-vite-plugin-preserve-css-modules/MAL-2026-13274.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"devplatform-vite-plugin-preserve-css-modules-35.6.8.tgz","hashes":{"sha1":"e4d76e278bc9caf2ee1c58d83685bd65d5c99bff","sha512_sri":"sha512-10BQQxArzH0RdfvDhnImuE+h92JxVEXU09d4lfdJWOYtfop+hoPX6ojJ1fRhcZ3SJ9i2sQbZvjWQ8CsYJXpD9g=="}}],"evidence_files":[{"tlsh":"c8a1a65a05ab70188bb0d7e4c717541af65bf66333808688fb9c65941f7611883b2efc","path":"_loader.js","sha256":"c83136f8c533183543298c974aa6457eab6deb2e22e21a8a44ed2fc317b58875"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}