
Summary
Detects DNS lookups or DNS-query tools that produce hostnames with a padding-encoded label (Base64/Base32). Pad character '=' is not valid in hostnames, so a label ending with '=' indicates encoded data placed into the query name for exfiltration or C2. The rule matches two scenarios: (1) network DNS events where dns.question.name matches a base64/encoded label followed by a domain, excluding local domains; and (2) process start events where a DNS tool (dig, nslookup, nslookup.exe, host, drill) is used and its arguments contain a similarly padded encoded payload. The rule is cross-platform across Linux, macOS, and Windows and uses endpoint/process and network data. It maps to MITRE ATT&CK techniques T1048 (Exfiltration) with T1048.003 (Exfiltration Over Unencrypted Non-C2 Protocol) and T1071.004 (DNS) with T1132.001 (Standard Encoding).
Categories
- Endpoint
- Network
Data Sources
- Network Traffic
- Process
ATT&CK Techniques
- T1048
- T1048.003
- T1071
- T1071.004
- T1132
- T1132.001
Created: 2026-11-18