{"id":"MAL-2026-18210","summary":"Malicious code in @ecg-internal/media-util-js-lib (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c716438d9014063b4616588b1522ba2de2f3cf4fd961212840ed6a324cced3da)\nThe package publishes to the public npm registry under the scoped name `@ecg-internal/media-util-js-lib`, which resembles an internal namespace. It ships no real functionality — the main entry exports a Proxy stub returning no-ops for every property, described as a 'Compatibility shim.' Both `package.json` `postinstall` (`node beacon.cjs`) and the main module invoke `fire()` in `beacon.cjs`, which POSTs the installer's hostname (`os.hostname()`), install path (`__dirname`), current working directory (`process.cwd()`), Node version, and package name to the hardcoded bare-IP endpoint `http://185.158.107.175:8787/_ah/dc` over cleartext HTTP. The beacon fires on `npm install` without user action and again whenever the module is required, so any internal build system misconfigured to resolve this public artifact for an `@ecg-internal/*` dependency transmits identifying host and path information to the attacker-controlled endpoint. The 'build-provenance beacon' comment in the source is a cover story inconsistent with the hardcoded bare-IP destination unrelated to any legitimate publisher infrastructure.\n\n## Source: ghsa-malware (32be042c37e2c4ebd8edb68e47d68af04056c09e3c1d5e087f78c934f0d567e7)\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-hcw5-m6mm-qg3q"],"modified":"2026-10-23T02:45:04.255258813Z","published":"2026-10-23T02:00:22Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","versions":["0.0.1"],"id":"IN-MAL-2026-021607","import_time":"2026-10-23T02:25:39.213390799Z","modified_time":"2026-10-23T02:01:06Z","sha256":"18fcf22b1f643593747aee2e705b59e2a0509e8c00d5692c8a2721b685f3d569"},{"source":"amazon-inspector","versions":["99.0.1"],"id":"IN-MAL-2026-021601","import_time":"2026-10-23T02:25:38.84079903Z","modified_time":"2026-10-23T02:00:22Z","sha256":"89468c82dc4aa9cc0a32828ee9cbec7cddb118c3ddd8185dd45d25f7915d016e"},{"sha256":"c716438d9014063b4616588b1522ba2de2f3cf4fd961212840ed6a324cced3da","source":"amazon-inspector","versions":["2.0.0"],"id":"IN-MAL-2026-021605","import_time":"2026-10-23T02:25:39.115138678Z","modified_time":"2026-10-23T02:00:52Z"},{"id":"IN-MAL-2026-021604","import_time":"2026-10-23T02:25:39.055532378Z","modified_time":"2026-10-23T02:00:44Z","sha256":"cb782fe576ae269801411c40a70696cf3cd314a4ca940e258bc69e006e1953bd","source":"amazon-inspector","versions":["3.0.0"]},{"import_time":"2026-10-23T02:25:39.163652495Z","modified_time":"2026-10-23T02:00:58Z","sha256":"d1dc5d4855766199fabef267b532986d5dc693400d916367db1a4e6b75fe2b57","source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-021606"},{"versions":["1.1.0"],"id":"IN-MAL-2026-021602","import_time":"2026-10-23T02:25:38.937651021Z","modified_time":"2026-10-23T02:00:29Z","sha256":"31c3d10db00852004f1d974431a3db46f260a3108029a5301fc755cfbc724ba6","source":"amazon-inspector"},{"id":"IN-MAL-2026-021603","import_time":"2026-10-23T02:25:38.992337187Z","modified_time":"2026-10-23T02:00:37Z","sha256":"4906fee80eaa4e3bebfa976f85116d980ae908c5dff786d0dd2486b308ecd9a0","source":"amazon-inspector","versions":["2.0.1"]},{"sha256":"32be042c37e2c4ebd8edb68e47d68af04056c09e3c1d5e087f78c934f0d567e7","source":"ghsa-malware","id":"GHSA-hcw5-m6mm-qg3q","import_time":"2026-10-23T02:36:25.380412082Z","modified_time":"2026-10-23T02:05:20Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/media-util-js-lib/v/0.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/media-util-js-lib/v/99.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/media-util-js-lib/v/2.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/media-util-js-lib/v/3.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/media-util-js-lib/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/media-util-js-lib/v/1.1.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@ecg-internal/media-util-js-lib/v/2.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hcw5-m6mm-qg3q"}],"affected":[{"package":{"name":"@ecg-internal/media-util-js-lib","ecosystem":"npm","purl":"pkg:npm/%40ecg-internal/media-util-js-lib"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.0.1","99.0.1","2.0.0","3.0.0","1.0.1","1.1.0","2.0.1"],"database_specific":{"indicators":{"package_integrity":[{"filename":"media-util-js-lib-0.0.1.tgz","hashes":{"sha1":"fe03c0b6ad79f7c20c77cb1f9bcd6a0cae03b83a","sha512_sri":"sha512-D2KKZw4ku9ddsxh3HnGaZ5CiS6kzDMh5u3kNMr8lJ0igJbV+SWSqNalR4JG4LCGFrbizBKs+YtEafZqtkPJTWQ=="}}],"evidence_files":[{"sha256":"4dbf671479480d62cf9e111bb251e60db9b017dd8e863fde12bd987fc155f5de","tlsh":"c23161eba8e1a048aaa77098d54f1409b17af4078401ab54fd5c82919f7253c33fa8dc","path":"beacon.cjs"},{"sha256":"a86a4da763bbb34c16f361abe7aab66d5df591b66867ac8160041f932159b08d","tlsh":"2201d0d7225661b10b5221a4978f43c4a3b99d74027941d0d84a9226365108c463b8ee","path":"index.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ecg-internal/media-util-js-lib/MAL-2026-18210.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."},{"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"},{"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"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}