union prancer_CL
| where deviceProduct_s == 'azure'
| where parse_json(data_data_snapshots_s)[0].type == 'Microsoft.Network/networkSecurityGroups' //and parse_json(data_data_snapshots_s)[0].region != ''
| where data_data_severity_s == 'High' and data_data_result_s == 'failed'
| extend snapshot = parse_json(data_data_snapshots_s)
| mv-expand snapshot
| extend
id = tostring(snapshot.id),
structure = tostring(snapshot.structure),
reference = tostring(snapshot.reference),
source = tostring(snapshot.source),
collection = tostring(snapshot.collection),
type = tostring(snapshot.type),
region = tostring(snapshot.region),
resourceTypes = tostring(snapshot.resourceTypes),
path = tostring(snapshot.path)
id: a8babf91-b844-477c-8abf-d31e3df74933
query: |
union prancer_CL
| where deviceProduct_s == 'azure'
| where parse_json(data_data_snapshots_s)[0].type == 'Microsoft.Network/networkSecurityGroups' //and parse_json(data_data_snapshots_s)[0].region != ''
| where data_data_severity_s == 'High' and data_data_result_s == 'failed'
| extend snapshot = parse_json(data_data_snapshots_s)
| mv-expand snapshot
| extend
id = tostring(snapshot.id),
structure = tostring(snapshot.structure),
reference = tostring(snapshot.reference),
source = tostring(snapshot.source),
collection = tostring(snapshot.collection),
type = tostring(snapshot.type),
region = tostring(snapshot.region),
resourceTypes = tostring(snapshot.resourceTypes),
path = tostring(snapshot.path)
description: |
'High severity network security groups alerts found by Prancer.'
requiredDataConnectors:
- connectorId: PrancerLogData
dataTypes:
- prancer_CL
alertDetailsOverride:
alertDynamicProperties:
- value: data_data_remediation_description_s
alertProperty: RemediationSteps
alertSeverityColumnName: '{{data_data_severity_s}}'
alertDisplayNameFormat: '{{data_data_message_s}}'
alertDescriptionFormat: '{{data_data_description_s}}'
tactics:
- Reconnaissance
status: Available
queryFrequency: 5h
queryPeriod: 5h
triggerOperator: gt
kind: Scheduled
name: NetworkSecurityGroups Alert From Prancer
customDetails:
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Prancer PenSuiteAI Integration/Analytic Rules/Network_Security_Groups_High_Severity.yaml
version: 1.0.2
eventGroupingSettings:
aggregationKind: SingleAlert
relevantTechniques:
- T1595
severity: High
entityMappings:
- fieldMappings:
- identifier: ResourceId
columnName: path
entityType: AzureResource
triggerThreshold: 0