Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Code Repository

Back
Idda2059f5-8463-49d5-a6dc-22597fd9ce66
RulenameCode Repository
DescriptionNew code_repository with severity FYI foun
SeverityInformational
Required data connectorsCBSPollingIDAzureFunctions
KindScheduled
Query frequency5m
Query period5m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CTM360/Analytic Rules/CodeRepository.yaml
Version1.0.1
Arm templateda2059f5-8463-49d5-a6dc-22597fd9ce66.json
Deploy To Azure
CBSLog_Azure_1_CL | where severity_s == "Informational" | where type_s == "Code Repository" | where status_s != "Closed" or status_s != "Resolved" | where remarks_s == "New code_repository with severity FYI found"
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CTM360/Analytic Rules/CodeRepository.yaml
requiredDataConnectors:
- connectorId: CBSPollingIDAzureFunctions
  dataTypes:
  - CBSLog_Azure_1_CL
suppressionEnabled: false
query: |
    CBSLog_Azure_1_CL | where severity_s == "Informational" | where type_s == "Code Repository" | where status_s != "Closed" or status_s != "Resolved" | where remarks_s == "New code_repository with severity FYI found"
incidentConfiguration:
  groupingConfiguration:
    reopenClosedIncident: false
    groupByAlertDetails: []
    matchingMethod: AllEntities
    lookbackDuration: PT5H
    groupByEntities: []
    enabled: false
    groupByCustomDetails: []
  createIncident: true
id: da2059f5-8463-49d5-a6dc-22597fd9ce66
severity: Informational
queryFrequency: 5m
eventGroupingSettings:
  aggregationKind: SingleAlert
suppressionDuration: 5h
triggerThreshold: 0
description: |
    'New code_repository with severity FYI foun'
status: Available
name: Code Repository
version: 1.0.1
entityMappings:
- fieldMappings:
  - identifier: Url
    columnName: subject_s
  entityType: URL
kind: Scheduled
triggerOperator: gt
queryPeriod: 5m
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2023-02-01-preview",
      "id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/da2059f5-8463-49d5-a6dc-22597fd9ce66')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/da2059f5-8463-49d5-a6dc-22597fd9ce66')]",
      "properties": {
        "alertRuleTemplateName": "da2059f5-8463-49d5-a6dc-22597fd9ce66",
        "customDetails": null,
        "description": "'New code_repository with severity FYI foun'\n",
        "displayName": "Code Repository",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "URL",
            "fieldMappings": [
              {
                "columnName": "subject_s",
                "identifier": "Url"
              }
            ]
          }
        ],
        "eventGroupingSettings": {
          "aggregationKind": "SingleAlert"
        },
        "incidentConfiguration": {
          "createIncident": true,
          "groupingConfiguration": {
            "enabled": false,
            "groupByAlertDetails": [],
            "groupByCustomDetails": [],
            "groupByEntities": [],
            "lookbackDuration": "PT5H",
            "matchingMethod": "AllEntities",
            "reopenClosedIncident": false
          }
        },
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CTM360/Analytic Rules/CodeRepository.yaml",
        "query": "CBSLog_Azure_1_CL | where severity_s == \"Informational\" | where type_s == \"Code Repository\" | where status_s != \"Closed\" or status_s != \"Resolved\" | where remarks_s == \"New code_repository with severity FYI found\"\n",
        "queryFrequency": "PT5M",
        "queryPeriod": "PT5M",
        "severity": "Informational",
        "status": "Available",
        "suppressionDuration": "PT5H",
        "suppressionEnabled": false,
        "templateVersion": "1.0.1",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}