GitHubRepo
| where Action == "vulnerabilityAlert"
| project TimeGenerated, DismmisedAt, Reason, vulnerableManifestFilename, Description, Link, PublishedAt, Severity, Summary
queryFrequency: 1h
triggerThreshold: 0
name: GitHub Security Vulnerability in Repository
version: 1.0.2
id: 5436f471-b03d-41cb-b333-65891f887c43
entityMappings:
- entityType: URL
fieldMappings:
- columnName: Link
identifier: Url
queryPeriod: 1h
description: |
'This alerts when there is a new security vulnerability in a GitHub repository.'
requiredDataConnectors: []
query: |
GitHubRepo
| where Action == "vulnerabilityAlert"
| project TimeGenerated, DismmisedAt, Reason, vulnerableManifestFilename, Description, Link, PublishedAt, Severity, Summary
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/Security Vulnerability in Repo.yaml
triggerOperator: gt
kind: Scheduled
severity: Informational
{
"$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/5436f471-b03d-41cb-b333-65891f887c43')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/5436f471-b03d-41cb-b333-65891f887c43')]",
"properties": {
"alertRuleTemplateName": "5436f471-b03d-41cb-b333-65891f887c43",
"customDetails": null,
"description": "'This alerts when there is a new security vulnerability in a GitHub repository.'\n",
"displayName": "GitHub Security Vulnerability in Repository",
"enabled": true,
"entityMappings": [
{
"entityType": "URL",
"fieldMappings": [
{
"columnName": "Link",
"identifier": "Url"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GitHub/Analytic Rules/Security Vulnerability in Repo.yaml",
"query": "GitHubRepo\n| where Action == \"vulnerabilityAlert\"\n| project TimeGenerated, DismmisedAt, Reason, vulnerableManifestFilename, Description, Link, PublishedAt, Severity, Summary\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"severity": "Informational",
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"templateVersion": "1.0.2",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}