Skip to main content
Menu
Advisories

Malicious code in c2-client (npm)

GHSA-H7QV-4H6M-4G2XPublished Updated GitHubMalware

Description

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 (source)

Affected versions

References