npm · Malicious package advisory
Malwarec2-client
GHSA-h7qv-4h6m-4g2x
Malicious code in c2-client (npm)
Details
**Severity:** Critical **Affected versions:** `= 1.0.0` ## Source: amazon-inspector (8c5e21fe48a0a1a03a1846e11cb06360950603c3bd8ccba5979c431c84779ba0) The 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. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/fbd69de639befa276507689652dc04f12c5ef5cb/osv/malicious/npm/c2-client/MAL-2026-17165.json)) **References:** - https://github.com/ossf/malicious-packages/blob/fbd69de639befa276507689652dc04f12c5ef5cb/osv/malicious/npm/c2-client/MAL-2026-17165.json - https://www.npmjs.com/package/c2-client/v/1.0.0 - https://github.com/advisories/GHSA-h7qv-4h6m-4g2x
Compromised versions (1)
- = 1.0.0
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.