Detection rules › Kusto

Cortex XDR Incident - High

Severity
high
Time window
5m
Source
github.com/Azure/Azure-Sentinel

'A new incident was created in the Cortex XDR portal with a severity "High". Click on the events for incident details. '

Rule body

id: 06263265-ff65-43ff-8b15-6ac82325a672
name: Cortex XDR Incident - High
description: |
  'A new incident was created in the Cortex XDR portal with a severity "High". Click on the events for incident details. '
severity: High
requiredDataConnectors:
  - connectorId: CortexXDRDataConnector
    dataTypes:
      - PaloAltoCortexXDR_Incidents_CL
queryFrequency: 5m
queryPeriod: 5m
triggerOperator: gt
triggerThreshold: 0
suppressionDuration: 5h
suppressionEnabled: false
tactics: []
relevantTechniques: []
incidentConfiguration:
  createIncident: true
  groupingConfiguration:
    enabled: true
    reopenClosedIncident: false
    lookbackDuration: PT5H
    matchingMethod: AllEntities
eventGroupingSettings:
  aggregationKind: SingleAlert
alertDetailsOverride: null
customDetails: null
entityMappings:
  - entityType: Account
    fieldMappings:
      - identifier: Name
        columnName: Users_s
  - entityType: URL
    fieldMappings:
      - identifier: Url
        columnName: XdrUrl
  - entityType: Host
    fieldMappings:
      - identifier: HostName
        columnName: Hosts_s
sentinelEntitiesMappings: null
query: |
  PaloAltoCortexXDR_Incidents
  | where Severity contains "high"
  | where Status !contains "resolved_auto"
  // the below line filters for incidents that has at least one user or one host in it. Comment the below line if you want to generated incidents that have 0 user or 0 host as well
  | where HostCount > 0 or UserCount > 0
  | extend Hosts_s = tostring(Hosts), Users_s = tostring(Users)
  | project TimeGenerated, IncidentId, Status, Severity, IncidentSources, Description, XdrUrl, Hosts_s, Users_s, AlertCategories, HostCount, UserCount, AlertCount, CreationTime, ModificationTime
version: 1.0.0
kind: Scheduled

Stages and Predicates

Stage 1: source

PaloAltoCortexXDR_Incidents

Stage 2: where

| where Severity contains "high"

Stage 3: where

| where Status !contains "resolved_auto"

Stage 4: where

| where HostCount > 0 or UserCount > 0

Stage 5: extend

| extend Hosts_s = tostring(Hosts), Users_s = tostring(Users)

Stage 6: project

| project TimeGenerated, IncidentId, Status, Severity, IncidentSources, Description, XdrUrl, Hosts_s, Users_s, AlertCategories, HostCount, UserCount, AlertCount, CreationTime, ModificationTime

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
Statuscontainsresolved_autoexcludes:Status field:"Status" value:"resolved_auto"

Indicators

These rows show field, operator, and value matches.

Output fields

These fields are emitted when the rule matches.

FieldSource
AlertCategoriesproject
AlertCountproject
CreationTimeproject
Descriptionproject
HostCountproject
Hosts_sproject
IncidentIdproject
IncidentSourcesproject
ModificationTimeproject
Severityproject
Statusproject
TimeGeneratedproject
UserCountproject
Users_sproject
XdrUrlproject