Skip to main content

Carbon Black Live Response Cloud

This Integration is part of the Carbon Black Endpoint Standard Pack.#

Supported 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 XSOAR#

Creating an API Key

  1. To create an API Key, go to Settings > API Access > API Keys tab in the Carbon Black Cloud web page.
  2. Select Add API Key from the far right.
  3. Give the API Key a unique name, and select the Live Response access level.
  4. Click Save. You will be provided with your API Key Credentials:
  • API Secret Key
  • API ID
  1. Go to Settings > API Access and copy the ORG KEY from the top left corner of the page.
  2. 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:
    1. Create an instance of the Carbon Black Defense integration.
    2. Run the cbd-device-search command.
    3. Locate the ID according to its name.
  • From the Carbon Black Cloud web page:
    1. Click Endpoints.
    2. 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

  1. Navigate to Settings > Integrations > Servers & Services.

  2. Search for CarbonBlackLiveResponseCloud.

  3. Click Add instance to create and configure a new integration instance.

    ParameterDescriptionRequired
    Your server URLThe URL used to access the Carbon Black Cloud.True
    Custom KeyThe custom key to use for the connection.True
    Custom IdThe custom ID to use for the connection.True
    Organization KeyThe organization key to use for the connection.True
    Trust any certificate (not secure)False
    Use system proxy settingsFalse
  4. Click Test to validate the URLs, token, and connection.

Commands#

You 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-put#


Creates a new file on the remote machine with the specified data.

Base Command#

cbd-lr-file-put

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
destination_pathFile path to create on the remote endpoint.Required
file_idThe file entry ID in the War Room.Required

Context Output#

There 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 Output#

File: 142@5 is successfully put to the remote destination C:\test\test_file.txt

cbd-lr-file-get#


Retrieves the contents of the specified file on the remote machine.

Base Command#

cbd-lr-file-get

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
source_pathPath of the file to be retrieved.Required
timeoutTimeout for the operation.Optional
delayThe amount of time in seconds to wait before a command complete.Optional

Context Output#

{
"File": {
"EntryID": "260@3c9bd2a0-9eac-465b-8799-459df4997b2d",
"Extension": "txt",
"Info": "text/plain; charset=utf-8",
"MD5": "db7375b2e67da548049e0a5e500b41eb",
"Name": "test_file.txt",
"SHA1": "36017cdf63594765ea755c65765702522ca2031c",
"SHA256": "9dc4d8e2cf56b9d8ec0a074151eb2a97fff3f2d633ccc166d9f8fa3e489fac8a",
"SHA512": "6b2390577ca26841d66aa9d9a3faadbb9921fefef49d9eae4f68851014e780578eb17d6443415ea1e592572701e42aac4141e09334a425c8bc6a1f5792a98c4f",
"SSDeep": "3:H0sKFQO:HKSO",
"Size": 17,
"Type": "ASCII text, with no line terminators"
}
}

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-delete#


Deletes the specified file name on the remote machine.

Base Command#

cbd-lr-file-delete

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
source_pathPath of the file to be deleted.Required

Context Output#

There 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 Output#

The file: C:\test\test_file.txt was deleted successfully.

cbd-lr-directory-listing#


Lists the contents of a directory on the remote machine.

Base Command#

cbd-lr-directory-listing

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
directory_pathThe directory path. This parameter should end with the path separator or have some filter pattern, e.g., *.txt.Required

Context Output#

PathTypeDescription
CarbonBlackDefenseLR.Directory.contentDataList of dicts, each describing a directory entry.
CarbonBlackDefenseLR.Directory.device_idStringThe device (endpoint) ID
CarbonBlackDefenseLR.Directory.directory_pathStringThe path of the listed directory.

Command Example#

!cbd-lr-directory-listing device_id="the actually device ID" directory_path="C:\test\"

Context Example#

