# Carbon Black Cloud

> Triage and close alerts, add notes, quarantine and scan devices, change their policy, approve or ban files, and manage watchlist alerts in Carbon Black Cloud.

App · 22 actions. Web page: https://docs.lodol.com/docs/integrations/carbon-black-cloud

## Actions

### Add alert note

Add a note to an alert.

**Inputs**

- Alert (`alert_id`, text, required): The alert.
- Note (`note`, text, required): The note's text, up to 20,000 characters.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "author": "example",
    "create_timestamp": "example",
    "id": "example",
    "last_update_timestamp": "example",
    "note": "example",
    "parent_id": "example",
    "source": "example"
  }
}
```

### Add reputation override

Approve or ban a file by its SHA-256 hash, approve a signing certificate, or approve an IT tool by its path.

**Inputs**

- List (`override_list`, text, required): Whether to approve or ban it. Only a file hash can be banned. One of: `WHITE_LIST` (Approved list), `BLACK_LIST` (Banned list).
- Kind (`override_type`, text, required): What to match. One of: `SHA256` (File hash (SHA-256)), `CERT` (Signing certificate), `IT_TOOL` (IT tool (by path)).
- Reason (`description`, text, required): Why it is approved or banned.
- SHA-256 hash (`sha256_hash`, text): For a file hash: the SHA-256 hash, 64 hexadecimal characters.
- File name (`filename`, text): For a file hash: the file's name.
- Signed by (`signed_by`, text): For a certificate: the name it is signed by.
- Certificate authority (`certificate_authority`, text): For a certificate: the authority that issued it.
- Path (`path`, text): For an IT tool: the absolute path to the file or folder, such as C:\Tools\.
- Include child processes (`include_child_processes`, true/false): For an IT tool: approve the processes it starts too.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "certificate_authority": "example",
    "create_time": "example",
    "created_by": "example",
    "description": "example",
    "filename": "example",
    "id": "example",
    "include_child_processes": true,
    "override_list": "example",
    "override_type": "example",
    "path": "example",
    "sha256_hash": "example",
    "signed_by": "example"
  }
}
```

### Change device policy

Assign devices to a policy.

**Inputs**

- Devices (`device_ids`, list, required): The devices to act on.
- Policy (`policy_id`, text, required): The policy to assign.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "accepted": true,
    "action_type": "example",
    "device_ids": [
      "example"
    ]
  }
}
```

### Delete alert note

Delete a note from an alert.

**Inputs**

- Alert (`alert_id`, text, required): The alert.
- Note (`note_id`, text, required): The note to delete.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {}
}
```

### Delete reputation override

Remove an entry from the approved or banned list.

**Inputs**

- Override ID (`override_id`, text, required): The override's ID, which Add reputation override and Search reputation overrides return.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {}
}
```

### Get alert

Get an alert with its device, process, workflow and determination.

**Inputs**

- Alert (`alert_id`, text, required): The alert.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "alert_url": "example",
    "backend_timestamp": "example",
    "backend_update_timestamp": "example",
    "detection_timestamp": "example",
    "determination": {
      "change_timestamp": "example",
      "changed_by": "example",
      "value": "example"
    },
    "device_external_ip": "example",
    "device_id": 1,
    "device_internal_ip": "example",
    "device_name": "example",
    "device_os": "example",
    "device_os_version": "example",
    "device_policy": "example",
    "device_policy_id": 1,
    "device_username": "example",
    "first_event_timestamp": "example",
    "id": "example",
    "last_event_timestamp": "example",
    "org_key": "example",
    "policy_applied": "example",
    "process_cmdline": "example",
    "process_name": "example",
    "process_sha256": "example",
    "process_username": "example",
    "reason": "example",
    "reason_code": "example",
    "report_id": "example",
    "report_name": "example",
    "run_state": "example",
    "sensor_action": "example",
    "severity": 1,
    "tags": [
      "example"
    ],
    "threat_id": "example",
    "type": "example",
    "user_update_timestamp": "example",
    "watchlists": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "workflow": {
      "change_timestamp": "example",
      "changed_by": "example",
      "changed_by_type": "example",
      "closure_reason": "example",
      "status": "example"
    }
  }
}
```

