Suspicious DNS Z Flag Bit Set
The DNS Z flag is bit within the DNS protocol header that is, per the IETF design, meant to be used reserved (unused). Although recently it has been used in DNSSec, the value being set to anything other than 0 should…
Description
The DNS Z flag is bit within the DNS protocol header that is, per the IETF design, meant to be used reserved (unused). Although recently it has been used in DNSSec, the value being set to anything other than 0 should be rare. Otherwise if it is set to non 0 and DNSSec is being used, then excluding the legitimate domains is low effort and high reward. Determine if multiple of these files were accessed in a short period of time to further enhance the possibility of seeing if this was a one off or the possibility of larger sensitive file gathering. This Sigma query is designed to accompany the Corelight Threat Hunting Guide, which can be found here: https://www3.corelight.com/corelights-introductory-guide-to-threat-hunting-with-zeek-bro-logs'
Detection logic
Detection requirements
Known benign triggers
- If you work in a Public Sector then it may be good to exclude things like endswith ".edu", ".gov" and or ".mil"
- Internal or legitimate external domains using DNSSec. Verify if these are legitimate DNSSec domains and then exclude them.
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| tdm.socprime.com/tdm/info/eLbyj4JjI15v#sigma | Only this detection cites it |
| tools.ietf.org/html/rfc2929#section-2.1 | Only this detection cites it |
| twitter.com/neu5ron/status/1346245602502443009 | Only this detection cites it |
| www.netresec.com/?page=Blog&month=2021-01&post=Finding-Targeted-SUNBURST-Victims-with-pDNS | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- ede05abc-2c9e-4624-9944-9ff17fdc0bf5
- Tagged by the source as
- attack.command-and-control
Licence
- Published under
- Detection Rule License 1.1Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Aug 26, 2026
- Version
- 1