Back
Id2e638f3d-611f-4281-81b1-1fd4aa240ffb
RulenameCortex XDR Incident - Medium
DescriptionA new incident was created in the Cortex XDR portal with a severity “Medium”. Click on the events for incident details.
SeverityMedium
Required data connectorsCortexXDRDataConnector
KindScheduled
Query frequency5m
Query period5m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Palo%20Alto%20Cortex%20XDR/Analytic%20Rules/PaloAltoCortexXDR_Medium.yaml
Version1.0.0
Arm template2e638f3d-611f-4281-81b1-1fd4aa240ffb.json
Deploy To Azure
PaloAltoCortexXDR_Incidents
| where Severity contains "medium"
| 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
suppressionDuration: 5h
name: Cortex XDR Incident - Medium
suppressionEnabled: false
triggerOperator: gt
query: |
  PaloAltoCortexXDR_Incidents
  | where Severity contains "medium"
  | 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
queryFrequency: 5m
description: |
  'A new incident was created in the Cortex XDR portal with a severity "Medium". Click on the events for incident details. '
id: 2e638f3d-611f-4281-81b1-1fd4aa240ffb
triggerThreshold: 0
queryPeriod: 5m
version: 1.0.0
kind: Scheduled
customDetails: 
requiredDataConnectors:
- connectorId: CortexXDRDataConnector
  dataTypes:
  - PaloAltoCortexXDR_Incidents_CL
eventGroupingSettings:
  aggregationKind: SingleAlert
severity: Medium
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Palo%20Alto%20Cortex%20XDR/Analytic%20Rules/PaloAltoCortexXDR_Medium.yaml
incidentConfiguration:
  groupingConfiguration:
    lookbackDuration: PT5H
    reopenClosedIncident: false
    matchingMethod: AllEntities
    enabled: true
  createIncident: true
alertDetailsOverride: 
sentinelEntitiesMappings: 
relevantTechniques: []
tactics: []
entityMappings:
- fieldMappings:
  - identifier: Name
    columnName: Users_s
  entityType: Account
- fieldMappings:
  - identifier: Url
    columnName: XdrUrl
  entityType: URL
- fieldMappings:
  - identifier: HostName
    columnName: Hosts_s
  entityType: Host
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2024-01-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/2e638f3d-611f-4281-81b1-1fd4aa240ffb')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/2e638f3d-611f-4281-81b1-1fd4aa240ffb')]",
      "properties": {
        "alertDetailsOverride": null,
        "alertRuleTemplateName": "2e638f3d-611f-4281-81b1-1fd4aa240ffb",
        "customDetails": null,
        "description": "'A new incident was created in the Cortex XDR portal with a severity \"Medium\". Click on the events for incident details. '\n",
        "displayName": "Cortex XDR Incident - Medium",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "Users_s",
                "identifier": "Name"
              }
            ]
          },
          {
            "entityType": "URL",
            "fieldMappings": [
              {
                "columnName": "XdrUrl",
                "identifier": "Url"
              }
            ]
          },
          {
            "entityType": "Host",
            "fieldMappings": [
              {
                "columnName": "Hosts_s",
                "identifier": "HostName"
              }
            ]
          }
        ],
        "eventGroupingSettings": {
          "aggregationKind": "SingleAlert"
        },
        "incidentConfiguration": {
          "createIncident": true,
          "groupingConfiguration": {
            "enabled": true,
            "lookbackDuration": "PT5H",
            "matchingMethod": "AllEntities",
            "reopenClosedIncident": false
          }
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Palo%20Alto%20Cortex%20XDR/Analytic%20Rules/PaloAltoCortexXDR_Medium.yaml",
        "query": "PaloAltoCortexXDR_Incidents\n| where Severity contains \"medium\"\n| where Status !contains \"resolved_auto\"\n// 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\n| where HostCount > 0 or UserCount > 0\n| extend Hosts_s = tostring(Hosts), Users_s = tostring(Users)\n| project TimeGenerated, IncidentId, Status, Severity, IncidentSources, Description, XdrUrl, Hosts_s, Users_s, AlertCategories, HostCount, UserCount, AlertCount, CreationTime, ModificationTime\n",
        "queryFrequency": "PT5M",
        "queryPeriod": "PT5M",
        "sentinelEntitiesMappings": null,
        "severity": "Medium",
        "subTechniques": [],
        "suppressionDuration": "PT5H",
        "suppressionEnabled": false,
        "tactics": [],
        "techniques": [],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}