> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/cortex-xsiam/detect-investigate-and-respond-to-threats/threat-management/threat-intel-management/indicator-configuration/generate-issues-from-indicators-using-indicator-rules-for-prevention-and-detection.md).

# Generate issues from indicators using indicator rules for prevention and detection

Indicator rules allow you to utilize indicators in the system for detection and prevention. These rules allow you to select indicators or indicator traits to be detected by the tenant and prevented by the endpoint. Indicator rules marked for detection and prevention generate issues that you can then track and investigate.

{% hint style="info" %}

### Note

Indicators should be present in the Threat Intelligence database (**Threat Management** → **Threat Intelligence** → **Indicators**) before creating detection and prevention rules.
{% endhint %}

Indicator rules can be used for the following:

* Real-time prevention on the agent

Create an indicator rule for a Restrictions profile on the Agent using filters applied on file (SHA256 and MD5) indicators. A Restrictions profile limits the locations from which executables can run on an endpoint. When the Cortex XDR agent detects behavior that matches a rule defined in your profile, the Cortex XDR agent applies the security profile that is attached to the rule for further inspection. An issue is then generated in Cortex XSIAM (source is XDR Agent). For more information about the Restrictions profile, see [Set up restrictions prevention profiles](/cortex-xsiam/protect-your-endpoints/endpoint-security/install-and-manage-endpoints/set-up-endpoint-protection/set-up-endpoint-profiles-and-exception-rules/set-up-restrictions-prevention-profiles.md).

* Cortex XSIAM tenant (server-side) detection

  Create rules based on filters that are applied to a file (SHA256, MD5) an IP address, and a domain. If an indicator rule applies, an issue is generated in Cortex XSIAM (source is Threat Intelligence).

  <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>Although you can create IOC rules for detection, indicator rules are designed to leverage threat intelligence indicators like MD5 and SHA256 hashes that are present in your TIM library. These rules directly integrate with and rely on the indicators ingested and managed by TIM. Indicators must be in the TIM database before creating these rules.</p><p>For more information about IOC rules, see <a href="/spaces/AEIjuYE3RXcIfmuQnBbm/pages/OZlr3AecGMqM7aOpr7yL">What's an IOC?</a></p></div>

<details>

<summary>Create a Prevention Rule</summary>

Prevention Rules are created based on the file (SHA256 and MD5) indicator type.

1. Create a Restrictions Profile.
   1. Select **Inventory** → **Endpoints** → **Policy Management** → **Prevention** → **Profiles** → **Add Profile** → **Create New**.
   2. Select one of the following Platforms.
      * Windows
      * MacOS
      * Linx
   3. Select **Restrictions**.
   4. From the **Custom Indicator Prevention Rules** section, in the **Action Mode** field, select **Enabled**.

      You will see that there are no custom prevention rules defined. After you create an indicator rule, you will need to edit this profile and select the indicator rule.
   5. Add the parameters as required. For more information, see [Set up restrictions prevention profiles](/cortex-xsiam/protect-your-endpoints/endpoint-security/install-and-manage-endpoints/set-up-endpoint-protection/set-up-endpoint-profiles-and-exception-rules/set-up-restrictions-prevention-profiles.md).
   6. Create the Profile.
