let threshold = 2;
let err = dynamic(['NXDOMAIN', 'SERVFAIL', 'REFUSED']);
GCPCloudDNS
| where EventResultDetails in~ (err)
| summarize ips = makeset(SrcIpAddr) by Query, bin(TimeGenerated, 10m)
| where array_length(ips) >= threshold
| extend DNSCustomEntity = Query, IPCustomEntity = ips
requiredDataConnectors:
- connectorId: GCPDNSDataConnector
dataTypes:
- GCPCloudDNS
kind: Scheduled
tactics:
- CommandAndControl
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/GoogleCloudPlatformDNS/Analytic Rules/GCPDNSMultipleErrorsQuery.yaml
id: da04a5d6-e2be-4cba-8cdb-a3f2efa87e9e
name: Google DNS - Multiple errors to same domain
triggerOperator: gt
entityMappings:
- entityType: DNS
fieldMappings:
- columnName: DNSCustomEntity
identifier: DomainName
- entityType: IP
fieldMappings:
- columnName: IPCustomEntity
identifier: Address
queryFrequency: 1h
description: |
'Detects multiple errors to same domain.'
version: 1.0.0
relevantTechniques:
- T1095
queryPeriod: 1h
severity: Medium
triggerThreshold: 0
query: |
let threshold = 2;
let err = dynamic(['NXDOMAIN', 'SERVFAIL', 'REFUSED']);
GCPCloudDNS
| where EventResultDetails in~ (err)
| summarize ips = makeset(SrcIpAddr) by Query, bin(TimeGenerated, 10m)
| where array_length(ips) >= threshold
| extend DNSCustomEntity = Query, IPCustomEntity = ips