{"id":"MAL-2026-18211","summary":"Malicious code in @ecg-internal/reviews-dialog-ui (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (31d077157e19fb33158004d020ab55ba68751851a9dbab6a010064a83b8436c4)\nThe npm package @ecg-internal/reviews-dialog-ui@99.0.1 is a dependency-confusion payload targeting an internal `@ecg-internal/*` scope. package.json declares a postinstall hook (`node beacon.cjs`) that runs on every `npm install`, and beacon.cjs POSTs the installer's hostname (os.hostname()), install path (__dirname), current working directory (process.cwd()), node version, and package name over plain HTTP to the hardcoded bare-IP endpoint http://185.158.107.175:8787/_ah/dc. The published `main` is a no-op Proxy object (`module.exports = new Proxy({}, { get:... })`) so consuming builds do not fail at require time, and the version 99.0.1 is set abnormally high to win semver resolution against any legitimate internal package of the same name. The scoped internal-looking name, inflated version, inert Proxy shim, and install-time callback together constitute the canonical dependency-confusion attack shape, delivering reconnaissance of the installer's build/CI environment to an attacker-controlled IP.\n\n## Source: ghsa-malware (931cd681ef40eca7cb4c0f8ca9b8757d621f3a69cc5ff7f06c245cbb8a4fbdf3)\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-r47j-grcr-p9h9"],"modified":"2026-10-23T02:45:04.250040717Z","published":"2026-10-23T01:58:04Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-021584","import_time":"2026-10-23T02:25:37.713363564Z","modified_time":"2026-10-23T01:58:19Z","sha256":"31d077157e19fb33158004d020ab55ba68751851a9dbab6a010064a83b8436c4","source":"amazon-inspector","versions":["99.0.1"]},{"source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-021585","import_time":"2026-10-23T02:25:37.773293275Z","modified_time":"2026-10-23T01:58:26Z","sha256":"971f8d7c983ed87130fa2043137381f6c235c176e94af181a8c12afdb0fd6f74"},{"modified_time":"2026-10-23T01:58:04Z","sha256":"df31aa21f1b025f8e1e3b01066f80786683a7381ed32fa890725f452884d29c8","source":"amazon-inspector","versions":["3.0.0"],"id":"IN-MAL-2026-021582","import_time":"2026-10-23T02:25:37.610615958Z"},{"modified_time":"2026-10-23T01:58:39Z","sha256":"e9552c085ec1995eeea8a2636c59cbf607657e3f3943fdb5ac08024c32b7e94e","source":"amazon-inspector","versions":["0.0.1"],"id":"IN-MAL-2026-021587","import_time":"2026-10-23T02:25:37.915534412Z"},{"sha256":"5061154b16539757fed5e624ab549ca182fa3d4edd90b7b1e9026da5131de5bc","source":"amazon-inspector","versions":["2.0.1"],"id":"IN-MAL-2026-021583","import_time":"2026-10-23T02:25:37.661842422Z","modified_time":"2026-10-23T01:58:12Z"},{"import_time":"2026-10-23T02:25:37.976493331Z","modified_time":"2026-10-23T01:58:47Z","sha256":"7b355a4dd9d968fe4fece2f84a7121326e667c9e54c5dd03902105bd3a6bd86f","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-021588"},{"modified_time":"2026-10-23T01:58:33Z","sha256":"834e609f11828e458a1b0ea0a6d2261064b44e060df941cc7d0b3506639b39cf","source":"amazon-inspector","versions":["2.0.0"],"id":"IN-MAL-2026-021586","import_time":"2026-10-23T02:25:37.833387111Z"},{"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"sha256":"931cd681ef40eca7cb4c0f8ca9b8757d621f3a69cc5ff7f06c245cbb8a4fbdf3","source":"ghsa-malware","id":"GHSA-r47j-grcr-p9h9","import_time":"2026-10-23T02:36:25.387305246Z","modified_time":"2026-10-23T02:05:20Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/reviews-dialog-ui/v/99.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/reviews-dialog-ui/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/reviews-dialog-ui/v/3.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/reviews-dialog-ui/v/0.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/reviews-dialog-ui/v/2.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/reviews-dialog-ui/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/reviews-dialog-ui/v/2.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-r47j-grcr-p9h9"}],"affected":[{"package":{"name":"@ecg-internal/reviews-dialog-ui","ecosystem":"npm","purl":"pkg:npm/%40ecg-internal/reviews-dialog-ui"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["99.0.1","1.0.1","3.0.0","0.0.1","2.0.1","1.0.0","2.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ecg-internal/reviews-dialog-ui/MAL-2026-18211.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"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."},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"reviews-dialog-ui-99.0.1.tgz","hashes":{"sha1":"2e79ee8b0972516020484358b2f741c6125b3b32","sha512_sri":"sha512-94rfXNOiTXzhmMnbCzN46vm0dfQTGG+nBnxgzhYUp43WyAkqDDZdEyYhzfzvknInHR5ZLj2wWRcEvASEPV5xug=="}}],"evidence_files":[{"sha256":"37093e867e15edf9c10c973ca0e7677e88ed8a7965b0c98b717e71bead242317","tlsh":"dc3140eba8e1a0089aab7098c94b4409b17af0078501ab54fd5c82955f7253c33ba8dc","path":"beacon.cjs"},{"tlsh":"fad02e308a214e2364ca6ee20d266a0a51a20d6b0254bc08379b001c07feb3b24ff32e","path":"package.json","sha256":"8c27d7ef2e0ab53d191b1c74b30c05fd45b977fe461afcb8326d310998793e85"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}