2. Create the Indicator Rule.
   1. Select Threat Management → **Detection Rules** → Indicator Rules → **Add Rule** → **Prevention Rule**.
   2. From the **Create New Prevention Rule** wizard, in the **General** section, add the following parameters:

      | Parameter                                       | Description                                                                                                                                                                                                                                |
      | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
      | Rule Name                                       | Add a meaningful name.                                                                                                                                                                                                                     |
      | Select Profiles for Prevention (To block files) | <p>Select the Retentions profile you created in step 1.</p><p>For the profile to appear, when defining the Retentions profile, the <strong>Custom Indicator Prevention Rules</strong> section must be set to <strong>Enabled</strong>.</p> |
      | Severity                                        | Defines the severity of the issue.                                                                                                                                                                                                         |
      | Description                                     | Add a meaningful description.                                                                                                                                                                                                              |
   3. Click Next.
   4. In the Target section, use the filters and/or select the file indicators to which to apply the rule.

      <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>You can't change the <strong>Preventable = True</strong>, <strong>Status = Active</strong> and <strong>Type = File</strong> filters, which comply with the requirements of the supported indicator type for Prevention on the Agent.</p></div>

      | Filter                 | Description                                                                        |
      | ---------------------- | ---------------------------------------------------------------------------------- |
      | Value                  | The hash value of the field (SHA256 or MD5).                                       |
      | Verdict                | The reputation of the indicator: Malicious, Suspicious, Benign, Unknown            |
      | Has Related Issues     | Whether the indicator has related issues.                                          |
      | Campaign               | Whether the indicator is part of an existing campaign.                             |
      | Mitre ID               | Mitre ID associated with the related issues.                                       |
      | Mitre Tactic           | Mitra Tactic associated with the related issues.                                   |
      | Tags                   | The tags applied to indicators.                                                    |
      | Confidence             | The level of confidence.                                                           |
      | Aggregated Reliability | The reliability score such as A - Completely reliable.                             |
      | Feed                   | The source (script, manual, etc.) that last set the indicator's expiration status. |
   5. Click Next and then save the rule.
3. Add the indicator rule to the Restrictions Profile.
   1. Go to **Inventory** → **Endpoints** → **Policy Management** → **Prevention** → **Profiles**.
   2. Edit the Restrictions Profile you created in step 1.
   3. In the **Custom Indicator Prevention Rules** tab, select the indicator rule you created in step 2.
   4. Save the Profile.

Example 192. Create a prevention rule blocking indicators from a feed

In this example, create an Indicator Prevention rule, which blocks file indicators using the Unit 42 Feed and then generates an issue.

Before you begin create a Restrictions Profile called `JC-Win-R-O1`, with the **Custom Indicator Prevention Rules** section set to **Enabled**.

1. Create a Prevention Indicator Rule and in the **General** section, add the following parameters.

   | Field                                                 | Value                                         |
   | ----------------------------------------------------- | --------------------------------------------- |
   | Rule Name                                             | JC-IR-Prevent-02                              |
   | Select Profiles For Prevention (To Block Their Files) | JC-WIN-R-01                                   |
   | Severity                                              | Medium                                        |
   | Description                                           | To raise prevention on IOCs from Unit 42 Feed |
2. In the **Target** Section, select the `Feed=Unit 42` filter.

   ![prevention-rule.png](/files/DaCB74BY39nxqmL5TrxI)
3. In the Restrictions Profile, add the indicator rule.

When a file indicator from Unit 42 feed is found, the XDR Agent blocks the indicator.

![indicator-rule-blocked.png](/files/T1OOw4Y7GNmoVuBoK9Yl)

An issue is generated in Cortex XSIAM. The Issue Source is **XDR Agent**, severity is **medium** and the Action is **Prevented (Blocked)**.

![indicator-rule-alert.png](/files/hEeoPomqBbmG9a1RaaTO)

{% hint style="info" %}

### Note

The Indicator Rule shows the number of issues generated by the rule. You can view the issues that were generated using the Indicator rule by right-clicking the rule and select **View related issues**.
{% endhint %}

</details>

<details>

<summary>Create a Detection rule</summary>

After you create a detection rule, Cortex XSIAM searches indicators in your tenant and raises an issue if a match is detected. Detection rules apply for File, Domain, and IP Address indicator types.

1. Select Threat Management → Detection Rules → Indicator Rules → **Add Rule** → **Detection Rule**.
2. From the **Create New Detection Rule** wizard, in the **General** section, add the following parameters:

   | Parameter   | Description                        |
   | ----------- | ---------------------------------- |
   | Rule Name   | Add a meaningful name.             |
   | Severity    | Defines the severity of the issue. |
   | Description | Add a meaningful description.      |
