{
  "$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/114e0c34-5e32-42a8-a0fc-3e3c8291bee9')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/114e0c34-5e32-42a8-a0fc-3e3c8291bee9')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDescriptionFormat": "High-priority {{IntelligenceType}} match {{MatchUuid}} for {{DisplayValue}}. See custom details for group and acknowledgement.",
          "alertDisplayNameFormat": "Netcraft DDW - {{Priority}} {{IntelligenceType}} ({{DisplayValue}})"
        },
        "alertRuleTemplateName": "114e0c34-5e32-42a8-a0fc-3e3c8291bee9",
        "customDetails": {
          "Acknowledged": "Acknowledged",
          "GroupUuid": "GroupUuid",
          "MatchUuid": "MatchUuid",
          "TakedownEligible": "TakedownEligible"
        },
        "description": "Identifies Deep & Dark Web intelligence matches with Priority of high.\nUses NetcraftDdwIntelligence_Latest so the same MatchUuid alerts once per window.\n",
        "displayName": "Netcraft DDW Intelligence - High priority match",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "URL",
            "fieldMappings": [
              {
                "columnName": "Url",
                "identifier": "Url"
              }
            ]
          }
        ],
        "eventGroupingSettings": {
          "aggregationKind": "AlertPerResult"
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/NetcraftIntegrationGateway/Analytic%20Rules/NetcraftDdwIntelligence_HighPriority.yaml",
        "query": "NetcraftDdwIntelligence_Latest\n| where IngestedAt > ago(15m)\n| where Priority == \"high\"\n| project\n    TimeGenerated,\n    EventId,\n    MatchUuid,\n    GroupUuid,\n    Subject,\n    IntelligenceType,\n    DisplayValue,\n    Priority,\n    Acknowledged,\n    TakedownEligible,\n    MatchSource,\n    Url,\n    DdwUrl,\n    Rule\n",
        "queryFrequency": "PT15M",
        "queryPeriod": "PT4H",
        "severity": "High",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "CredentialAccess",
          "Reconnaissance"
        ],
        "techniques": [
          "T1552",
          "T1597"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}
