Guardian
| where PolicyViolatedControlFeature =~ 'PII Detection'
| where Severity =~ 'High'
kind: Scheduled
eventGroupingSettings:
  aggregationKind: SingleAlert
alertDetailsOverride:
  alertSeverityColumnName: Severity
  alertTacticsColumnName: 
  alertDisplayNameFormat: Guardian-  Privacy Protection PII Policy Violation detection
  alertDescriptionFormat: |
        This query detects Privacy Protection PII Policy Violation detected from the Guardian generated at {{TimeGenerated}}.\n\nPlease check the source for more information and investigate further
entityMappings:
- entityType: Host
  fieldMappings:
  - columnName: HostName
    identifier: HostName
  - columnName: NTDomain
    identifier: NTDomain
- entityType: IP
  fieldMappings:
  - columnName: SourceIP
    identifier: Address
description: |
    'This alert creates an incident when  Privacy Protection PII Policy Violation detected from the Guardian'
severity: High
queryFrequency: 1h
triggerThreshold: 0
relevantTechniques: []
status: Available
tactics: []
name: Guardian- Privacy Protection PII Policy Violation Detection
id: d5065600-617b-4a16-b58a-4a46da9c1afd
query: |
  Guardian
  | where PolicyViolatedControlFeature =~ 'PII Detection'
  | where Severity =~ 'High'  
requiredDataConnectors:
- dataTypes:
  - Guardian
  connectorId: BoschAIShield
version: 1.0.0
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/AIShield AI Security Monitoring/Analytic Rules/PrivacyProtectionPIIVulDetection.yaml
queryPeriod: 1h
{
  "$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/d5065600-617b-4a16-b58a-4a46da9c1afd')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/d5065600-617b-4a16-b58a-4a46da9c1afd')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDescriptionFormat": "This query detects Privacy Protection PII Policy Violation detected from the Guardian generated at {{TimeGenerated}}.\\n\\nPlease check the source for more information and investigate further\n",
          "alertDisplayNameFormat": "Guardian-  Privacy Protection PII Policy Violation detection",
          "alertSeverityColumnName": "Severity",
          "alertTacticsColumnName": null
        },
        "alertRuleTemplateName": "d5065600-617b-4a16-b58a-4a46da9c1afd",
        "customDetails": null,
        "description": "'This alert creates an incident when  Privacy Protection PII Policy Violation detected from the Guardian'\n",
        "displayName": "Guardian- Privacy Protection PII Policy Violation Detection",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Host",
            "fieldMappings": [
              {
                "columnName": "HostName",
                "identifier": "HostName"
              },
              {
                "columnName": "NTDomain",
                "identifier": "NTDomain"
              }
            ]
          },
          {
            "entityType": "IP",
            "fieldMappings": [
              {
                "columnName": "SourceIP",
                "identifier": "Address"
              }
            ]
          }
        ],
        "eventGroupingSettings": {
          "aggregationKind": "SingleAlert"
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/AIShield AI Security Monitoring/Analytic Rules/PrivacyProtectionPIIVulDetection.yaml",
        "query": "Guardian\n| where PolicyViolatedControlFeature =~ 'PII Detection'\n| where Severity =~ 'High'\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "High",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [],
        "techniques": [],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}