Support Library
DNS Threat Hunting: From Repeated Queries to Validated Evidence
Investigate suspicious DNS behavior using a synthetic timeline, baseline comparisons, endpoint correlation and public-domain enrichment without mistaking anomalies for compromise.
Course draft. Opening material for review and practice. Updated November 20, 2026.
Learning objectives and evidence prerequisites
Investigate a repeated DNS pattern, test benign alternatives and write a bounded conclusion. Complete the telemetry lesson first. Required evidence is client-attributed query time, query name, query type and result. Process attribution, connection events and application ownership provide additional validation. All examples below are synthetic; names and addresses are reserved for documentation.
Write the hypothesis before ranking domains
Hypothesis: during 09:00 to 09:10 UTC on November 1, 2026, workstation-01 generated repeated lookups of sync.example from an unapproved process. Predict repeated events tied to the same process, followed by relevant network activity. Competing explanations include an updater, monitoring agent, scheduled integration or repeated failure. A DNS name alone cannot distinguish them.
DNS can carry command-and-control traffic, as described by MITRE T1071.004. But DNS used to locate an HTTPS service does not itself establish DNS-based command and control. Record what was observed before assigning a technique.
Read the timeline
| Time | Client | Source | Observation |
|---|---|---|---|
| 09:00:00 | workstation-01 | Resolver | A query for sync.example; NOERROR, answer 192.0.2.40 |
| 09:01:00 | workstation-01 | Resolver | Same name and answer |
| 09:02:00 | workstation-01 | Resolver | Same name and answer |
| 09:03:00 | workstation-01 | Resolver | Same name and answer |
| 09:03:02 | workstation-01 | Endpoint | Process p-17 connects to 192.0.2.40:443 |
| 09:04:00 | workstation-01 | Resolver | Same name and answer |
| 09:04:05 | workstation-01 | Inventory | p-17 has no application owner recorded yet |
The five query timestamps contain four intervals of 60 seconds, with a mean of 60 seconds and a population standard deviation of zero. That establishes regularity in this small sample. It does not establish beaconing by malware. The endpoint connection is a useful pivot, but the IP may host other domains and the process is not yet attributed to the DNS queries. Obtain endpoint DNS evidence or equivalent attribution before asserting that link.
Compare behaviors, not a single threshold
| Signal | Investigation | Benign or visibility alternative |
|---|---|---|
| Repeated intervals | Deduplicate, inspect longer windows and correlate process activity | Update checks and monitoring can be periodic; malware can jitter. |
| Many unique subdomains | Group by a correctly parsed registrable domain; compare client peers | CDNs, tracking and security products generate changing labels. |
| Long or unusual labels | Compare label distributions and query types with an application baseline | Encoded identifiers are common in legitimate software. |
| Many NXDOMAIN results | Check failed names and process context | Search suffixes, stale configuration or typing errors. |
| Direct external resolver traffic | Compare endpoint policy with approved resolver use | Browser or application configuration may explain it. |
Use a public suffix-aware parser when aggregating domains; taking the last two labels fails for suffixes such as co.uk. Compare equivalent device roles and business periods. A domain first seen in your dataset may be old elsewhere. Baselines should document the observation window and known collection gaps. Proxy logs, web activity, flow records and east-west connections can corroborate a hypothesis, but each has different client attribution and content visibility.
Use public tools as enrichment
- ObservePreserve the original resolver events.
- AttributeMap client and process using trustworthy identifiers.
- EnrichInspect current registration and DNS relationships.
- ValidateCheck application purpose, history and independent events.
- DecideEscalate supported findings or document a benign result or gap.
Website Recon helps investigate registration, lifecycle and provider attribution. Domain Visualizer shows public DNS record relationships. Zone Analyzer helps inspect an authorized zone export in the browser, but that export is configuration rather than client query history. Security Posture provides public security configuration context, not a verdict on the activity in this timeline.
Do not interpret a shared hosting address as common ownership. Current DNS does not reconstruct historical answers. If an enrichment lookup fails or the reserved sample does not resolve, keep the synthetic record as the exercise evidence; do not replace it with a real third-party target.
Exercise, expected output and answer guidance
Calculate the intervals above. Write three follow-up requests and a two-sentence finding. Then repeat the exercise after learning that p-17 is an approved update agent, and again after learning that the device had no endpoint DNS logging.
Answer guidance: request process creation and signer or hash context, client DNS attribution, and software owner or deployment history. The defensible initial finding is “A workstation made periodic DNS queries in the observed window. Process attribution and business purpose remain unresolved.” An approved agent with corroborating history supports a benign explanation for this pattern. Missing endpoint DNS logging leaves the connection between p-17 and the queries unverified.
For deeper background, read DNS Tunneling (Data Exfiltration) and Certificate Transparency Hunting. A certificate or registration observation can suggest another question; it cannot establish that the endpoint executed malicious code.