{"id":"MAL-2026-11512","summary":"Malicious code in internallib_v524 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (eba59f6d895fdeae2b83c62331fbb87118aa51202fd30ddc351fa43276408a44)\nThe package's main module exports a function `command()` that invokes `/bin/bash -c` to fetch a script from reverse-shell.sh and pipe it into `sh`, connecting the installer's host back to 10.0.64.141:4433. Any consumer that requires the package and calls the exported API opens an interactive reverse shell to that hardcoded endpoint, giving the remote operator full RCE and persistent shell access on the installer's machine. The behavior is unrelated to any legitimate library function.\n\n## Source: ghsa-malware (986b1a9482ee175a6f6c9e70cf898a24208376a523e93277fdb72273fb9dd521)\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-2wgh-22xm-wp5f"],"modified":"2026-08-04T23:05:13.060369081Z","published":"2026-08-03T20:52:13Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-03T20:52:13Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"986b1a9482ee175a6f6c9e70cf898a24208376a523e93277fdb72273fb9dd521","source":"ghsa-malware","id":"GHSA-2wgh-22xm-wp5f","import_time":"2026-08-04T00:15:24.363186376Z"},{"import_time":"2026-08-04T21:33:12.627454801Z","modified_time":"2026-08-04T21:16:18Z","sha256":"eba59f6d895fdeae2b83c62331fbb87118aa51202fd30ddc351fa43276408a44","source":"amazon-inspector","versions":["1.0.2"],"id":"IN-MAL-2026-010990"},{"modified_time":"2026-08-04T21:35:50Z","sha256":"5a6dd7a3f0eee1f5a3737d103fe67dfc76906d4e004e18463135022715dcd6a2","source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-011123","import_time":"2026-08-04T22:30:00.437800297Z"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2wgh-22xm-wp5f"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/internallib_v524/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/internallib_v524/v/1.0.1"}],"affected":[{"package":{"name":"internallib_v524","ecosystem":"npm","purl":"pkg:npm/internallib_v524"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.2","1.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/internallib_v524/MAL-2026-11512.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."},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"tlsh":"8ac08cbba8966a5ebb2d32e4d416f455bc671d349e7c0820f6a08259004386c622a1ee","path":"index.js","sha256":"cf52c0cd4efd2f6f3f10ef401e45868f304fede8f9b14bd933679cc8acf87d61"}]}}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}