VeriKQL by Kaushik Saha

T1568.002 Domain Generation Algorithms

Command and Controlon attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0419 Detection Strategy for Dynamic Resolution using Domain Generation Algorithms.

AN1178 Windows

Correlate DNS queries that generate domains with high entropy or gibberish patterns, combined with short-lived connections from unusual processes. Monitor Sysmon DNS events and Windows Security logs for abnormal query rates and failed lookups.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SysmonEventCode=3, 22
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (3, 22)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (3, 22)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

WinEventLog:SecurityEventCode=4688
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4688)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4688)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

AN1179 Linux

Identify processes issuing repeated DNS queries to random-looking domains with abnormal entropy or word concatenations. Correlate resolver logs with high NXDOMAIN rates and auditd socket connections.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLsocket/connectNot mapped to Sentinel yet.
linux:syslogMultiple NXDOMAIN responses and high entropy domainsNot mapped to Sentinel yet.

AN1180 macOS

Monitor unified DNS logs for abnormal domain queries with low lexical similarity to known domains, repeated failed lookups, and random string structures. Cross-check with process logs to confirm unusual origins (non-browser apps).

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogHigh entropy domain queries with multiple NXDOMAINsNot mapped to Sentinel yet.
macos:unifiedlogUnexpected apps performing repeated DNS lookupsNot mapped to Sentinel yet.

AN1181 ESXi

Use ESXi syslogs to track abnormal DNS query patterns from management agents or VMs. Identify high-frequency, low-TTL, or unresolvable domains as suspicious. Correlate with unusual management plane process activity.

MITRE log sourceIn Microsoft Sentinel
esxi:syslogFrequent DNS queries with high entropy names or NXDOMAIN resultsNot mapped to Sentinel yet.

Content Hub rules tagged with it (9)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1568.002 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

2 SigmaHQ community rules name it in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.