Microsoft Sentinel
Cloud and workloads

Add Advanced Conditions to Microsoft Sentinel Automation Rules

In brief

The article updates its title and metadata, standardizes formatting, renames tab headings, and clarifies instructions for adding OR condition groups and entity-property values.

What Defender admins need to know

Administrators following the guide will have clearer labels and step descriptions when creating automation rule conditions.

Summaries are generated from the documentation change itself.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

Example 1: simple conditions

In this first example, we'll create a simple condition group: If either condition A or condition B is true, the rule will run and the incident's severity will be set to High.

:::image type="content" source="media/add-advanced-conditions-to-automation-rules/add-condition-group.png" alt-text="Screenshot of adding a condition group to an automation rule's condition set.":::
  1. See that two sets of condition fields are displayed, separated by an OR operator. TheseThe two sets of condition fields are conditions A and B, representing the two sides of a simple OR condition group: If A or B is true, the rule will run.
    (Don't be confused by all the different layers of "Add" links - these will all be explained. links—each one is explained in the following steps.)

    :::image type="content" source="media/add-advanced-conditions-to-automation-rules/empty-condition-group.png" alt-text="Screenshot of empty condition group fields.":::

  2. Let's decideDecide what these conditions will be. That is, what two different conditions will cause the incident severity to be changed to High? Let'sWe suggest the following:

    • If the incident's associated MITRE ATT&CK Tactics include any of the four we've selected from the drop-down (see the image below), the severity should be raised to High.

    :::image type="content" source="media/add-advanced-conditions-to-automation-rules/add-simple-or-condition.png" alt-text="Screenshot of adding simple OR conditions to an automation rule.":::

    As long as at least ONE of these conditions is true, the actions we define in the rule will run, changing the severity of the incident to High.

Example 1A: Add an OR value within a single condition

Let's say we have not one, but two super-sensitive workstations whose incidents we want to make high-severity. We canTo add another value to an existing condition (for any conditions based on entity properties) by selectingentity-property condition, select the dice icon to the right of the existingcurrent condition value, and then enter an additional value and adding the new value below.below it.

:::image type="content" source="media/add-advanced-conditions-to-automation-rules/add-value-to-condition.png" alt-text="Screenshot of adding more values to a single condition.":::

Let's say we want to have this rule run if one of THREE (or more) conditions is true. If A or B or C is true, the rule will run.

  1. Remember all those "Add" links? To add another OR condition, select the + Add connected by a line to the OR operator.

    :::image type="content" source="media/add-advanced-conditions-to-automation-rules/add-another-or-condition.png" alt-text="Screenshot of adding another OR condition to an automation rule.":::

  2. Now, select the field, operator, and value for the new condition, as you did for conditions Acondition by choosing a property from the drop-down list, selecting a comparison operator, and B.entering the target value.

    :::image type="content" source="media/add-advanced-conditions-to-automation-rules/added-another-or-condition.png" alt-text="Screenshot of another OR condition added to an automation rule.":::

    :::image type="content" source="media/add-advanced-conditions-to-automation-rules/empty-new-condition.png" alt-text="Screenshot of empty new condition row in automation rules.":::

  3. Fill in the parameters and values offor the new condition row by selecting a property, operator, and value from the drop-down lists, using the same method you used for the earlier conditions in this condition the same way you did the previously added conditions in the group.

    :::image type="content" source="media/add-advanced-conditions-to-automation-rules/fill-in-new-condition.png" alt-text="Screenshot of new condition fields to fill in to add to automation rules.":::

That's it! You can use what you've learned here to add more conditions and condition groups, using different combinations of AND and OR operators, to create powerful, flexible, and efficient automation rules to really help your SOC run smoothly and lower your response and resolution times.

Next stepsRelated content

For more information about automation rules and related capabilities, see the following resources: