{
  "$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/f788b740-86af-46b2-b986-c059c5e5b908')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/f788b740-86af-46b2-b986-c059c5e5b908')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDescriptionFormat": "High-priority {{IntelligenceType}} match {{MatchUuid}} for {{DisplayValue}} is unacknowledged.",
          "alertDisplayNameFormat": "Netcraft DDW - unacknowledged high {{IntelligenceType}} ({{DisplayValue}})"
        },
        "alertRuleTemplateName": "f788b740-86af-46b2-b986-c059c5e5b908",
        "customDetails": {
          "Acknowledged": "Acknowledged",
          "GroupUuid": "GroupUuid",
          "MatchUuid": "MatchUuid",
          "TakedownEligible": "TakedownEligible"
        },
        "description": "Identifies high-priority Deep & Dark Web intelligence matches that are still unacknowledged (`Acknowledged == false`).\nUses NetcraftDdwIntelligence_Latest so the same MatchUuid alerts once per window.\n",
        "displayName": "Netcraft DDW Intelligence - Unacknowledged high priority",
        "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_UnacknowledgedHigh.yaml",
        "query": "NetcraftDdwIntelligence_Latest\n| where IngestedAt > ago(15m)\n| where Priority == \"high\"\n| where Acknowledged == false\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"
    }
  ]
}
