Carbon Black Live Response Cloud
Carbon Black Endpoint Standard Pack.#
This Integration is part of theSupported versions
Supported Cortex XSOAR versions: 5.5.0 and later.
Enables security operators to collect information and take action on remote endpoints in real time. These actions include the ability to upload, download, and remove files, retrieve and remove registry entries, dump contents of physical memory, and execute and terminate processes.
#
Configure CarbonBlackLiveResponseCloud on Cortex XSOARCreating an API Key
- To create an API Key, go to Settings > API Access > API Keys tab in the Carbon Black Cloud web page.
- Select Add API Key from the far right.
- Give the API Key a unique name, and select the Live Response access level.
- Click Save. You will be provided with your API Key Credentials:
- API Secret Key
- API ID
- Go to Settings > API Access and copy the ORG KEY from the top left corner of the page.
- Set up Carbon Black Cloud Live Response integration instance with the ORG KEY and created API Secret Key and API ID.
Getting the device ID
You can access the device ID in one of the following ways.
- In Cortex XSOAR:
- Create an instance of the Carbon Black Defense integration.
- Run the cbd-device-search command.
- Locate the ID according to its name.
- From the Carbon Black Cloud web page:
- Click Endpoints.
- Search for and click the device name. The device ID will appear at the top of the page in the format device:\<the device ID>.
Set up integration instance
Navigate to Settings > Integrations > Servers & Services.
Search for CarbonBlackLiveResponseCloud.
Click Add instance to create and configure a new integration instance.
Parameter Description Required Your server URL The URL used to access the Carbon Black Cloud. True Custom Key The custom key to use for the connection. True Custom Id The custom ID to use for the connection. True Organization Key The organization key to use for the connection. True Trust any certificate (not secure) False Use system proxy settings False Click Test to validate the URLs, token, and connection.
#
CommandsYou can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.
#
cbd-lr-file-putCreates a new file on the remote machine with the specified data.
#
Base Commandcbd-lr-file-put
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
destination_path | File path to create on the remote endpoint. | Required |
file_id | The file entry ID in the War Room. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!cbd-lr-file-put device_id="1234567" destination_path="C:\test\test.txt" file_id=142@5
#
Human Readable OutputFile: 142@5 is successfully put to the remote destination C:\test\test_file.txt
#
cbd-lr-file-getRetrieves the contents of the specified file on the remote machine.
#
Base Commandcbd-lr-file-get
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
source_path | Path of the file to be retrieved. | Required |
timeout | Timeout for the operation. | Optional |
delay | The amount of time in seconds to wait before a command complete. | Optional |
#
Context Output#
Command Example !cbd-lr-file-get device_id="the actually device ID" source_path="C:\\test\\test_file.txt" delay=2 timeout=30
#
Human Readable Output#
cbd-lr-file-deleteDeletes the specified file name on the remote machine.
#
Base Commandcbd-lr-file-delete
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
source_path | Path of the file to be deleted. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!cbd-lr-file-delete device_id="the actually device ID" source_path="C:\test\test_file.txt"
#
Human Readable OutputThe file: C:\test\test_file.txt was deleted successfully.
#
cbd-lr-directory-listingLists the contents of a directory on the remote machine.
#
Base Commandcbd-lr-directory-listing
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
directory_path | The directory path. This parameter should end with the path separator or have some filter pattern, e.g., *.txt. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
CarbonBlackDefenseLR.Directory.content | Data | List of dicts, each describing a directory entry. |
CarbonBlackDefenseLR.Directory.device_id | String | The device (endpoint) ID |
CarbonBlackDefenseLR.Directory.directory_path | String | The path of the listed directory. |
#
Command Example!cbd-lr-directory-listing device_id="the actually device ID" directory_path="C:\test\"
#
Context Example#
Human Readable Output#
Carbon Black Defense Live Response Directory content
Name Type Date Modified Size . Directory 1970-01-19T17:53:20.000Z 0 .. Directory 1970-01-19T17:53:20.000Z 0 a_test_process.exe File 1970-01-19T17:34:24.000Z 839112 memdump_test Directory 1970-01-19T17:52:12.000Z 0
#
cbd-lr-reg-sub-keysEnumerates the subkeys of the specified registry key on the remote machine.
#
Base Commandcbd-lr-reg-sub-keys
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
reg_path | The registry key to enumerate. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
CarbonBlackDefenseLR.RegistrySubKeys.key | String | The parent registry key. |
CarbonBlackDefenseLR.RegistrySubKeys.sub_keys | Data | The subkeys. |
CarbonBlackDefenseLR.RegistrySubKeys.device_id | String | The device (endpoint) ID. |
#
Command Example!cbd-lr-reg-sub-keys reg_path=HKEY_LOCAL_MACHINE\SOFTWARE\TEST device_id="the actually device ID"
#
Human Readable OutputThe key: HKEY_LOCAL_MACHINE\SOFTWARE\TEST does not contain any sub keys
#
cbd-lr-reg-get-valuesEnumerates all registry values from the specified registry key on the remote machine.
#
Base Commandcbd-lr-reg-get-values
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
reg_path | The registry key to enumerate. | Required |
#
Context OutputPath | Type | Description |
---|---|---|
CarbonBlackDefenseLR.RegistryValues.key | String | The registry key. |
CarbonBlackDefenseLR.RegistryValues.values | Data | The registry values of the given key. |
CarbonBlackDefenseLR.RegistryValues.device_id | String | The device (endpoint) ID. |
#
Command Example!cbd-lr-reg-get-values reg_path=HKEY_LOCAL_MACHINE\SOFTWARE\TEST device_id="the actually device ID"
#
Context Example#
Human Readable Output#
Carbon Black Defense Live Response Registry key values
Name Type Data TEST_VAL pbREG_MULTI_SZ val_1,val_2
#
cbd-lr-reg-key-createCreates a new registry key on the remote machine.
#
Base Commandcbd-lr-reg-key-create
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
reg_path | The registry key to create. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!cbd-lr-reg-key-create device_id="the actually device ID" reg_path=HKEY_LOCAL_MACHINE\SOFTWARE\TEST
#
Human Readable OutputReg key: HKEY_LOCAL_MACHINE\SOFTWARE\TEST, was created successfully.
#
cbd-lr-reg-key-deleteDeletes a registry key on the remote machine. The key must be without any subkeys.
#
Base Commandcbd-lr-reg-key-delete
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
reg_path | The registry key to delete. | Required |
force | True, to force delete the registry key with all subkeys if they exist. Default is False. | Optional |
#
Context OutputThere is no context output for this command.
#
Command Example!cbd-lr-reg-key-delete reg_path=HKEY_LOCAL_MACHINE\SOFTWARE\TEST device_id="the actually device ID"
#
Human Readable OutputRegistry key: HKEY_LOCAL_MACHINE\SOFTWARE\TEST was deleted successfully.
#
cbd-lr-reg-value-deleteDeletes a registry value on the remote machine.
#
Base Commandcbd-lr-reg-value-delete
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
reg_path | The registry value to delete. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!cbd-lr-reg-value-delete device_id="the actually device ID" reg_path=HKEY_LOCAL_MACHINE\SOFTWARE\TEST\TEST_VAL
#
Human Readable OutputRegistry value: HKEY_LOCAL_MACHINE\SOFTWARE\TEST\TEST_VAL was deleted successfully.
#
cbd-lr-reg-value-setSets a registry value on the specified registry key on the remote machine.
#
Base Commandcbd-lr-reg-value-set
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
reg_path | The path of the key + the path of the value e.g., HKLM\SYSTEM\CurrentControlSet\services\ACPI\testvalue. | Required |
value_data | The value data. | Required |
value_type | The type of value. Examples: REG_DWORD, REG_MULTI_SZ, REG_SZ. Possible values are: REG_BINARY, REG_DWORD, REG_QWORD, REG_EXPAND_SZ, REG_MULTI_SZ, REG_SZ, REG_SZ. | Required |
overwrite | If True, any existing value will be overwritten. Default is True. | Optional |
#
Context OutputThere is no context output for this command.
#
Command Example!cbd-lr-reg-value-set reg_path=HKEY_LOCAL_MACHINE\SOFTWARE\TEST\TEST_VAL device_id="the actually device ID" value_data=[\"val_1\",\"val_2\"] value_type=REG_MULTI_SZ
#
Human Readable OutputValue was set to the reg key: HKEY_LOCAL_MACHINE\SOFTWARE\TEST\TEST_VAL successfully.
#
cbd-lr-psLists the currently running processes on the remote machine.
#
Base Commandcbd-lr-ps
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
limit | The maximum number of returned processes. Default is 100. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CarbonBlackDefenseLR.Processes.processes | String | A list of dicts describing the processes |
CarbonBlackDefenseLR.Processes.device_id | String | The device (endpoint) ID |
#
Command Example!cbd-lr-ps device_id="the actually device ID"
#
Context Example#
Human Readable Output#
Carbon Black Defense Live Response Processes
Path Pid Command Line SYSTEM 4 Registry 84 c:\windows\system32\smss.exe 308 \SystemRoot\System32\smss.exe c:\windows\system32\wininit.exe 504 wininit.exe
#
cbd-lr-killTerminates a process on the remote machine
#
Base Commandcbd-lr-kill
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
pid | Process ID to be terminated. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!cbd-lr-kill pid=4592 device_id="the actually device ID"
#
Human Readable OutputThe process: 4592 was killed successfully.
#
cbd-lr-executeCreates a new process on the remote machine with the specified command string
#
Base Commandcbd-lr-execute
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
command_string | Command string used for the create process operation. | Required |
wait_for_output | True to block on output from the new process (execute in foreground). This will also set the wait_for_completion command. Default is True. | Optional |
working_directory | The working directory of the create process operation. | Optional |
remote_output_file_name | The remote output file name used for the process output. | Optional |
wait_timeout | Timeout used for this command. Default is 30. | Optional |
wait_for_completion | True to wait until the process is completed before returning. Default is True. | Optional |
#
Context OutputPath | Type | Description |
---|---|---|
CarbonBlackDefenseLR.ExecuteProcess.return_value | String | The output of the process |
CarbonBlackDefenseLR.ExecuteProcess.device_id | String | The device (endpoint) ID. |
CarbonBlackDefenseLR.ExecuteProcess.command_string | String | The command string used for the create process operation |
#
Command Example!cbd-lr-execute device_id="the actually device ID" command_string="cmd.exe"
#
Human Readable OutputMicrosoft Windows [Version 10.0.17763.1935] © 2018 Microsoft Corporation. All rights reserved. C:\Windows\system32>
#
cbd-lr-memdumpPerforms a memory dump operation on the remote machine.
#
Base Commandcbd-lr-memdump
#
InputArgument Name | Description | Required |
---|---|---|
device_id | The device (endpoint) ID. | Required |
target_path | Path of the file the memory dump will be stored in on the remote machine. | Required |
#
Context OutputThere is no context output for this command.
#
Command Example!cbd-lr-memdump device_id="the actually device ID" target_path=C:\test\memdump\dumped_file
#
Human Readable OutputMemory was successfully dumped to C:\test\memdump\dumped_file.