{"id":"MAL-2026-17651","summary":"Malicious code in @praveenvjpm/color-utils-7210 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e0b29d9da4319a314669b87ffd4bc0d736dbf3f4c16803e0363ecb36288c7bb2)\nOn npm install, the package's preinstall hook executes install.js, which collects host identifiers (os.hostname(), process.cwd(), username) and reads flag files from /flag, /flag.txt, /app/flag, /home/node/flag, and /tmp/flag, then PUTs the collected data to the hardcoded bare-IP endpoint http://154.57.164.66:39270/api/modules/* over plain HTTP. install.js is additionally wrapped as a PowerShell here-string (opening with @\" and closing with \"@ | Out-File -Encoding ascii install.js), structured as a polyglot that can rewrite itself on Windows before Node executes the exfiltration payload. The behavior fires automatically on default install and has no relationship to the package's stated color-utility purpose.\n","modified":"2026-10-08T04:00:04.227021690Z","published":"2026-10-08T03:36:19Z","database_specific":{"malicious-packages-origins":[{"sha256":"e0b29d9da4319a314669b87ffd4bc0d736dbf3f4c16803e0363ecb36288c7bb2","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-021103","import_time":"2026-10-08T03:50:28.060603408Z","modified_time":"2026-10-08T03:36:19Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@praveenvjpm/color-utils-7210/v/1.0.0"}],"affected":[{"package":{"name":"@praveenvjpm/color-utils-7210","ecosystem":"npm","purl":"pkg:npm/%40praveenvjpm/color-utils-7210"},"versions":["1.0.0"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"filename":"color-utils-7210-1.0.0.tgz","hashes":{"sha1":"4fd4436d152e5f8b24c5860f02ebbac6c0b978ec","sha512_sri":"sha512-Yf3YLult7DA5pKg1W3yDN7sooR5L6hCfOehmwDbKqBHaqDpVeoLPtyYzRgNzZxkkhFQQBIEEoRo1VO8XL/sBwg=="}}],"evidence_files":[{"tlsh":"9221bad25bf8602d0731a754907e8b2156e7d251300699b0b5dcc2e23fe4d6c4d73dea","path":"install.js","sha256":"37b9ca9721fa27deb4ab121cce46d456ccc9ee348a54e92fb7458a5901cba410"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@praveenvjpm/color-utils-7210/MAL-2026-17651.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}