> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelblue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating Carbon Black EDR Response Action Rules

You can create orchestration rules in USM Anywhere that automatically trigger a response action when events match the criteria that you specify. For example, you might create a rule where USM Anywhere automatically sends the host information for malware infections that it identifies to Carbon Black EDR as a request to isolate the endpoint.

<Note>
  **Note:** Before creating an orchestration rule or launching a response action, the BlueApp for Carbon Black EDR must be enabled and configured. See [Configuring the BlueApp for Carbon Black EDR](config-alienapp-carbon-black) for more information.
</Note>

After you create a rule, new <Tooltip tip="Alarms provide notification of an event or sequence of events that require attention or investigation.">alarms</Tooltip> or <Tooltip tip="Any traffic or data exchange detected by LevelBlue products through a sensor or external devices such as a firewall.">events</Tooltip> that match the rule conditions will trigger the Carbon Black action to isolate an endpoint. The rule does not trigger for your existing alarms or events.

You can create a new rule in one of two ways:

* **From an Applied Response Action**: You can automatically create a rule using the [response action that you apply to an existing alarm](actions-alienapp-carbon-black). This makes it easy to set the matching conditions for the rule based on the existing item and use the same settings that you applied to that item.

  In the confirmation dialog box, click **Create rule for similar alarms**.

  <Frame>
    <img src="https://mintcdn.com/levelblue-5324744e/6YRWvQYX2vFHJpyA/images/usm-anywhere/alienapps/carbon-black/carbon-black-create-rule-similar.webp?fit=max&auto=format&n=6YRWvQYX2vFHJpyA&q=85&s=708088eb67a1948b9857b7a4713dad93" width="402" height="171" data-path="images/usm-anywhere/alienapps/carbon-black/carbon-black-create-rule-similar.webp" />
  </Frame>

* **From the Rules page**: The Rules page provides access to all of your orchestration rules. The Orchestration Rules list includes suppression rules, alarm rules, event rules, filtering rules, notification rules, and response action rules. You can create new rules using the specific matching conditions that you define, as well as edit, delete, and enable or disable rules. See [Orchestration Rules](../../user-guide/rules-management/orchestration-rules) for more information about managing orchestration rules.

  In the left navigation menu, go to **Settings > Rules > Orchestration Rules**. Then click **Create Orchestration Rule > Response Action Rule** to define the new rule.

  <Frame>
    <img src="https://mintcdn.com/levelblue-5324744e/saQsJL5uxJZR1Kxa/images/usm-anywhere/alienapps/create-rule-response-action.webp?fit=max&auto=format&n=saQsJL5uxJZR1Kxa&q=85&s=69d927fc9298fcda20d41ced2ba74a5d" width="1174" height="306" data-path="images/usm-anywhere/alienapps/create-rule-response-action.webp" />
  </Frame>

**To define a new response action rule**

1. Enter a name for the rule.

2. Select the App Action for the rule and specify the information for the action.

   <Frame>
     <img src="https://mintcdn.com/levelblue-5324744e/6YRWvQYX2vFHJpyA/images/usm-anywhere/alienapps/carbon-black/carbon-black-create-rule.png?fit=max&auto=format&n=6YRWvQYX2vFHJpyA&q=85&s=dc4c07626a25b575dee4f3d9e5b7b21b" width="606" height="221" data-path="images/usm-anywhere/alienapps/carbon-black/carbon-black-create-rule.png" />
   </Frame>

   The parameters you can set for Carbon Black EDR depends on the action that you select:

   <AccordionGroup>
     <Accordion title="Isolate hosts from an alarm">
       This is the default action. Use this action to trigger the rule for alarms that satisfy the matching criteria. Select a **Location** for the triggered action.

       <Frame>
         <img src="https://mintcdn.com/levelblue-5324744e/6YRWvQYX2vFHJpyA/images/usm-anywhere/alienapps/carbon-black/carbon-black-create-rule-location.webp?fit=max&auto=format&n=6YRWvQYX2vFHJpyA&q=85&s=cf2f0cac1624c59660b115f52e2dfcdb" width="607" height="152" data-path="images/usm-anywhere/alienapps/carbon-black/carbon-black-create-rule-location.webp" />
       </Frame>

       * **Source**: Use this option to isolate the source endpoint of the alarm.
       * **Destination**: Use this option to isolate the destination endpoint of the alarm.
       * **Any**: Use this option to let the system search for the Carbon Black EDR endpoints using the IP addresses in the alarm and isolate those that are identified.
     </Accordion>

     <Accordion title="Isolate hosts from an orchestration rule">
       Select the asset to be isolated.

       <Frame>
         <img src="https://mintcdn.com/levelblue-5324744e/6YRWvQYX2vFHJpyA/images/usm-anywhere/alienapps/carbon-black/carbon-black-create-rule-asset.png?fit=max&auto=format&n=6YRWvQYX2vFHJpyA&q=85&s=6adeb3c650b74a3c2d0b5e91e0435f54" width="605" height="253" data-path="images/usm-anywhere/alienapps/carbon-black/carbon-black-create-rule-asset.png" />
       </Frame>

       * **Source Asset**: Use this option to isolate the source endpoint of the alarm.
       * **Destination Asset**: Use this option to isolate the destination endpoint of the alarm.
       * **Select another Asset**: Use this option to isolate the endpoint for a specified asset. Use the search field or click **Select from List** to locate and select the asset.
     </Accordion>
   </AccordionGroup>

