{
  "$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/cf6a7b8c-9d0e-4f1a-2b3c-4d5e6f7a8b9c')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/cf6a7b8c-9d0e-4f1a-2b3c-4d5e6f7a8b9c')]",
      "properties": {
        "alertRuleTemplateName": "cf6a7b8c-9d0e-4f1a-2b3c-4d5e6f7a8b9c",
        "customDetails": null,
        "description": "The PQC Engine policy engine upgraded the cipher selection for one or more TLS handshakes.\nThis occurs when the engine is in enforce mode and the initial negotiation would have used a\nweaker algorithm than the policy allows. The engine intervened to select a stronger (typically\nPQ-hybrid) algorithm. This is an expected and positive signal when enforcement is enabled.\n",
        "displayName": "PQC Engine policy upgraded cipher selection",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Host",
            "fieldMappings": [
              {
                "columnName": "Hostname",
                "identifier": "HostName"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/QCryptonPQCEngine/Analytic%20Rules/PolicyUpgradeActivity.yaml",
        "query": "PQCEngine_CL\n| where TimeGenerated > ago(1d)\n| where EventType == \"policy_upgrade\"\n| summarize UpgradeCount = count(), Algorithms = make_set(Algorithm, 10) by Hostname, InstanceId\n| project Hostname, InstanceId, UpgradeCount, Algorithms\n| order by UpgradeCount desc\n",
        "queryFrequency": "P1D",
        "queryPeriod": "P1D",
        "severity": "Informational",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "DefenseEvasion"
        ],
        "techniques": [
          "T1600"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}
