union prancer_CL
| where deviceProduct_s == 'azure'
| where parse_json(data_data_snapshots_s)[0].type == 'Microsoft.Web/sites'
| 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)
alertDetailsOverride:
alertDisplayNameFormat: '{{data_data_message_s}}'
alertDynamicProperties:
- value: data_data_remediation_description_s
alertProperty: RemediationSteps
alertSeverityColumnName: '{{data_data_severity_s}}'
alertDescriptionFormat: '{{data_data_description_s}}'
name: Sites Alerts for Prancer
tactics:
- Reconnaissance
query: |
union prancer_CL
| where deviceProduct_s == 'azure'
| where parse_json(data_data_snapshots_s)[0].type == 'Microsoft.Web/sites'
| 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)
status: Available
requiredDataConnectors:
- dataTypes:
- prancer_CL
connectorId: PrancerLogData
description: |
'High severity sites alerts found by Prancer.'
id: bbeb2f26-cb99-4e4b-900f-24ce9809142d
kind: Scheduled
triggerThreshold: 0
queryFrequency: 5h
relevantTechniques:
- T1595
queryPeriod: 5h
eventGroupingSettings:
aggregationKind: SingleAlert
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Prancer PenSuiteAI Integration/Analytic Rules/Sites_High_Severity.yaml
triggerOperator: gt
customDetails:
entityMappings:
- fieldMappings:
- identifier: ResourceId
columnName: path
entityType: AzureResource
version: 1.0.2
severity: High