3. At the bottom of the dialog box, set the rule condition parameters to specify the criteria for a matching alarm or event to trigger the rule.

   <Frame>
     <img src="https://mintcdn.com/levelblue-5324744e/ElsAVGG4IM3pFRzT/images/usm-anywhere/alienapps/rules-conditions.webp?fit=max&auto=format&n=ElsAVGG4IM3pFRzT&q=85&s=ed0c95231c90d03bf18126555ab587e4" width="972" height="419" data-path="images/usm-anywhere/alienapps/rules-conditions.webp" />
   </Frame>

   * This section provides suggested property/value pairs from the selected alarm or event that you can use as conditions for the rule. Click the <img src="https://mintcdn.com/levelblue-5324744e/jTImDFBjBH7kNNGB/images/central-any-app/buttons/trash-alt.svg?fit=max&auto=format&n=jTImDFBjBH7kNNGB&q=85&s=7fcb12066bec17b51a7ebd4cad626542" style={{ height: "1em", verticalAlign: "middle", display: "inline-block", margin: "0 0.25em" }} width="24" height="24" data-path="images/central-any-app/buttons/trash-alt.svg" /> icon to delete the items that you do not want to include in the matching conditions. You can also add other conditions that are not suggested.
   * If you create the rule from the Rules page, you must use the Add Condition and Add Group functions to define the property/value pairs that you want to use as conditions for the rule.
   * At the bottom of the dialog box, click **More** to display the optional multiple occurrence and window-length parameters.

   <AccordionGroup>
     <Accordion title="Conditional Expression">
       Select an operator and add one or more conditions to form the conditional expression. You can include a condition group to evaluate a subset of conditions. The Current Rule pane displays the constructed expression in standard syntax. The box displays a red border if the expression is syntactically invalid as currently specified. A valid expression is required to save the rule definition.

       Select the operator used to determine the match for multiple conditions:

       * **AND**: Match all conditions.
       * **OR**: Match any one condition.
       * **AND NOT**: Exclude items matching all conditions after the first.
       * **OR NOT**: Include all items that do not match any conditions after the first.

       Click **Add Condition** to add a condition. For each condition, specify the field name, evaluator, and value. If the evaluation returns true for the condition, it is a match.

       Click **Add Group** to add a condition group. A new group includes a condition and its own operator used to match the conditions within the group. You can nest condition groups.
     </Accordion>

     <Accordion title="Occurrences">
       Specify the number of event or alarm occurrences that produce a match on the conditional expression to trigger the rule. The default value is 1. You can enter the number of occurrences or use the arrow to scroll the value up or down.

       USM Anywhere uses this in conjunction with the Length option to specify the number of occurrences within a time period that will trigger the rule. For example, you can define a rule to trigger for an unauthorized access attempt when a failed <Tooltip tip="Program to securely log into another computer over a network, execute commands in a remote machine, and move files from one machine to another through Secure Copy (SCP).">SSH</Tooltip> login occurs three times within a five-minute window.
     </Accordion>

     <Accordion title="Length">
       Specify the length of the window to identify a match for multiple occurrences. Enter the number and choose a time unit value of seconds, minutes, or hours. This time period identifies the amount of time that transpires from the first occurrence to the last occurrence. If the number of occurrences is not met within this period, the rule does not trigger.
     </Accordion>
   </AccordionGroup>

4. Click **Save Rule**.

5. In the confirmation dialog box, click **OK**.
