Skip to content

VMware Carbon Black Cloud Executor

Category: Endpoint Security Script: carbon_black.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.broadcom.com/products/carbon-black

Description

Imports alerts and the managed-endpoint inventory from Carbon Black Cloud (EDR) into Faraday. Each managed device becomes a host, and each alert on it becomes a vulnerability.

Prerequisites

  • A Carbon Black Cloud organization with API access
  • A Connector API key (ID and secret) with read access to alerts and devices, created in the console under Settings > API Access
  • requests available in the agent's Python environment

Configuration

Environment Variables (Setup)

Variable Required Description
CB_HOST Yes Regional Carbon Black Cloud API endpoint for your organization (e.g., https://defense-prod05.conferdeploy.net)
CB_API_ID Yes Carbon Black Cloud API ID, from Settings > API Access
CB_API_SECRET Yes API secret paired with the API ID

These variables are also accepted as execution arguments, so a single run can override them.

Execution Arguments

Parameter Type Mandatory Description
CB_ORG_KEY string Yes Carbon Black Cloud organization key, shown in the console under Settings > API Access
CB_MIN_SEVERITY string No Minimum severity to import: info, low, medium, high or critical (default: info)
CB_TIME_RANGE string No Only import alerts from this rolling window: -1h, -1d, -7d, -30d, etc. Friendly aliases like 24h, 7d, week and month also work. Default: all alerts.

YAML Configuration Example

executors:
  carbon_black:
    repo_executor: carbon_black.py
    max_size: 65536
    varenvs:
      CB_HOST: "https://defense-prod05.conferdeploy.net"
      CB_API_ID: "<cb_api_id>"
      CB_API_SECRET: "<cb_api_secret>"
    params:
      CB_ORG_KEY:
        mandatory: true
        type: string
        base: string
      CB_MIN_SEVERITY:
        mandatory: false
        type: string
        base: string
      CB_TIME_RANGE:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates every request with X-Auth-Token: <CB_API_SECRET>/<CB_API_ID>
  2. Lists alerts from POST /api/alerts/v7/orgs/{org}/alerts/_search, filtered by CB_MIN_SEVERITY (sent as a numeric floor) and CB_TIME_RANGE, 1000 per page
  3. Lists managed devices (sensors) from POST /appservices/v6/orgs/{org}/devices/_search, 1000 per page
  4. Groups alerts by device ID and creates one host per device, enriched with the matching device record (OS, policy, sensor version, last IPs). Devices without any alert still appear as inventory-only hosts.
  5. Maps each alert to a Faraday vulnerability:
    • Name: [EDR] followed by the alert reason
    • Severity: Carbon Black's 1-10 severity scale, or its string enum, or a CVSS score when present
    • Status: the alert's workflow state (CLOSED/RESOLVED becomes closed; dismissed/suppressed/false-positive becomes risk-accepted; everything else is open)
    • Details: process and parent process info, MITRE ATT&CK tactics and techniques, threat and policy identifiers

Notes

  • Each managed endpoint becomes one host, using its internal or external IP (falls back to 0.0.0.0).
  • CB_MIN_SEVERITY is applied both in the Carbon Black query and again on the imported data.
  • CB_TIME_RANGE accepts CB's own token format or friendly shorthand; an unrecognized value is ignored (no time filter).
  • CB_HOST is the regional Carbon Black Cloud endpoint for your organization (for example https://defense-prod05.conferdeploy.net).
  • The run stops if credentials are rejected (HTTP 401) or if CB_ORG_KEY is missing.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor. Use CB_MIN_SEVERITY to filter by severity.