OBLYTECH Logo
OBLYTECH Logo

ServiceNow Carbon Black Enrichment and Host Isolation

ServiceNow’s Carbon Black integration connects a security incident to the endpoints Carbon Black manages. Analysts use it in two ways: enrichment, which searches Carbon Black logs for indicators, and host isolation, which restricts a device’s connections to other devices. Setup needs the sn_si_admin role, a Carbon Black endpoint base and an API token.

What the integration does inside a security incident

The integration runs inside Security Operations and lets analysts query and act on the Carbon Black endpoints tied to an incident, through Carbon Black’s APIs. The work splits into two jobs that use separate settings and separate flows. Enrichment is a search that returns sightings for the analyst to review. Host isolation is an action taken against one or more configuration items (CIs) on a security incident. Decide which job you need before you configure anything.

Setting up the Carbon Black card

Setup needs the sn_si_admin role. Gather two values from Carbon Black first. Sign in to the Carbon Black site, open your profile, and copy the Endpoint Base URL and the API Token. The integration must first be downloaded from the ServiceNow Store.

Once the download is complete, go to Security Operations > Integrations > Integration Configurations. Each available security integration appears as a card. To create the configuration:

  1. On the Carbon Black card, select New.
  2. Fill in the fields described in the table below.
  3. Select Submit. The integration configuration card appears.
  4. To return to the full list of cards, select No in the Show Configurations drop-down list.

The Carbon Black card uses these fields:

Field What to enter or choose
Name A label for this configuration. Pick one that tells it apart from other configurations.
Endpoint Base The endpoint base copied from the Carbon Black profile.
API Token The API token copied from the Carbon Black profile.
Use MID Server A check box. Make sure it is selected when calls should pass through a MID Server.
MID Server Any, which uses any active MID Server, or one named MID Server.
Enable Isolate Host Allows analysts to isolate selected configuration items from the Configuration Items related list on a security incident.

Saving the configuration activates the integration’s workflows, which you manage in the Workflow Editor.

The enrichment card is set up separately

The Carbon Black – Incident Enrichment integration has its own card. On that card you select Configure rather than New, and setup also requires the sn_si_admin role. Its field list differs from the Carbon Black card’s. The next section covers those fields.

Enrichment: searching Carbon Black for indicators

Enrichment helps an investigation by querying Carbon Black logs for indicators that look potentially malicious. Its configuration decides how each search behaves. The table below lists the fields on the enrichment card.

Field What it controls
Name The label for this configuration.
Endpoint Base The endpoint URL copied from the Carbon Black site.
Link URL A link to a Carbon Black instance, where one is available.
API Token The API token copied from the Carbon Black site.
Max Rows The maximum number of rows a search returns. The default is 1000.
Earliest Result (days) How far back results reach, counted in days.
Perform binary and process search Turns on binary searches, such as file hashes, and searches for .exe processes that may have run.
Include raw data samples in search results Adds samples of raw data to sightings results. The amount depends on the “number of rows of raw data” property in Security Incident Response properties.
MID Server Any active MID Server, or one named MID Server.

Max Rows and Earliest Result (days) are the two settings that set the size and reach of each search. A higher row limit returns more matches for review. A shorter Earliest Result window limits results to more recent activity, which is typically the better setting for an incident that is still moving.

Perform binary and process search changes what kind of evidence comes back. Turning it on adds binary searches, such as file hashes, and searches for .exe processes that may have run.

Raw data samples are controlled in two places. The check box on the enrichment card turns samples on, but the number of rows comes from the ‘number of rows of raw data’ property in Security Incident Response properties.

Isolating a host from a security incident

The Isolate Host capability restricts a host’s system connections to other devices. It runs against configuration items (CIs). Its flow accepts one or more configuration items and optionally an implementation, which is the integration-specific flow that carries out the action. You can name one implementation, or let the flow try all of the available implementations.

