Excessive NXDOMAIN DNS Queries
Id | b8266f81-2715-41a6-9062-42486cbc9c73 |
Rulename | Excessive NXDOMAIN DNS Queries |
Description | This creates an incident in the event a client generates excessive amounts of DNS queries for non-existent domains. |
Severity | Medium |
Tactics | CommandAndControl |
Techniques | T1568 T1008 |
Required data connectors | InfobloxNIOS SyslogAma |
Kind | Scheduled |
Query frequency | 1h |
Query period | 1h |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Infoblox NIOS/Analytic Rules/ExcessiveNXDOMAINDNSQueries.yaml |
Version | 1.0.4 |
Arm template | b8266f81-2715-41a6-9062-42486cbc9c73.json |
let threshold = 200;
Infoblox_dnsclient
| where isnotempty(DnsResponseCode)
| where DnsResponseCode =~ "NXDOMAIN"
| summarize count() by SrcIpAddr, bin(TimeGenerated,15m)
| where count_ > threshold
| join kind=inner (Infoblox_dnsclient
| where isnotempty(DnsResponseCode)
| where DnsResponseCode =~ "NXDOMAIN"
) on SrcIpAddr
relevantTechniques:
- T1568
- T1008
name: Excessive NXDOMAIN DNS Queries
requiredDataConnectors:
- dataTypes:
- Syslog
connectorId: InfobloxNIOS
- datatypes:
- Syslog
connectorId: SyslogAma
entityMappings:
- fieldMappings:
- identifier: Address
columnName: SrcIpAddr
entityType: IP
triggerThreshold: 0
id: b8266f81-2715-41a6-9062-42486cbc9c73
tactics:
- CommandAndControl
version: 1.0.4
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Infoblox NIOS/Analytic Rules/ExcessiveNXDOMAINDNSQueries.yaml
queryPeriod: 1h
kind: Scheduled
queryFrequency: 1h
severity: Medium
status: Available
description: |
'This creates an incident in the event a client generates excessive amounts of DNS queries for non-existent domains.'
query: |
let threshold = 200;
Infoblox_dnsclient
| where isnotempty(DnsResponseCode)
| where DnsResponseCode =~ "NXDOMAIN"
| summarize count() by SrcIpAddr, bin(TimeGenerated,15m)
| where count_ > threshold
| join kind=inner (Infoblox_dnsclient
| where isnotempty(DnsResponseCode)
| where DnsResponseCode =~ "NXDOMAIN"
) on SrcIpAddr
triggerOperator: gt
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"apiVersion": "2024-01-01-preview",
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/b8266f81-2715-41a6-9062-42486cbc9c73')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/b8266f81-2715-41a6-9062-42486cbc9c73')]",
"properties": {
"alertRuleTemplateName": "b8266f81-2715-41a6-9062-42486cbc9c73",
"customDetails": null,
"description": "'This creates an incident in the event a client generates excessive amounts of DNS queries for non-existent domains.'\n",
"displayName": "Excessive NXDOMAIN DNS Queries",
"enabled": true,
"entityMappings": [
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "SrcIpAddr",
"identifier": "Address"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Infoblox NIOS/Analytic Rules/ExcessiveNXDOMAINDNSQueries.yaml",
"query": "let threshold = 200;\nInfoblox_dnsclient\n| where isnotempty(DnsResponseCode)\n| where DnsResponseCode =~ \"NXDOMAIN\"\n| summarize count() by SrcIpAddr, bin(TimeGenerated,15m)\n| where count_ > threshold\n| join kind=inner (Infoblox_dnsclient\n | where isnotempty(DnsResponseCode)\n | where DnsResponseCode =~ \"NXDOMAIN\"\n ) on SrcIpAddr\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"CommandAndControl"
],
"techniques": [
"T1008",
"T1568"
],
"templateVersion": "1.0.4",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}