### Get device

Get a device's details: status, operating system, policy, sensor, IP addresses and last contact.

**Inputs**

- Device (`device_id`, text, required): The device.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "av_status": [
      "example"
    ],
    "deployment_type": "example",
    "deregistered_time": "example",
    "email": "example",
    "id": 1,
    "last_contact_time": "example",
    "last_external_ip_address": "example",
    "last_internal_ip_address": "example",
    "last_reported_time": "example",
    "login_user_name": "example",
    "name": "example",
    "os": "example",
    "os_version": "example",
    "policy_id": 1,
    "policy_name": "example",
    "quarantined": true,
    "registered_time": "example",
    "sensor_version": "example",
    "status": "example",
    "target_priority": "example"
  }
}
```

### Get job

Get the progress of a job, such as the one Update alert status starts.

**Inputs**

- Job ID (`job_id`, text, required): The job's ID: the request ID Update alert status returns.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "create_time": "example",
    "errors": "example",
    "id": 1,
    "last_update_time": "example",
    "progress": {
      "message": "example",
      "num_completed": 1,
      "num_total": 1
    },
    "status": "example",
    "type": "example"
  }
}
```

### Get reputation override

Get one entry on the approved or banned list.

**Inputs**

- Override ID (`override_id`, text, required): The override's ID, which Add reputation override and Search reputation overrides return.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "certificate_authority": "example",
    "create_time": "example",
    "created_by": "example",
    "description": "example",
    "filename": "example",
    "id": "example",
    "include_child_processes": true,
    "override_list": "example",
    "override_type": "example",
    "path": "example",
    "sha256_hash": "example",
    "signed_by": "example"
  }
}
```

### Get watchlist

Get a watchlist and the reports it holds.

**Inputs**

- Watchlist (`watchlist_id`, text, required): The watchlist.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "alerts_enabled": true,
    "create_timestamp": 1,
    "description": "example",
    "id": "example",
    "last_update_timestamp": 1,
    "name": "example",
    "report_ids": [
      "example"
    ],
    "tags_enabled": true
  }
}
```

### List alert notes

List the notes on an alert.

**Inputs**

- Alert (`alert_id`, text, required): The alert.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "num_found": 1,
    "results": [
      {
        "author": "example",
        "create_timestamp": "example",
        "id": "example",
        "last_update_timestamp": "example",
        "note": "example",
        "parent_id": "example",
        "source": "example"
      }
    ]
  }
}
```

### List policies

List the organization's prevention policies with how many devices each has.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "policies": [
      {
        "description": "example",
        "id": 1,
        "is_system": true,
        "name": "example",
        "num_devices": 1,
        "position": 1,
        "priority_level": "example"
      }
    ]
  }
}
```

### List watchlists

List the Enterprise EDR watchlists, and whether each raises alerts.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "results": [
      {
        "alerts_enabled": true,
        "create_timestamp": 1,
        "description": "example",
        "id": "example",
        "last_update_timestamp": 1,
        "name": "example",
        "report_ids": [
          "example"
        ],
        "tags_enabled": true
      }
    ]
  }
}
```

### Quarantine devices

Cut devices off from the network, except for Carbon Black Cloud itself.

**Inputs**

- Devices (`device_ids`, list, required): The devices to act on.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "accepted": true,
    "action_type": "example",
    "device_ids": [
      "example"
    ]
  }
}
```

### Release devices from quarantine

Reconnect quarantined devices to the network.

**Inputs**