{
"CarbonBlackDefenseLR": {
"Directory": {
"content": [
{
"alternate_name": "",
"attributes": [
"DIRECTORY"
],
"create_time": 1616331959,
"filename": ".",
"last_access_time": 1619593780,
"last_write_time": 1619593761,
"size": 0
},
{
"alternate_name": "",
"attributes": [
"DIRECTORY"
],
"create_time": 1616331959,
"filename": "..",
"last_access_time": 1619593780,
"last_write_time": 1619593761,
"size": 0
},
{
"alternate_name": "A_TEST~1.EXE",
"attributes": [
"ARCHIVE"
],
"create_time": 1619532122,
"filename": "a_test_process.exe",
"last_access_time": 1619532122,
"last_write_time": 1618464943,
"size": 839112
},
{
"alternate_name": "MEMDUM~1",
"attributes": [
"DIRECTORY"
],
"create_time": 1618324107,
"filename": "memdump_test",
"last_access_time": 1619532952,
"last_write_time": 1619532951,
"size": 0
}
],
"device_id": "the actually device ID"
}
}
}

Human Readable Output#

Carbon Black Defense Live Response Directory content#

NameTypeDate ModifiedSize
.Directory1970-01-19T17:53:20.000Z0
..Directory1970-01-19T17:53:20.000Z0
a_test_process.exeFile1970-01-19T17:34:24.000Z839112
memdump_testDirectory1970-01-19T17:52:12.000Z0

cbd-lr-reg-sub-keys#


Enumerates the subkeys of the specified registry key on the remote machine.

Base Command#

cbd-lr-reg-sub-keys

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
reg_pathThe registry key to enumerate.Required

Context Output#

PathTypeDescription
CarbonBlackDefenseLR.RegistrySubKeys.keyStringThe parent registry key.
CarbonBlackDefenseLR.RegistrySubKeys.sub_keysDataThe subkeys.
CarbonBlackDefenseLR.RegistrySubKeys.device_idStringThe 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 Output#

The key: HKEY_LOCAL_MACHINE\SOFTWARE\TEST does not contain any sub keys

cbd-lr-reg-get-values#


Enumerates all registry values from the specified registry key on the remote machine.

Base Command#

cbd-lr-reg-get-values

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
reg_pathThe registry key to enumerate.Required

Context Output#

PathTypeDescription
CarbonBlackDefenseLR.RegistryValues.keyStringThe registry key.
CarbonBlackDefenseLR.RegistryValues.valuesDataThe registry values of the given key.
CarbonBlackDefenseLR.RegistryValues.device_idStringThe 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#

{
"CarbonBlackDefenseLR": {
"RegistryValues": {
"key": "HKEY_LOCAL_MACHINE\SOFTWARE\TEST",
"device_id": "the actually device ID",
"values": [
{
"value_data": "val_1,val_2",
"value_name": "TEST_VAL",
"value_type": "pbREG_MULTI_SZ"
}
]
}
}
}

Human Readable Output#

Carbon Black Defense Live Response Registry key values#

NameTypeData
TEST_VALpbREG_MULTI_SZval_1,val_2

cbd-lr-reg-key-create#


Creates a new registry key on the remote machine.

Base Command#

cbd-lr-reg-key-create

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
reg_pathThe registry key to create.Required

Context Output#

There 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 Output#

Reg key: HKEY_LOCAL_MACHINE\SOFTWARE\TEST, was created successfully.

cbd-lr-reg-key-delete#


Deletes a registry key on the remote machine. The key must be without any subkeys.

Base Command#

cbd-lr-reg-key-delete

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
reg_pathThe registry key to delete.Required
forceTrue, to force delete the registry key with all subkeys if they exist. Default is False.Optional

Context Output#

There 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 Output#

Registry key: HKEY_LOCAL_MACHINE\SOFTWARE\TEST was deleted successfully.

cbd-lr-reg-value-delete#


Deletes a registry value on the remote machine.

Base Command#

cbd-lr-reg-value-delete

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
reg_pathThe registry value to delete.Required

Context Output#

There 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 Output#

Registry value: HKEY_LOCAL_MACHINE\SOFTWARE\TEST\TEST_VAL was deleted successfully.

