Back
Id87325835-dd8c-41e7-b686-fd5adbbd0aee
RulenameVectra Create Incident Based on Tag for Accounts
DescriptionCreate an incident when the account entity presents a specific tag. If the tag is present, an incident should be created and marked with highest priority.
SeverityHigh
TacticsPersistence
TechniquesT1546
Required data connectorsVectraXDR
KindScheduled
Query frequency10m
Query period10m
Trigger threshold0
Trigger operatorGreaterThan
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Vectra%20XDR/Analytic%20Rules/Create_Incident_Based_On_Tag_For_Account_Entity.yaml
Version1.1.0
Arm template87325835-dd8c-41e7-b686-fd5adbbd0aee.json
Deploy To Azure
Entities_Data_CL
| where entity_type == "account"
| extend Tags = todynamic(tags)
| where set_has_element(Tags, "MDR - Customer Escalation")
| summarize arg_max(['last_modified_timestamp'], *) by ['name']
suppressionDuration: PT1H
name: Vectra Create Incident Based on Tag for Accounts
suppressionEnabled: false
triggerOperator: GreaterThan
kind: Scheduled
queryFrequency: 10m
description: Create an incident when the account entity presents a specific tag. If the tag is present, an incident should be created and marked with highest priority.
id: 87325835-dd8c-41e7-b686-fd5adbbd0aee
triggerThreshold: 0
queryPeriod: 10m
query: |
  Entities_Data_CL
  | where entity_type == "account"
  | extend Tags = todynamic(tags)
  | where set_has_element(Tags, "MDR - Customer Escalation")
  | summarize arg_max(['last_modified_timestamp'], *) by ['name']
version: 1.1.0
customDetails:
  tags: tags
  ip_address: ip
  entity_id: id
  attack_profile: attack_profile
  entity_type: entity_type
status: Available
eventGroupingSettings:
  aggregationKind: AlertPerResult
severity: High
requiredDataConnectors:
- connectorId: VectraXDR
  dataTypes:
  - Entities_Data_CL
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Vectra%20XDR/Analytic%20Rules/Create_Incident_Based_On_Tag_For_Account_Entity.yaml
incidentConfiguration:
  groupingConfiguration:
    groupByAlertDetails:
    - DisplayName
    lookbackDuration: P7D
    enabled: true
    reopenClosedIncident: false
    matchingMethod: AllEntities
    groupByEntities:
    - Account
  createIncident: true
alertDetailsOverride:
  alertDescriptionFormat: An incident has been escalated for Vectra AI entity {{name}} that is presenting an urgency score of {{urgency_score}}
  alertDisplayNameFormat: Vectra AI Incident- {{name}}
relevantTechniques:
- T1546
tactics:
- Persistence
entityMappings:
- fieldMappings:
  - identifier: Name
    columnName: name
  entityType: Account
{
  "$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/87325835-dd8c-41e7-b686-fd5adbbd0aee')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/87325835-dd8c-41e7-b686-fd5adbbd0aee')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDescriptionFormat": "An incident has been escalated for Vectra AI entity {{name}} that is presenting an urgency score of {{urgency_score}}",
          "alertDisplayNameFormat": "Vectra AI Incident- {{name}}"
        },
        "alertRuleTemplateName": "87325835-dd8c-41e7-b686-fd5adbbd0aee",
        "customDetails": {
          "attack_profile": "attack_profile",
          "entity_id": "id",
          "entity_type": "entity_type",
          "ip_address": "ip",
          "tags": "tags"
        },
        "description": "Create an incident when the account entity presents a specific tag. If the tag is present, an incident should be created and marked with highest priority.",
        "displayName": "Vectra Create Incident Based on Tag for Accounts",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "name",
                "identifier": "Name"
              }
            ]
          }
        ],
        "eventGroupingSettings": {
          "aggregationKind": "AlertPerResult"
        },
        "incidentConfiguration": {
          "createIncident": true,
          "groupingConfiguration": {
            "enabled": true,
            "groupByAlertDetails": [
              "DisplayName"
            ],
            "groupByEntities": [
              "Account"
            ],
            "lookbackDuration": "P7D",
            "matchingMethod": "AllEntities",
            "reopenClosedIncident": false
          }
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Vectra%20XDR/Analytic%20Rules/Create_Incident_Based_On_Tag_For_Account_Entity.yaml",
        "query": "Entities_Data_CL\n| where entity_type == \"account\"\n| extend Tags = todynamic(tags)\n| where set_has_element(Tags, \"MDR - Customer Escalation\")\n| summarize arg_max(['last_modified_timestamp'], *) by ['name']\n",
        "queryFrequency": "PT10M",
        "queryPeriod": "PT10M",
        "severity": "High",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Persistence"
        ],
        "techniques": [
          "T1546"
        ],
        "templateVersion": "1.1.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}