T1071.004 DNS
Command and Controlon attack.mitre.org
ATT&CK Enterprise 20.0 · 20.1 released, update in review
How MITRE detects it
DET0400 Behavioral Detection of DNS Tunneling and Application Layer Abuse
AN1121 Windows
Detects high-frequency or anomalous DNS queries initiated by non-browser, non-system processes (e.g., PowerShell, rundll32, python.exe) used to establish command and control via DNS tunneling.
| MITRE log source | In Microsoft Sentinel |
|---|---|
WinEventLog:SysmonEventCode=3, 22 |
Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent. |
NSM:Flowdns.log | Not mapped to Sentinel yet. |
AN1122 Linux
Detects local daemons or scripts generating outbound DNS queries with long or frequent subdomains, indicative of DNS tunneling via tools like `iodine`, `dnscat2`, or `dig` from cronjobs or reverse shells.
| MITRE log source | In Microsoft Sentinel |
|---|---|
auditd:SYSCALLexecve | Not mapped to Sentinel yet. |
NSM:Flowdns.log | Not mapped to Sentinel yet. |
AN1123 macOS
Detects scripting environments (AppleScript, osascript, curl) or non-native tools performing DNS queries with encoded subdomains, often used for data exfiltration or beaconing.
| MITRE log source | In Microsoft Sentinel |
|---|---|
macos:unifiedloglog stream 'eventMessage contains "dns_request"' | Not mapped to Sentinel yet. |
AN1124 Network Devices
Detects clients issuing DNS queries with high volume, long subdomain lengths, encoded payload patterns, or to known malicious infrastructure; indicative of DNS-based C2 channels.
| MITRE log source | In Microsoft Sentinel |
|---|---|
NSM:Flowdns.log | Not mapped to Sentinel yet. |
AN1125 ESXi
Detects unusual outbound DNS traffic from ESXi hosts, often from shell scripts, custom daemons, or malicious VIBs interacting with external DNS infrastructure outside the management plane.
| MITRE log source | In Microsoft Sentinel |
|---|---|
esxi:syslog/var/log/syslog.log | Not mapped to Sentinel yet. |
NSM:FLowdns.log | Not mapped to Sentinel yet. |
Content Hub rules tagged with it (2)
- GCP Audit Logs - DNSSEC Disabled on Managed DNS Zone
- GCP Security Command Center - Detect DNSSEC disabled for DNS zones
How the Content Hub rules for T1071.004 are built: their tables, filters, joins, schedules and windows.
In Sigma rules
18 SigmaHQ community rules name it in their tags.
- Cobalt Strike DNS Beaconing
- OilRig APT Activity
- OilRig APT Registry Persistence
- OilRig APT Schedule Task Persistence - Security
- OilRig APT Schedule Task Persistence - System
- Silence.EDA Detection
- Suspicious Cobalt Strike DNS Beaconing - DNS Client
- Suspicious Cobalt Strike DNS Beaconing - Sysmon
- DNS Exfiltration and Tunneling Tools Execution
- DNS TXT Answer with Possible Execution Strings
- Nslookup PowerShell Download Cradle - ProcessCreation
- Suspicious DNS Query with B64 Encoded String
- DNS Query To Katz Stealer Domains
- DNS Query To Katz Stealer Domains - Network
- DNS Query by Finger Utility
- Network Connection Initiated via Finger.EXE
- DNS Query To Common Malware Hosting and Shortener Services
- Low Reputation Effective Top-Level Domain (eTLD)
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.