DET-034 · human · confidence Medium

DNS Query Records

DNS logs show what hostnames a device tried to reach.

Every web, cloud, and tool connection starts with a name lookup. Logging DNS from resolvers or endpoints shows which sites a device contacted even when TLS hides the content. It reveals personal storage, file-sharing, paste sites, and rare or newly registered domains. It also works for machines that bypass the proxy. Keep query logs with source device and time. Pair it with proxy or EDR data to learn which process made each lookup.

Data sources
DNS resolver logsEndpoint DNS events (Sysmon 22)
Platforms
NetworkWindowsmacOSLinux

Logic

index=dns | stats dc(query) as names, count by src_host
| join query [lookup domain_category]
Flag lookups of file transfer, anonymiser, and domains first seen less than 30 days ago, from sensitive-role hosts.

False positives

CDNs and large numbers of cloud service names create volume. DoH can hide queries.

Catches 15 techniques