CBSLog_Azure_1_CL | where severity_s == "High" | where type_s == "Code Repository" | where status_s != "Closed" or status_s != "Resolved"
requiredDataConnectors:
- connectorId: CBSPollingIDAzureFunctions
dataTypes:
- CBSLog_Azure_1_CL
tactics:
- Collection
incidentConfiguration:
createIncident: true
groupingConfiguration:
enabled: false
lookbackDuration: PT5H
matchingMethod: AllEntities
reopenClosedIncident: false
description: New Code Repository with severity High found
query: CBSLog_Azure_1_CL | where severity_s == "High" | where type_s == "Code Repository" | where status_s != "Closed" or status_s != "Resolved"
id: 7505ed8a-b08f-4811-830a-dc46998aedee
triggerOperator: gt
eventGroupingSettings:
aggregationKind: SingleAlert
relevantTechniques:
- T1119
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CTM360/Analytic Rules/code_repository_high.yaml
queryFrequency: 5m
severity: High
name: Code Repository (High)
suppressionEnabled: false
suppressionDuration: 5h
queryPeriod: 5m
kind: Scheduled
triggerThreshold: 0
version: 1.0.0
status: Available
{
"$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/7505ed8a-b08f-4811-830a-dc46998aedee')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/7505ed8a-b08f-4811-830a-dc46998aedee')]",
"properties": {
"alertRuleTemplateName": "7505ed8a-b08f-4811-830a-dc46998aedee",
"customDetails": null,
"description": "New Code Repository with severity High found",
"displayName": "Code Repository (High)",
"enabled": true,
"entityMappings": null,
"eventGroupingSettings": {
"aggregationKind": "SingleAlert"
},
"incidentConfiguration": {
"createIncident": true,
"groupingConfiguration": {
"enabled": false,
"lookbackDuration": "PT5H",
"matchingMethod": "AllEntities",
"reopenClosedIncident": false
}
},
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CTM360/Analytic Rules/code_repository_high.yaml",
"query": "CBSLog_Azure_1_CL | where severity_s == \"High\" | where type_s == \"Code Repository\" | where status_s != \"Closed\" or status_s != \"Resolved\"",
"queryFrequency": "PT5M",
"queryPeriod": "PT5M",
"severity": "High",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT5H",
"suppressionEnabled": false,
"tactics": [
"Collection"
],
"techniques": [
"T1119"
],
"templateVersion": "1.0.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}