Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Cortex XDR Incident - Medium

Back
Id2b05823b-ee15-4b92-a642-b13170e37c35
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 connectorsCortexXDR
KindScheduled
Query frequency5m
Query period5m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Cortex XDR/Analytic Rules/CortexXDR_Medium.yaml
Version1.0.0
Arm template2b05823b-ee15-4b92-a642-b13170e37c35.json
Deploy To Azure
CortexXDR_Incidents_CL
| where severity_s contains "medium"
| where status_s !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 host_count_d > 0 or user_count_d > 0
| project TimeGenerated, incident_id_s, status_s, severity_s, incident_sources_s, description_s, xdr_url_s, hosts_s, users_s, alert_categories_s, host_count_d, user_count_d, alert_count_d, creation_time_d, modification_time_d
queryFrequency: 5m
description: |
    'A new incident was created in the Cortex XDR portal with a severity "Medium". Click on the events for incident details. '
customDetails: 
severity: Medium
version: 1.0.0
relevantTechniques: []
incidentConfiguration:
  groupingConfiguration:
    reopenClosedIncident: false
    matchingMethod: AllEntities
    enabled: true
    lookbackDuration: 5h
  createIncident: true
suppressionDuration: 5h
name: Cortex XDR Incident - Medium
triggerThreshold: 0
eventGroupingSettings:
  aggregationKind: SingleAlert
query: |
  CortexXDR_Incidents_CL
  | where severity_s contains "medium"
  | where status_s !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 host_count_d > 0 or user_count_d > 0
  | project TimeGenerated, incident_id_s, status_s, severity_s, incident_sources_s, description_s, xdr_url_s, hosts_s, users_s, alert_categories_s, host_count_d, user_count_d, alert_count_d, creation_time_d, modification_time_d  
sentinelEntitiesMappings: 
alertDetailsOverride: 
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Cortex XDR/Analytic Rules/CortexXDR_Medium.yaml
requiredDataConnectors:
- connectorId: CortexXDR
  dataTypes:
  - CortexXDR_Incidents_CL
kind: Scheduled
tactics: []
suppressionEnabled: false
id: 2b05823b-ee15-4b92-a642-b13170e37c35
queryPeriod: 5m
entityMappings:
- fieldMappings:
  - columnName: users_s
    identifier: Name
  entityType: Account
- fieldMappings:
  - columnName: xdr_url_s
    identifier: Url
  entityType: URL
- fieldMappings:
  - columnName: hosts_s
    identifier: HostName
  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/2b05823b-ee15-4b92-a642-b13170e37c35')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/2b05823b-ee15-4b92-a642-b13170e37c35')]",
      "properties": {
        "alertDetailsOverride": null,
        "alertRuleTemplateName": "2b05823b-ee15-4b92-a642-b13170e37c35",
        "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": "xdr_url_s",
                "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/Cortex XDR/Analytic Rules/CortexXDR_Medium.yaml",
        "query": "CortexXDR_Incidents_CL\n| where severity_s contains \"medium\"\n| where status_s !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 host_count_d > 0 or user_count_d > 0\n| project TimeGenerated, incident_id_s, status_s, severity_s, incident_sources_s, description_s, xdr_url_s, hosts_s, users_s, alert_categories_s, host_count_d, user_count_d, alert_count_d, creation_time_d, modification_time_d\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"
    }
  ]
}