GitHubAuditData
| where Action == "org.block_user"
| project Actor, Action
| extend AccountCustomEntity = Actor
version: 1.0.0
name: (Preview) GitHub - User was blocked
severity: Medium
queryFrequency: 1d
kind: Scheduled
queryPeriod: 7d
description: |
'Detect activities when a user was blocked on the repository. This query runs every day and its severity is Medium.'
query: |
GitHubAuditData
| where Action == "org.block_user"
| project Actor, Action
| extend AccountCustomEntity = Actor
tactics:
- InitialAccess
triggerOperator: gt
entityMappings:
- entityType: Account
fieldMappings:
- columnName: AccountCustomEntity
identifier: FullName
triggerThreshold: 0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/(Preview) GitHub - User was blocked.yaml
requiredDataConnectors: []
status: Available
relevantTechniques:
- T1078
id: 0b85a077-8ba5-4cb5-90f7-1e882afe10c8
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/0b85a077-8ba5-4cb5-90f7-1e882afe10c8')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/0b85a077-8ba5-4cb5-90f7-1e882afe10c8')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "(Preview) GitHub - User was blocked",
"description": "'Detect activities when a user was blocked on the repository. This query runs every day and its severity is Medium.'\n",
"severity": "Medium",
"enabled": true,
"query": "GitHubAuditData\n| where Action == \"org.block_user\"\n| project Actor, Action \n| extend AccountCustomEntity = Actor\n",
"queryFrequency": "P1D",
"queryPeriod": "P7D",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1078"
],
"alertRuleTemplateName": "0b85a077-8ba5-4cb5-90f7-1e882afe10c8",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"columnName": "AccountCustomEntity",
"identifier": "FullName"
}
],
"entityType": "Account"
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/(Preview) GitHub - User was blocked.yaml",
"templateVersion": "1.0.0",
"status": "Available"
}
}
]
}