The isolate action is triggered from the Configuration Items tab on a security incident’s related list. The high-level flow behind it, Security Operations – Isolate Host Flow, does not depend on any one integration. It uses the configured queries to search for a set of configuration items, and then hands the work to an integration such as Carbon Black. Running it requires the sn_si.analyst role.

If no implementations are available, capability actions do not appear in the product menus. A missing isolate action therefore points to the implementation side of the configuration.

What the Carbon Black isolate flow does

The Carbon Black implementation, Security Operations Carbon Black Integration – Isolate Host Flow, is launched by the Security Operations Integration – Isolate Host flow. It also requires the sn_si.analyst role. Its steps run in this order:

  1. Get IP from CI reads the IP address from the configuration item.
  2. Collect Carbon Black configurations gathers the endpoint base, the MID Server choice and the API token for the later steps.
  3. Get Sensor ID gathers the sensor identifiers the flow needs.
  4. Set Network Isolation Enabled turns network isolation on.
  5. Update Sensor changes the sensor so the host or endpoint is isolated, and returns an Isolate Host result.

Step 2 reports either Success or Failure. A Failure means the configuration could not be verified, and the error detail appears in the activity output error.

Reversing isolation with the Remove Host Isolation flow

The Security Operations Carbon Black Integration- Remove Host Isolation flow unblocks communication with a specified host or endpoint in Carbon Black. It also requires the sn_si.analyst role. The reversal is not part of the Isolate Host capability, so the capability does not call it. It needs a custom orchestration before it can run.

The flow follows the same pattern as the isolate flow. It gets the IP address from the configuration item, and if that succeeds it collects the Carbon Black configurations and gets the sensor ID. A decision step then checks two conditions: that the device supports isolation, and that the device is not isolated to disabled. If both checks pass, the Update Sensor activity runs, and that step returns an Isolate Host result, the same result label the isolate flow returns.

Because the reversal sits outside the capability, a practical approach is to build it as its own orchestration at the same time as the isolation orchestration. That way both directions are ready before an incident requires either one.

Retrieving running processes from an endpoint

The Get Running Processes flow is the Carbon Black implementation for the Get Running Process integration flow. It requires the sn_si.analyst role. Its actions cover configuration, connection checks and the process retrieval itself:

  • Collect Carbon Black Configurations, which gathers the configuration information the flow needs.
  • Check MID Server Status, which confirms that the MID Server named in the configuration is running. If the setting is Any, the check confirms that some MID Server is running.
  • Get Sensor ID, which gathers the sensor identifiers.
  • Create Session and Check Session Status, which open and monitor a Carbon Black session.
  • Create Command Process, which creates a command process within that session.
  • Check Command Status and Get Process, which checks the command and retrieves the processes.
  • Map Processes Data, which maps the Carbon Black process data into the form the flow uses.
  • Close Session, which closes the session when the work is done.
  • Capability Execution Tracking – Complete, which updates the audit record when the flow finishes.

Taken together, the session steps are the core of the job. The flow opens a session, creates a command process, checks the command status, retrieves and maps the process data, and closes the session.

Frequently asked questions

Which role does setup require?

Setup requires the sn_si_admin role. Running the isolate, remove-isolation and get running processes flows requires sn_si.analyst.

What do I need from Carbon Black before I configure the card?

You need the Endpoint Base URL and the API Token from your Carbon Black profile.

Why does the isolate action not appear in the menu?

Capability actions are hidden when no implementations are available. Check that a Carbon Black implementation is present for the Isolate Host capability.

Can the Isolate Host capability also undo isolation?

No. The Remove Host Isolation flow is not part of the capability. It has to be placed in a custom orchestration to run.

How do I control how many enrichment results come back?

Use Max Rows, which defaults to 1000, and Earliest Result (days), which sets how far back the search reaches. The number of raw data rows included in samples is set by the ‘number of rows of raw data’ property in Security Incident Response properties.

Does saving the card change anything beyond the card itself?

Yes. It activates the integration’s workflows, which you manage in the Workflow Editor.