let threshold = 10;
QualysHostDetection_CL
| mv-expand todynamic(Detections_s)
| where Detections_s.Severity == "5"
| summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated), count() by NetBios_s, IPAddress
| where count_ >= threshold
| extend timestamp = StartTime, HostCustomEntity = NetBios_s, IPCustomEntity = IPAddress
triggerOperator: gt
version: 1.0.2
query: |
let threshold = 10;
QualysHostDetection_CL
| mv-expand todynamic(Detections_s)
| where Detections_s.Severity == "5"
| summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated), count() by NetBios_s, IPAddress
| where count_ >= threshold
| extend timestamp = StartTime, HostCustomEntity = NetBios_s, IPCustomEntity = IPAddress
entityMappings:
- entityType: Host
fieldMappings:
- columnName: HostCustomEntity
identifier: FullName
- entityType: IP
fieldMappings:
- columnName: IPCustomEntity
identifier: Address
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Detections/QualysVM/HighNumberofVulnDetected.yaml
queryFrequency: 1h
requiredDataConnectors:
- connectorId: QualysVulnerabilityManagement
dataTypes:
- QualysHostDetection_CL
metadata:
source:
kind: Community
author:
name: chicduong
categories:
domains:
- Security - Threat Intelligence
support:
tier: Community
name: High Number of Urgent Vulnerabilities Detected
queryPeriod: 1h
severity: Medium
kind: Scheduled
tactics:
- InitialAccess
id: be52662c-3b23-435a-a6fa-f39bdfc849e6
description: |
'This Creates an incident when a host has a high number of Urgent, severity 5, vulnerabilities detected.'
relevantTechniques:
- T1190
triggerThreshold: 0
{
"$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/be52662c-3b23-435a-a6fa-f39bdfc849e6')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/be52662c-3b23-435a-a6fa-f39bdfc849e6')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01-preview",
"properties": {
"displayName": "High Number of Urgent Vulnerabilities Detected",
"description": "'This Creates an incident when a host has a high number of Urgent, severity 5, vulnerabilities detected.'\n",
"severity": "Medium",
"enabled": true,
"query": "let threshold = 10;\nQualysHostDetection_CL\n| mv-expand todynamic(Detections_s)\n| where Detections_s.Severity == \"5\"\n| summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated), count() by NetBios_s, IPAddress\n| where count_ >= threshold\n| extend timestamp = StartTime, HostCustomEntity = NetBios_s, IPCustomEntity = IPAddress\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1190"
],
"alertRuleTemplateName": "be52662c-3b23-435a-a6fa-f39bdfc849e6",
"customDetails": null,
"entityMappings": [
{
"fieldMappings": [
{
"columnName": "HostCustomEntity",
"identifier": "FullName"
}
],
"entityType": "Host"
},
{
"fieldMappings": [
{
"columnName": "IPCustomEntity",
"identifier": "Address"
}
],
"entityType": "IP"
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Detections/QualysVM/HighNumberofVulnDetected.yaml",
"templateVersion": "1.0.2"
}
}
]
}