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
- TAM-H-ACT-010Emailing Data Out
- TAM-H-ACT-015Installing Malware From Inside
- TAM-H-ACT-021Making Unapproved Changes to IT Systems
- TAM-H-ACT-022Moving Data Over Other Links
- TAM-H-ACT-029Putting Off-Limits Apps on Work Machines
- TAM-H-ACT-048Uploading Data to Web Services
- TAM-H-CVR-020Masking Network Activity
- TAM-H-CVR-030Setting Traps for Investigators
- TAM-H-CVR-043Wiping Browser Traces
- TAM-H-RCH-006Borrowed or Orphan Hardware
- TAM-H-RCH-019Open Internet From Work Machines
- TAM-H-STG-030Opening a Remote Desktop Door
- TAM-H-STG-035Planting a Remote Hands Box
- TAM-H-STG-050Selling Inside Access
- TAM-H-STG-054Switching Off the Guardrails