- Devices (`device_ids`, list, required): The devices to act on.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "accepted": true,
    "action_type": "example",
    "device_ids": [
      "example"
    ]
  }
}
```

### Search alerts

Find alerts by time, minimum severity, type, workflow status or device, newest first.

**Inputs**

- Created in (`range`, text): How far back to look, by when Carbon Black Cloud created the alert. Defaults to the last 2 weeks. One of: `-1h` (Last hour), `-1d` (Last day), `-3d` (Last 3 days), `-1w` (Last week), `-2w` (Last 2 weeks), `-1M` (Last month).
- From (`start_time`, date and time): The start of a time range, used in place of Created in. Needs To as well.
- To (`end_time`, date and time): The end of a time range. Needs From as well.
- Minimum severity (`minimum_severity`, number): Only alerts at least this severe, from 1 to 10. From 1 to 10.
- Alert types (`alert_types`, list): Only alerts of these types. One or more of: `CB_ANALYTICS` (CB Analytics), `WATCHLIST`, `DEVICE_CONTROL` (Device control), `HOST_BASED_FIREWALL` (Host-based firewall), `INTRUSION_DETECTION_SYSTEM` (Intrusion detection).
- Statuses (`workflow_statuses`, list): Only alerts with these workflow statuses. One or more of: `OPEN`, `IN_PROGRESS` (In progress), `CLOSED`.
- Device (`device_name`, text): Only alerts on the device with this name.
- Search query (`query`, text): A search in Carbon Black's query syntax, such as process_name:powershell.exe.
- Number of results (`rows`, number): How many results to return, up to 10,000. Defaults to 100. From 1 to 10000.
- Start at (`start`, number): Where to start in the results, counting from 1, to read the next page. At least 1.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "num_available": 1,
    "num_found": 1,
    "results": [
      {
        "alert_url": "example",
        "backend_timestamp": "example",
        "backend_update_timestamp": "example",
        "detection_timestamp": "example",
        "determination": {
          "change_timestamp": "example",
          "changed_by": "example",
          "value": "example"
        },
        "device_external_ip": "example",
        "device_id": 1,
        "device_internal_ip": "example",
        "device_name": "example",
        "device_os": "example",
        "device_os_version": "example",
        "device_policy": "example",
        "device_policy_id": 1,
        "device_username": "example",
        "first_event_timestamp": "example",
        "id": "example",
        "last_event_timestamp": "example",
        "org_key": "example",
        "policy_applied": "example",
        "process_cmdline": "example",
        "process_name": "example",
        "process_sha256": "example",
        "process_username": "example",
        "reason": "example",
        "reason_code": "example",
        "report_id": "example",
        "report_name": "example",
        "run_state": "example",
        "sensor_action": "example",
        "severity": 1,
        "tags": [
          "example"
        ],
        "threat_id": "example",
        "type": "example",
        "user_update_timestamp": "example",
        "watchlists": [
          {
            "id": "example",
            "name": "example"
          }
        ],
        "workflow": {
          "change_timestamp": "example",
          "changed_by": "example",
          "changed_by_type": "example",
          "closure_reason": "example",
          "status": "example"
        }
      }
    ]
  }
}
```

### Search devices

Find devices by status, operating system, policy or a search query.

**Inputs**