3. Click Next.
4. In the Target section, use the filters and/or select the file indicators to which to apply the rule.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><h3>Note</h3><p>You can't change the <strong>Detectable = True</strong> and <strong>Status = Active</strong> filters, which comply with the requirements of the supported indicator type for detection.</p></div>

   | Filter                 | Description                                                                        |
   | ---------------------- | ---------------------------------------------------------------------------------- |
   | Value                  | The hash value of the field (SHA256 or MD5), IP address, or domain.                |
   | Verdict                | The reputation of the indicator: Malicious, Suspicious, Benign, Unknown            |
   | Has Related Issues     | Whether the indicator has related issues.                                          |
   | Campaign               | Whether the indicator is part of an existing campaign.                             |
   | Mitre ID               | Mitre ID associated with the related issues.                                       |
   | Mitre Tactic           | Mitra Tactic associated with the related issues.                                   |
   | Tags                   | The tags applied to indicators.                                                    |
   | Confidence             | The level of confidence.                                                           |
   | Aggregated Reliability | The reliability score such as A - Completely reliable.                             |
   | Feed                   | The source (script, manual, etc.) that last set the indicator's expiration status. |
   | Type                   | The indicator type (Domain, File, IP)                                              |
5. Click Next and then save the rule.
6. If the indicator rule has generated issues, right-click the rule and select **View related issues**.

Example 193. Create a detection rule from feeds

In this example, create a detection rule from many feeds, such as Unit 42, AzureRiskyUsers, and Mail-Sender that returns a malicious verdict.

1. In the **General** section, add the following parameters.

   | Field       | Value                                                                              |
   | ----------- | ---------------------------------------------------------------------------------- |
   | Rule Name   | JC-IR-Prevent-01                                                                   |
   | Severity    | Medium                                                                             |
   | Description | To raise detection on all indicators uploaded from feeds with a malicious verdict. |
2. In the **Target** Section, select **Feed** (**Select All**) and **Verdict = Malicious**.

   ![indicator-rule-detection.png](/files/DGQZH4hwrEcVPBTr29GM)

When a malicious verdict is found from the feed, an issue is generated. The Issue Source is **Threat Intelligence**, severity is **medium** and the Action is **Detected**.

![indicator-rule-detection-alert.png](/files/LHzTmCY7kPrn4g1XQNyP)

{% hint style="info" %}

### Note

The Issue source is Threat Intelligence.
{% endhint %}

</details>

<details>

<summary>Manage Indicator Rules</summary>

The **Indicator Rules** page displays the following fields for each rule:

| Field                 | Description                                                       |
| --------------------- | ----------------------------------------------------------------- |
| **Rule ID**           | Unique identifier for the rule.                                   |
| **Creation Date**     | Timestamp of when the rule was created.                           |
| **Modification Date** | Timestamp when the rule was edited.                               |
| **Name**              | Name of the rule.                                                 |
| **Type**              | Whether the rule is a **Prevention** or **Detection** type rule.  |
| **Target**            | Hash, IP address, File, or domain value associated with the rule. |
| **Severity**          | Level of severity associated with the rule.                       |
| **# of issues**       | Number of issues generated by the rule.                           |
| **Created by**        | The email address of the user who created the rule.               |
| **Description**       | An optional description associated with the rule.                 |
| **Status**            | Whether the rule is **Enabled** or **Disabled**.                  |
| **Used in profiles**  | Cortex XDR agent Restriction Profile associated with the rule.    |

{% hint style="info" %}

### Note

If an indicator matches multiple indicator rules, the highest severity rule is used. If all have the same severity, the rules are used by the first created.
{% endhint %}

In the **Indicator Rules** table, right-click a rule to perform actions, including the following:

| Action                  | Description                                                          |
| ----------------------- | -------------------------------------------------------------------- |
| **View related issues** | View issues generated by the rule.                                   |
| **Disable/Enable**      | Depending on the current status, **Disable** or **Enable** the rule. |
| **Edit Rule**           | Modify the rule.                                                     |
| **Save as new**         | Create a new rule using the current rule configurations.             |
| **Delete**              | Delete the rule.                                                     |

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/cortex-xsiam/detect-investigate-and-respond-to-threats/threat-management/threat-intel-management/indicator-configuration/generate-issues-from-indicators-using-indicator-rules-for-prevention-and-detection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
