Managing rules

Use rules to determine which endpoints to target and what information to send to your IAM provider.

View rules

Users with the Zero Trust Microsoft Entra ID Rules Read permission can view all rules in Zero Trust.

  1. From the Main menu, go to Shared Services > Zero Trust > Rules.
  2. (Optional) Use the following filter options to find specific rules if the list is long. The list shows only the rules that match all the filters that you specify.
    Table 1. Rule filter options

    Option

    Description

    Select mode

    Use the Mode buttons to toggle between showing All rules, Audit rules, and Enforce rules.

    Select action

    Use the Action buttons to toggle between All rules, rules that Apply an extension attribute, and rules that Remove an extension attribute.

    Select extension attribute number

    Select a value for Extension Attribute # to only show rules that remove or apply a value to the extension attribute.

    Select extension attribute

    Select a value for Extension Attribute to only show rules that remove or apply the extension attribute.

    Filter items

    Enter an alphanumeric string to match text in any column.

    Filter by field

    Expand Filters caret-right and specify any additional filters. You can filter by Name, Creator, and Owner.

    Sort by column

    Click any column header to sort the list of rules by that column.

  3. (Optional) Take action on a rule. The following actions are available:
    Table 2. Available actions for the rule list

    Option

    Description

    Create rule

    Click Create Rule.

    Edit rule

    Select the checkbox next to the rule that you want to edit and then click Edit edit_button.

    Prioritize rules

    An event can trigger more than one rule for an endpoint, but only one rule for each extension attribute. When an endpoint matches multiple rules that affect the same extension attribute, the rule with the highest priority determines which result is sent to the zero trust service. Rule priority is in descending order, with 1 the highest priority. To prioritize rules, click Prioritize, drag the rules to change the order of evaluation, and then click Save. For more information, see Prioritize rules.

    Refresh list

    Click Refresh.

    Export rules

    To retrieve a list of the rules, apply any filters and then click Export. You have the following options:

    • Select Export to CSV to download the list of rules as a CSV file.

    • Select Copy to clipboard to copy the list of rules in CSV format to your clipboard.

    The exported list contains the rules that match the filters you set.

    Take ownership

    Rules run against the endpoints allowed by the computer management group permissions for the owner of the rule. To change ownership of a rule to yourself, select the checkbox next to the rule, click Actions > Take Ownership, and then click Save.

    Clone rule

    Select the checkbox next to the rule and then click Actions > Clone. The Create Microsoft Entra ID Rule page opens with fields populated from the original rule. Edit the fields as needed and click Save. For more information about available fields, see Create a rule.

    Delete rule

    Select the checkbox next to the rule. Click Delete trash_button and then click Delete to confirm.

  4. Click a rule to view details for the rule. The following actions are available when you view an individual rule:
    Table 3. Available actions for individual rules

    Option

    Description

    Preview targeted endpoints

    In the Summary section, click the number that appears in the Matching Endpoints column and then choose one of the following options:

    • Click View Online Data to ask a live question to see online endpoints that the rule targets.

    • Click View Cached Data to view targeted endpoints from results collected by Tanium Data Service in the last 30 days.

    Note:

    When you view cached data, any value set for the Endpoint Last Seen option in the rule is ignored, and all matching endpoints from Tanium Data Service appear. If you do not change the Endpoint Last Seen value when you create the rule, then viewing cached data shows you exact matches. If you changed the Endpoint Last Seen value, the actual matching endpoints are a subset of the results that appear.

    By default, Tanium Data Service retains results for 30 days, but users can configure settings for all endpoints, or endpoints by computer group, to reduce the retention period. For more information, see Configure removal of expired results.

    Edit rule

    Click Actions > Edit.

    Clone rule

    Click Actions > Clone. The Create Microsoft Entra ID Rule page opens with fields populated from the original rule. Edit any fields and click Save. For more information about available fields, see Create a rule.

    Take ownership

    Rules run against the endpoints allowed by the computer management group permissions for the owner of the rule. To change ownership of a rule to yourself, click Actions > Take Ownership, and then click Save.

    Delete rule

    Click Actions > Delete and then click Delete to confirm.

Create a rule

