{"id":"MAL-2026-5685","summary":"Malicious code in @malwguy/ecto-corsair-whisper-3d2a7c (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2b95a5cb65b01f03aebc1ab713877cb963b5de2cb4ddc38c03cdb01a7e469144)\nOn npm install, postinstall.js walks /, /app, /home, /opt, /root for files whose names match /flag|secret|env/i, reads their contents, scrapes process.env (including HOME, INIT_CWD, npm_config_registry, all env keys, and hostname), and PUTs the collected data as a YAML manifest over plaintext HTTP to the hardcoded endpoint http://154.57.164.80:30543/api/modules/ECT-987654 (and ECT-472839). The script also includes explicit anti-analysis evasion: it checks hostname/cwd/HOME/INIT_CWD against /hscan|/home/scan|scan-|sandbox/i and silently exits if a scanner-like environment is detected, and additionally gates exfiltration on the cwd containing '/app/'. Installing this package causes immediate, automatic exfiltration of installer-side credentials and secrets to attacker-controlled infrastructure.\n\n## Source: ghsa-malware (a090f653d83ea2ab89269aac4dbbb4f750f5869e4a92b37a98223a0e9b223913)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","aliases":["GHSA-636m-vpq6-g454"],"modified":"2026-06-12T20:01:52.310834011Z","published":"2026-06-12T14:32:51Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-06-12T14:33:02Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"source":"ghsa-malware","sha256":"a090f653d83ea2ab89269aac4dbbb4f750f5869e4a92b37a98223a0e9b223913","import_time":"2026-06-12T15:23:25.124891141Z","id":"GHSA-636m-vpq6-g454"},{"sha256":"2b95a5cb65b01f03aebc1ab713877cb963b5de2cb4ddc38c03cdb01a7e469144","import_time":"2026-06-12T19:44:17.231692319Z","id":"IN-MAL-2026-006182","modified_time":"2026-06-12T19:10:45Z","versions":["1.0.0"],"source":"amazon-inspector"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-636m-vpq6-g454"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@malwguy/ecto-corsair-whisper-3d2a7c/v/1.0.0"}],"affected":[{"package":{"name":"@malwguy/ecto-corsair-whisper-3d2a7c","ecosystem":"npm","purl":"pkg:npm/%40malwguy%2Fecto-corsair-whisper-3d2a7c"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@malwguy/ecto-corsair-whisper-3d2a7c/MAL-2026-5685.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"sha256":"211b8f7d94f71c872700e1c9d2a818ad2e52af90f7ba27bebc457a2e98ee3746","tlsh":"2991946e56f2356b02e7b9ac611b8513bb6a84433d0ddea0bb5c02a93f4e07c42f55cd","path":"postinstall.js"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}