{
  "$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/d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a')]",
      "properties": {
        "alertRuleTemplateName": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f8a",
        "customDetails": null,
        "description": "A network appliance has been confirmed as post-quantum ready. This may indicate a QCrypton PQC\nEngine deployment on F5 BIG-IP, a hybrid key exchange (X25519MLKEM768) negotiation, or an\nML-DSA/ML-KEM certificate in use. This is a positive signal -- the appliance is protected against\nharvest-now-decrypt-later attacks.\n",
        "displayName": "PQC-ready appliance detected -- quantum-safe posture confirmed",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Host",
            "fieldMappings": [
              {
                "columnName": "ResourceName",
                "identifier": "HostName"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/QCryptonPQCScannerAgent/Analytic%20Rules/AppliancePQCReadyDetected.yaml",
        "query": "PQReadiness_CL\n| where TimeGenerated > ago(1d)\n| where QuantumPosture == \"compliant\"\n| where Metadata contains \"pqc_hybrid_key_exchange\"\n    or Metadata contains \"f5_pqc_engine_active\"\n    or Metadata contains \"f5_cert_pqc_ready\"\n    or Metadata contains \"pqc_cert_ready\"\n| project TimeGenerated, ResourceName, ResourceType, AssetIdentifier, Algorithm, PostureReason, SubscriptionId, ResourceGroup\n",
        "queryFrequency": "P1D",
        "queryPeriod": "P1D",
        "severity": "Informational",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "DefenseEvasion"
        ],
        "techniques": [
          "T1600"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}