cbd-lr-reg-value-set#


Sets a registry value on the specified registry key on the remote machine.

Base Command#

cbd-lr-reg-value-set

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
reg_pathThe path of the key + the path of the value e.g., HKLM\SYSTEM\CurrentControlSet\services\ACPI\testvalue.Required
value_dataThe value data.Required
value_typeThe 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
overwriteIf True, any existing value will be overwritten. Default is True.Optional

Context Output#

There 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 Output#

Value was set to the reg key: HKEY_LOCAL_MACHINE\SOFTWARE\TEST\TEST_VAL successfully.

cbd-lr-ps#


Lists the currently running processes on the remote machine.

Base Command#

cbd-lr-ps

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
limitThe maximum number of returned processes. Default is 100.Optional

Context Output#

PathTypeDescription
CarbonBlackDefenseLR.Processes.processesStringA list of dicts describing the processes
CarbonBlackDefenseLR.Processes.device_idStringThe device (endpoint) ID

Command Example#

!cbd-lr-ps device_id="the actually device ID"

Context Example#

{
"CarbonBlackDefenseLR": {
"Processes": {
"processes": [
{
"command_line": "",
"create_time": 132629811990478,
"parent": 0,
"parent_create_time": 0,
"path": "SYSTEM",
"pid": 4,
"sid": "S-1-5-18",
"username": "NT AUTHORITY\SYSTEM"
},
{
"command_line": "",
"create_time": 132629811918118,
"parent": 4,
"parent_create_time": 132629811990478850,
"path": "Registry",
"pid": 84,
"sid": "S-1-5-18",
"username": "NT AUTHORITY\SYSTEM"
},
{
"command_line": "\SystemRoot\System32\smss.exe",
"create_time": 132629811991336,
"parent": 4,
"parent_create_time": 132629811990478850,
"path": "c:\windows\system32\smss.exe",
"pid": 308,
"sid": "S-1-5-18",
"username": "NT AUTHORITY\SYSTEM"
}
],
"device_id": "the actually device ID"
}
}
}

Human Readable Output#

Carbon Black Defense Live Response Processes#

PathPidCommand Line
SYSTEM4
Registry84
c:\windows\system32\smss.exe308\SystemRoot\System32\smss.exe
c:\windows\system32\wininit.exe504wininit.exe

cbd-lr-kill#


Terminates a process on the remote machine

Base Command#

cbd-lr-kill

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
pidProcess ID to be terminated.Required

Context Output#

There is no context output for this command.

Command Example#

!cbd-lr-kill pid=4592 device_id="the actually device ID"

Human Readable Output#

The process: 4592 was killed successfully.

cbd-lr-execute#


Creates a new process on the remote machine with the specified command string

Base Command#

cbd-lr-execute

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
command_stringCommand string used for the create process operation.Required
wait_for_outputTrue 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_directoryThe working directory of the create process operation.Optional
remote_output_file_nameThe remote output file name used for the process output.Optional
wait_timeoutTimeout used for this command. Default is 30.Optional
wait_for_completionTrue to wait until the process is completed before returning. Default is True.Optional

Context Output#

PathTypeDescription
CarbonBlackDefenseLR.ExecuteProcess.return_valueStringThe output of the process
CarbonBlackDefenseLR.ExecuteProcess.device_idStringThe device (endpoint) ID.
CarbonBlackDefenseLR.ExecuteProcess.command_stringStringThe 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 Output#

Microsoft Windows [Version 10.0.17763.1935] © 2018 Microsoft Corporation. All rights reserved. C:\Windows\system32>

cbd-lr-memdump#


Performs a memory dump operation on the remote machine.

Base Command#

cbd-lr-memdump

Input#

Argument NameDescriptionRequired
device_idThe device (endpoint) ID.Required
target_pathPath of the file the memory dump will be stored in on the remote machine.Required

Context Output#

There 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 Output#

Memory was successfully dumped to C:\test\memdump\dumped_file.