To create a rule, you must have a role with the Zero Trust Microsoft Entra ID Config Write permission.

  1. From the Main menu, go to Shared Services > Zero Trust > Rules > Create Rule.
    Example page in Zero Trust. Shows the Create Rule button.
  2. Enter a name for the rule and optionally add a description.
  3. Select a Mode:
    • Select Enforcement if you want Zero Trust to send data to your IAM provider when events occur.
    • Select Audit if you want Zero Trust to log events but not send data to your IAM provider.
  4. Click Add Targeting to define a filter using the same from computers with fields as in the Interact Question Builder. You can base the matching on a Sensor or Computer Group (management group or filter group). For each rule, you can configure multiple filters, including nested filters. For more information about using the builder, see Issue a question through the Question Builder.
    Tip: The sensors that appear in the builder are sourced by Tanium Data Service. For more information about viewing registered sensors and registering sensors for collection with Tanium Data Service, see Managing sensor results collection through TDS.
    Note: Disregard the Force Computer Id option in the Advanced Question Options section. That option is not used by Zero Trust.
    Note:

    For Entra ID rules, Zero Trust adds a filter to target only the following endpoints:

    • Endpoints that do not have a tenant ID

    • Endpoints whose tenant ID matches a configured tenant ID in Entra ID

    The filter appears when you view the targeting for the rule and cannot be removed. For more information about finding your tenant ID in Entra ID, see Microsoft Azure documentation: How to find your Azure Active Directory tenant ID.

  5. (Optional) Click Preview Targeted Endpoints to view the endpoints that the rule targets, and then adjust your targeting criteria if necessary.
    Note: Be aware that rules are subject to the computer management group permissions of the default persona of the user who owns the rule. If you change ownership of the rule, the rule might target different endpoints.
  6. (Optional) To limit targeting to endpoints seen online recently, update the value for Endpoint Last Seen. The default value is 720 hours (30 days), which is the default amount of time that Tanium Data Service stores results.
    Tip: For best results, do not set the value lower than 96 hours. Rules run on data that Tanium Data Service provides; setting this value to 96 hours or more prevents stale data if endpoints are powered down over a long weekend.
  7. Specify the Microsoft Entra ID Device Attribute.
    • Action: To apply an extension attribute when an event occurs, select Apply. To remove an extension attribute when an event occurs, select Remove.
    • Extension Attribute: Select the attribute to apply or remove a string when an event occurs. Each extension attribute can only contain one extension attribute string.
    • Extension Attribute String: Enter the string to assign to, or remove from, the extension attribute. If you set Action to Apply, this string is applied to the selected Extension Attribute. If you set Action to Remove, the rule only removes the string if it matches the value that you set in this field.
    • If you select Apply as the Action type, you can select Automatically remove attribute if target conditions are no longer met to remove the attribute when an endpoint no longer meets the target conditions. If you do not select Automatically remove attribute if target conditions are no longer met, the extension attribute string remains until another rule applies or removes the string.
  8. Click Save.

Zero Trust creates and activates the rule.

Prioritize rules

An event might cause an endpoint to match more than one rule. An event can match multiple rules, but only one rule can trigger for each extension attribute for each endpoint.

For example, consider an event that matches three rules: Rule 1, Rule 2, and Rule 3. Rule 1 assigns a string to extension attribute 1, Rule 2 assigns a string to extension attribute 3, and Rule 3 removes a string from extension attribute 3. The rules are prioritized in order: Rule 1 is priority 1, Rule 2 is priority 2, and Rule 3 is priority 3. When the event occurs, Rule 1 always triggers for the endpoint, because that rule has no conflicts with other rules (and it is also the highest priority rule). However, Rule 2 and Rule 3 affect the same extension attribute, and thus only Rule 2 triggers due to the order of priority.

  1. From the Main menu, go to Shared Services > Zero Trust > Rules > Prioritize.
    Example page in Zero Trust. Shows the Prioritize button.
  2. Drag the rules in the order that you prefer. Rule priority is in descending order (1 the highest priority). Click Save.

Take ownership of a rule

A rule is subject to the computer management group permissions of the user who creates the rule. If a rule does not trigger for an endpoint, you can expand the computer management group permissions for the user, or you can transfer ownership of the rule to a user with the necessary permissions.

Note: For more information about changing computer management group permissions for a user, see Manage computer group assignments for a user.
Important: Rules use the computer management group permissions for the default persona of the user.
  1. From the Main menu, go to Shared Services > Zero Trust > Rules.
  2. Select the checkbox next to the rule and then click Actions > Take Ownership.
    Example page in Zero Trust. Shows the Take Ownership button.
  3. Click Save.

The rule immediately uses the management rights of the new owner.

Edit rule

You can edit the name and description of an existing rule.

Tip: After you create a rule, you can only edit the name and description of the rule. If you want to edit any other fields, you can clone the rule, modify the fields as needed, and then save the new rule. For example, if you create a rule in audit mode and want to change the rule to enforcement mode, clone the rule, edit the mode, and then save the new rule. For more information, see Clone rule.
  1. From the Main menu, go to Shared Services > Zero Trust > Rules.
  2. Select the checkbox next to the rule and click Edit edit_button.
    Example page in Zero Trust. Shows the Edit button.
    Tip: Alternatively, you can click the name of the rule to view the rule. From the page that opens, select Actions > Edit.
  3. Edit the name or description of the rule.
  4. Click Save.

Clone rule

To quickly create a rule that is similar to an existing rule, you can clone the rule.

  1. From the Main menu, go to Shared Services > Zero Trust > Rules.

  2. Select the checkbox next to the rule that you want to clone and select Actions > Clone.

    Example page in Zero Trust. Shows the Clone button.

    The Create Microsoft Entra ID Rule page opens with fields populated from the original rule.

  3. Edit any fields and click Save. For more information about available fields, see Create a rule.

  4. (Optional) Change the priority of the rule. For more information, see Prioritize rules.

Delete rule

Note: When you delete a rule, you have the option to remove the extension attribute string from endpoints that were targeted by the rule. To ensure you remove the extension attribute string from all possible endpoints that might have been affected by the rule, change the ownership of the rule to a user who has computer management group permissions to all endpoints that have been targeted by the rule, and then have that user delete the rule. You can also have a user with unrestricted management rights create a temporary rule to remove an extension attribute string from all managed endpoints.
  1. From the Main menu, go to Shared Services > Zero Trust > Rules.
  2. Select the checkbox next to the rule that you want to delete and click Delete trash_button.
    Example page in Zero Trust. Shows the Delete button.
  3. If the rule sets an extension attribute on any endpoints, a prompt appears to determine how to handle those endpoints. You can choose to remove the extension attribute and string for the endpoints or keep the existing extension attribute and string for the endpoints.
    Example page in Zero Trust. Shows the Confirm Rule Deletion dialog.
  4. Click Delete.