> 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-xdr-3.x/cortex-xdr-3.x-documentation/investigate-and-respond-to-incidents/investigate-alerts/triage-and-investigate-alerts/alert-deduplication.md).

# Alert deduplication

To optimize alert management and reduce noise, Cortex XDR employs a deduplication (dedup) mechanism for specific agent-based alerts.

**What is deduplication?**

Deduplication is the process of grouping identical security events that occur on the same endpoint within a specific timeframe. Instead of generating a new entry for every recurring instance of a threat, the system consolidates them into a single actionable alert.

**Scope and conditions**

Deduplication is strictly applied to alerts where the **alert\_name** contains **WildFire** or **Local Analysis**. All other alert types are processed individually and will not be deduped.

**The deduplication key**

The system generates a unique fingerprint or key for each incoming alert. If the key matches an existing active alert within the timeframe, the new event is deduped. The formula is as follows:

`{agent_id}_{alert_name}_{hash_id}_{action_status}_{name}_{trigger}`

Key components are resolved using a specific fallback hierarchy to ensure a match even if some data is missing:

| Component      | Resolution Logic (Fallback Order)                                               |
| -------------- | ------------------------------------------------------------------------------- |
| hash\_id       | `action_file_sha256 → action_process_image_sha256 → actor_process_image_sha256` |
| name           | `action_file_name → action_process_image_name → actor_process_image_name`       |
| action\_status | Appended only if `alert_action_status` is present (e.g., Blocked, Detected).    |
| trigger        | The prevention trigger value from `messageData.trigger` (if present).           |

{% hint style="info" %}

### Note

Alerts are automatically excluded from deduplication if the `agent_id` is missing, the `hash_id` is missing, or the `hash_id` is an all-zero SHA256 string.
{% endhint %}

**Time-to-live (TTL)**

The deduplication window is **1 hour**. This is a sliding window that starts from the ingestion of the first alert. Identical events arriving within this 60-minute buffer are suppressed; events arriving after the window expires will trigger a new alert.

**How to find deduplicated alerts**

Deduplicated alerts are often referred to as "hidden" alerts because they do not appear as unique new rows in the alert table. Instead, they are aggregated into the initial "Parent" alert instance.

**Locating suppressed events**

To identify if an alert was suppressed by the dedup logic, search for the primary alert using the following criteria within a **1-hour window before** the timestamp of the expected alert:

* **Agent ID:** Match the specific `agent_id` of the endpoint.
* **Alert Name:** Look for *Local Analysis Malware* or *WildFire Malware*.
* **File Identification (Hash):** Use the SHA256 hierarchy (Action File → Action Process → Actor Process).
* **File/Process Name:** Match the action\_file\_name or relevant process name.
* **Action Status:** Ensure the alert\_action\_status matches (if it was present on the event).

If you find an alert matching these criteria that occurred less than 60 minutes prior, the "missing" alert has been successfully deduped into that existing entry.


---

# 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-xdr-3.x/cortex-xdr-3.x-documentation/investigate-and-respond-to-incidents/investigate-alerts/triage-and-investigate-alerts/alert-deduplication.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.