- Statuses (`statuses`, list): Only devices with these statuses. One or more of: `REGISTERED`, `ACTIVE`, `INACTIVE`, `PENDING`, `DEREGISTERED`, `BYPASS`, `BYPASS_ON` (Bypass on), `QUARANTINE`, `SENSOR_OUTOFDATE` (Sensor out of date), `ERROR`.
- Operating systems (`operating_systems`, list): Only devices running these operating systems. One or more of: `WINDOWS`, `MAC` (macOS), `LINUX`, `OTHER`.
- Policy (`policy_id`, text): Only devices assigned this policy.
- Sort by (`sort`, text): What to sort by, descending. Defaults to last contact time. One of: `last_contact_time` (Last contact time), `name`, `policy_name` (Policy name), `sensor_version` (Sensor version).
- Search query (`query`, text): A search, such as a device name or IP address.
- Number of results (`rows`, number): How many results to return, up to 10,000. Defaults to 100. From 1 to 10000.
- Start at (`start`, number): Where to start in the results, counting from 1, to read the next page. At least 1.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "num_found": 1,
    "results": [
      {
        "av_status": [
          "example"
        ],
        "deployment_type": "example",
        "deregistered_time": "example",
        "email": "example",
        "id": 1,
        "last_contact_time": "example",
        "last_external_ip_address": "example",
        "last_internal_ip_address": "example",
        "last_reported_time": "example",
        "login_user_name": "example",
        "name": "example",
        "os": "example",
        "os_version": "example",
        "policy_id": 1,
        "policy_name": "example",
        "quarantined": true,
        "registered_time": "example",
        "sensor_version": "example",
        "status": "example",
        "target_priority": "example"
      }
    ]
  }
}
```

### Search reputation overrides

List the hashes, certificates and IT tools on the approved and banned lists, newest first.

**Inputs**

- List (`override_list`, text): Only the approved or the banned list. One of: `WHITE_LIST` (Approved list), `BLACK_LIST` (Banned list).
- Kind (`override_type`, text): Only overrides of this kind. One of: `SHA256` (File hash (SHA-256)), `CERT` (Signing certificate), `IT_TOOL` (IT tool (by path)).
- Search query (`query`, text): A search, such as a file name or hash.
- Number of results (`rows`, number): How many results to return, up to 10,000. Defaults to 100. From 1 to 10000.
- Start at (`start`, number): Where to start in the results, counting from 1, to read the next page. At least 1.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "num_found": 1,
    "results": [
      {
        "certificate_authority": "example",
        "create_time": "example",
        "created_by": "example",
        "description": "example",
        "filename": "example",
        "id": "example",
        "include_child_processes": true,
        "override_list": "example",
        "override_type": "example",
        "path": "example",
        "sha256_hash": "example",
        "signed_by": "example"
      }
    ]
  }
}
```

### Start background scan

Start a background scan on Windows and macOS devices.

**Inputs**

- Devices (`device_ids`, list, required): The devices to act on.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "accepted": true,
    "action_type": "example",
    "device_ids": [
      "example"
    ]
  }
}
```

### Stop background scan

Stop a background scan on devices.

**Inputs**

- Devices (`device_ids`, list, required): The devices to act on.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "accepted": true,
    "action_type": "example",
    "device_ids": [
      "example"
    ]
  }
}
```

### Turn watchlist alerts on or off

Choose whether a watchlist raises alerts when its reports match.

**Inputs**

- Watchlist (`watchlist_id`, text, required): The watchlist.
- Alerts on (`alerts_enabled`, true/false, required): On to raise alerts, off to stop.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "alerts_enabled": true,
    "watchlist_id": "example"
  }
}
```

### Update alert status

Open, start or close an alert, with a closure reason, a true or false positive determination and a note. Returns the job that makes the change.

**Inputs**

- Alert (`alert_id`, text, required): The alert.
- Status (`status`, text): The alert's new workflow status. One of: `OPEN`, `IN_PROGRESS` (In progress), `CLOSED`.
- Closure reason (`closure_reason`, text): Why the alert is being closed. One of: `NO_REASON` (No reason), `RESOLVED`, `RESOLVED_BENIGN_KNOWN_GOOD` (Resolved, benign or known good), `DUPLICATE_CLEANUP` (Duplicate), `OTHER`.
- Determination (`determination`, text): Whether the alert was a true or false positive. One of: `TRUE_POSITIVE` (True positive), `FALSE_POSITIVE` (False positive), `NONE`.
- Note (`note`, text): A note added to the alert with the change.

**Outputs**

- `data` (object): The response from Carbon Black Cloud.

**Example output**

```json
{
  "data": {
    "alert_id": "example",
    "request_id": "example"
  }
}
```
