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

Preview GitHub - pull request was merged

Back
Id0b85a077-8ba5-4cb5-90f7-1e882afe10c6
Rulename(Preview) GitHub - pull request was merged
DescriptionDetect activities when a pull request was merged. This query runs every day and its severity is Medium.
SeverityMedium
TacticsInitialAccess
TechniquesT1078
KindScheduled
Query frequency1d
Query period7d
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/(Preview) GitHub - pull request was merged.yaml
Version1.0.0
Arm template0b85a077-8ba5-4cb5-90f7-1e882afe10c6.json
Deploy To Azure
GitHubAuditData
| where Action == "pull_request.merge"
| project Actor, Action
| extend AccountCustomEntity = Actor
kind: Scheduled
status: Available
triggerThreshold: 0
relevantTechniques:
- T1078
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/(Preview) GitHub - pull request was merged.yaml
requiredDataConnectors: []
queryPeriod: 7d
tactics:
- InitialAccess
severity: Medium
triggerOperator: gt
description: |
    'Detect activities when a pull request was merged. This query runs every day and its severity is Medium.'
query: |
  GitHubAuditData
  | where Action == "pull_request.merge"
  | project Actor, Action
  | extend AccountCustomEntity = Actor  
name: (Preview) GitHub - pull request was merged
version: 1.0.0
id: 0b85a077-8ba5-4cb5-90f7-1e882afe10c6
queryFrequency: 1d
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: AccountCustomEntity
    identifier: FullName
{
  "$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/0b85a077-8ba5-4cb5-90f7-1e882afe10c6')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/0b85a077-8ba5-4cb5-90f7-1e882afe10c6')]",
      "properties": {
        "alertRuleTemplateName": "0b85a077-8ba5-4cb5-90f7-1e882afe10c6",
        "customDetails": null,
        "description": "'Detect activities when a pull request was merged. This query runs every day and its severity is Medium.'\n",
        "displayName": "(Preview) GitHub - pull request was merged",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "FullName"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/(Preview) GitHub - pull request was merged.yaml",
        "query": "GitHubAuditData\n| where Action == \"pull_request.merge\"\n| project Actor, Action\n| extend AccountCustomEntity = Actor\n",
        "queryFrequency": "P1D",
        "queryPeriod": "P7D",
        "severity": "Medium",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "InitialAccess"
        ],
        "techniques": [
          "T1078"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}