Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Ubiquiti - connection to non-corporate DNS server

Back
Idfe232837-9bdc-4e2b-8c08-cdac2610eed3
RulenameUbiquiti - connection to non-corporate DNS server
DescriptionDetects connections to non-corporate DNS servers.
SeverityMedium
TacticsCommandAndControl
Exfiltration
TechniquesT1572
T1041
Required data connectorsCustomLogsAma
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Ubiquiti UniFi/Analytic Rules/UbiquitiNonCorpDns.yaml
Version1.0.2
Arm templatefe232837-9bdc-4e2b-8c08-cdac2610eed3.json
Deploy To Azure
let corp_dns = dynamic(['127.0.0.2']);
UbiquitiAuditEvent
| where DstPortNumber == '53'
| where DstIpAddr !in (corp_dns)
| extend IPCustomEntity = SrcIpAddr
name: Ubiquiti - connection to non-corporate DNS server
id: fe232837-9bdc-4e2b-8c08-cdac2610eed3
description: |
    'Detects connections to non-corporate DNS servers.'
triggerThreshold: 0
entityMappings:
- fieldMappings:
  - columnName: IPCustomEntity
    identifier: Address
  entityType: IP
version: 1.0.2
triggerOperator: gt
query: |
  let corp_dns = dynamic(['127.0.0.2']);
  UbiquitiAuditEvent
  | where DstPortNumber == '53'
  | where DstIpAddr !in (corp_dns)
  | extend IPCustomEntity = SrcIpAddr  
tactics:
- CommandAndControl
- Exfiltration
kind: Scheduled
queryFrequency: 1h
severity: Medium
queryPeriod: 1h
requiredDataConnectors:
- dataTypes:
  - Ubiquiti_CL
  connectorId: CustomLogsAma
status: Available
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Ubiquiti UniFi/Analytic Rules/UbiquitiNonCorpDns.yaml
relevantTechniques:
- T1572
- T1041