Back
Id90f50a0b-6903-4ddc-adcc-c13ebb77ffa7
RulenameGuardian- Code Detection Policy Violation Detection
DescriptionThis alert creates an incident when Code Detection Policy Violation detected from the Guardian.
SeverityLow
Required data connectorsBoschAIShield
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/AIShield%20AI%20Security%20Monitoring/Analytic%20Rules/CodeDetectionVulDetection.yaml
Version1.0.0
Arm template90f50a0b-6903-4ddc-adcc-c13ebb77ffa7.json
Deploy To Azure
Guardian
| where PolicyViolatedControlFeature =~ 'Code Detection'
| where Severity =~ 'Low'
kind: Scheduled
id: 90f50a0b-6903-4ddc-adcc-c13ebb77ffa7
relevantTechniques: []
queryPeriod: 1h
triggerThreshold: 0
version: 1.0.0
name: Guardian- Code Detection Policy Violation Detection
alertDetailsOverride:
  alertTacticsColumnName: 
  alertDisplayNameFormat: Guardian- Code Detection Policy Violation detection
  alertSeverityColumnName: Severity
  alertDescriptionFormat: |
    This query detects Code Detection Policy Violation detected from the Guardian generated at {{TimeGenerated}}.\n\nPlease check the source for more information and investigate further.
status: Available
entityMappings:
- fieldMappings:
  - columnName: HostName
    identifier: HostName
  - columnName: NTDomain
    identifier: NTDomain
  entityType: Host
- fieldMappings:
  - columnName: SourceIP
    identifier: Address
  entityType: IP
severity: Low
triggerOperator: gt
description: |
  'This alert creates an incident when Code Detection Policy Violation detected from the Guardian.'
tactics: []
eventGroupingSettings:
  aggregationKind: SingleAlert
query: |
  Guardian
  | where PolicyViolatedControlFeature =~ 'Code Detection'
  | where Severity =~ 'Low'
queryFrequency: 1h
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/AIShield%20AI%20Security%20Monitoring/Analytic%20Rules/CodeDetectionVulDetection.yaml
requiredDataConnectors:
- connectorId: BoschAIShield
  dataTypes:
  - Guardian
{
  "$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/90f50a0b-6903-4ddc-adcc-c13ebb77ffa7')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/90f50a0b-6903-4ddc-adcc-c13ebb77ffa7')]",
      "properties": {
        "alertDetailsOverride": {
          "alertDescriptionFormat": "This query detects Code Detection Policy Violation detected from the Guardian generated at {{TimeGenerated}}.\\n\\nPlease check the source for more information and investigate further.\n",
          "alertDisplayNameFormat": "Guardian- Code Detection Policy Violation detection",
          "alertSeverityColumnName": "Severity",
          "alertTacticsColumnName": null
        },
        "alertRuleTemplateName": "90f50a0b-6903-4ddc-adcc-c13ebb77ffa7",
        "customDetails": null,
        "description": "'This alert creates an incident when Code Detection Policy Violation detected from the Guardian.'\n",
        "displayName": "Guardian- Code Detection 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%20AI%20Security%20Monitoring/Analytic%20Rules/CodeDetectionVulDetection.yaml",
        "query": "Guardian\n| where PolicyViolatedControlFeature =~ 'Code Detection'\n| where Severity =~ 'Low'\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Low",
        "status": "Available",
        "subTechniques": [],
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [],
        "techniques": [],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}