Ubiquiti - connection to non-corporate DNS server
| Id | fe232837-9bdc-4e2b-8c08-cdac2610eed3 |
| Rulename | Ubiquiti - connection to non-corporate DNS server |
| Description | Detects connections to non-corporate DNS servers. |
| Severity | Medium |
| Tactics | CommandAndControl Exfiltration |
| Techniques | T1572 T1041 |
| Required data connectors | CustomLogsAma |
| 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/Ubiquiti UniFi/Analytic Rules/UbiquitiNonCorpDns.yaml |
| Version | 1.0.2 |
| Arm template | fe232837-9bdc-4e2b-8c08-cdac2610eed3.json |
let corp_dns = dynamic(['127.0.0.2']);
UbiquitiAuditEvent
| where DstPortNumber == '53'
| where DstIpAddr !in (corp_dns)
| extend IPCustomEntity = SrcIpAddr
triggerOperator: gt
queryFrequency: 1h
requiredDataConnectors:
- connectorId: CustomLogsAma
dataTypes:
- Ubiquiti_CL
relevantTechniques:
- T1572
- T1041
entityMappings:
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
query: |
let corp_dns = dynamic(['127.0.0.2']);
UbiquitiAuditEvent
| where DstPortNumber == '53'
| where DstIpAddr !in (corp_dns)
| extend IPCustomEntity = SrcIpAddr
triggerThreshold: 0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Ubiquiti UniFi/Analytic Rules/UbiquitiNonCorpDns.yaml
queryPeriod: 1h
name: Ubiquiti - connection to non-corporate DNS server
status: Available
kind: Scheduled
description: |
'Detects connections to non-corporate DNS servers.'
id: fe232837-9bdc-4e2b-8c08-cdac2610eed3
version: 1.0.2
tactics:
- CommandAndControl
- Exfiltration
severity: Medium