Skip to content
Heist/ feed
Unrated

Malicious code in c2-client (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## 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.

Announced Source revision 1
Original source ↗

MAL-2026-17165

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-17165

c2-client

Source reference: /affected/0/package/name

Affected versions
1.0.0

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "package": {
      "name": "c2-client",
      "purl": "pkg:npm/c2-client",
      "ecosystem": "npm"
    },
    "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."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/c2-client/MAL-2026-17165.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "package.json",
            "tlsh": "81e0df239da25c7728f88ba69d2ac645f0624b3f10211d0f74ff801c4fb322255aef19",
            "sha256": "c9c9ab6cd10576fc108eb9b05e4e67c65a013eacb19b6673c5edc1ffc6910d4f"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "470818098d8ff778ccdd74bca1b07e8471006481",
              "sha512_sri": "sha512-lWnOqj3l6G+PSIcJXfOZOOwU1lXhtnemPF7MsRLFY0TYfh6BvszHFuXBxlJhaMwu0OWgOLwVL+Hm46xH2mGoPA=="
            },
            "filename": "c2-client-1.0.0.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#13832 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement