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