MAL-2026-4481Malicious code in arc-diag-util (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | arc-diag-util | * |
| npm | arc-diag-util | 1.0.1 |
{"schema_version":"1.7.4","id":"MAL-2026-4481","published":"2026-05-20T07:23:00Z","modified":"2026-08-18T00:21:54.764791522Z","aliases":["GHSA-wx2g-gmxq-vvqv"],"summary":"Malicious code in arc-diag-util (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (95f08d97107d726a6ae90afbf8e354b84a7e13d4a236bc8766180a362cc8344c)\nOn `npm install`, the package's postinstall hook runs `id` to capture the installer's uid/gid/group identity and opens a raw TCP socket to host.docker.internal:9999, writing the command output to that listener. The package's declared main (index.js) is a two-line stub exporting `{}` — there is no library functionality, the postinstall beacon is the package's sole purpose. host.docker.internal resolves to the Docker host from inside a container, so the pattern is specifically designed to escape sandboxed CI/build containers and report installer identity to a listener on the build host. The hollow library body combined with a generic 'diagnostic utility' name is consistent with a dependency-confusion attempt against an internal package name.\n\n## Source: ghsa-malware (25fa4bbc72e1cb4237b32086925841850ed0a8350bc14d96c60e6b65e7dc9ad0)\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","affected":[{"package":{"name":"arc-diag-util","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1"],"database_specific":{"cwes":[{"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":{"evidence_files":[{"path":"package.json","sha256":"fae794456fd51cc7b1ae4ff86f7107ababd8a283adf2a035901e7fd58fc551f8","tlsh":"78f0dc608b20f63f1ac143511834c861252348022204b9e4670b426dc2de3f70dbb37f"},{"path":"index.js","sha256":"1ee1f0e03fd18f43210cdd6cec24bb9d6f08fdd4fd92d09d966d4afde18208b4","tlsh":"a9900401d33071454757c317f54444331cd541d1111450d0d14447fd4407fd040d4541"}],"package_integrity":[{"filename":"arc-diag-util-1.0.1.tgz","hashes":{"sha1":"291c17e49d8f8d676f6d2005983665a6a400f766","sha512_sri":"sha512-BPBm+oYI3u3wCz6N5Hj7wluY9nUP8VljEHqT+UOjb4MgvcQMHdddpCWU9yFci4AkFT6/ho+nI5jtgZtJYgdG4A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/arc-diag-util/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wx2g-gmxq-vvqv"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-003484","import_time":"2026-05-26T05:50:43.745478107Z","modified_time":"2026-05-20T07:23:00Z","sha256":"95f08d97107d726a6ae90afbf8e354b84a7e13d4a236bc8766180a362cc8344c","source":"amazon-inspector","versions":["1.0.1"]},{"id":"GHSA-wx2g-gmxq-vvqv","import_time":"2026-08-18T00:20:04.643330605Z","modified_time":"2026-08-17T13:45:44Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"25fa4bbc72e1cb4237b32086925841850ed0a8350bc14d96c60e6b65e7dc9ad0","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0