{"id":"MAL-2026-17165","summary":"Malicious code in c2-client (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8c5e21fe48a0a1a03a1846e11cb06360950603c3bd8ccba5979c431c84779ba0)\nThe package name is 'c2-client' and package.json declares a postinstall hook that executes 'node setup.js' automatically on npm install. The setup script runs unattended in the installer's environment with the installer's privileges and network access. Combined with the package's self-declared C2-client purpose, install of this package is expected to establish an attacker-controlled command channel or execute attacker-controlled code on the installer's machine at install time.\n","modified":"2026-09-24T15:30:05.536933402Z","published":"2026-09-24T14:49:22Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-09-24T15:18:49.550234121Z","modified_time":"2026-09-24T14:49:22Z","sha256":"8c5e21fe48a0a1a03a1846e11cb06360950603c3bd8ccba5979c431c84779ba0","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-020513"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/c2-client/v/1.0.0"}],"affected":[{"package":{"name":"c2-client","ecosystem":"npm","purl":"pkg:npm/c2-client"},"versions":["1.0.0"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"filename":"c2-client-1.0.0.tgz","hashes":{"sha512_sri":"sha512-lWnOqj3l6G+PSIcJXfOZOOwU1lXhtnemPF7MsRLFY0TYfh6BvszHFuXBxlJhaMwu0OWgOLwVL+Hm46xH2mGoPA==","sha1":"470818098d8ff778ccdd74bca1b07e8471006481"}}],"evidence_files":[{"path":"package.json","sha256":"c9c9ab6cd10576fc108eb9b05e4e67c65a013eacb19b6673c5edc1ffc6910d4f","tlsh":"81e0df239da25c7728f88ba69d2ac645f0624b3f10211d0f74ff801c4fb322255aef19"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/c2-client/MAL-2026-17165.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}