Interview question
How would you find command-and-control beaconing in network telemetry when you have no indicators to search for?
A behaviour-first detection question. With no indicators available, the answer has to reason from what beaconing inherently looks like.
What a strong answer covers
- Reasons from the inherent property: beaconing is periodic outbound contact, regardless of what the payload looks like.
- Looks for regularity in connection timing, and understands that jitter is used to break it.
- Considers connection count over time, session duration and byte-ratio asymmetry — small outbound requests with small responses when idle.
- Considers destinations that are new to the environment or contacted by only one or two hosts.
- Uses long-tail analysis — rare user agents, rare JA3/JA4 or TLS fingerprints, rare destination ports.
- Considers DNS-based C2: high query volume to one domain, long or high-entropy subdomains, unusual record types.
- Accounts for benign periodic traffic — software updates, telemetry, monitoring agents, certificate checks — as the dominant false-positive source.
- Notes limits: encrypted traffic, domain fronting, C2 over legitimate cloud services, and low-and-slow beacons below the detection window.
- Correlates with host telemetry to confirm rather than concluding from network data alone.
Expert answer
With no indicators, I have to detect on the property that makes it beaconing: something on the inside contacts something on the outside on a schedule.
Timing first. Group outbound connections by source host and destination, and look at the distribution of intervals. A tight distribution is the classic signal. Actors add jitter to break this, so I would look at the shape rather than expecting exact periodicity — a randomised interval within a bounded range still looks very different from human-driven traffic, which is bursty and irregular.
Volume and shape next. An idle implant checking in produces many short sessions with small, similar request and response sizes and a characteristic asymmetry. Long-lived sessions with sustained transfer are a different pattern and may indicate staging or exfiltration rather than the beacon itself.
Rarity is the other axis. Destinations contacted by only one or two hosts in the whole estate, newly observed domains, rare user agent strings, rare TLS or JA3/JA4 fingerprints, and unusual destination ports all narrow the field fast. A long-tail analysis usually surfaces more than a timing analysis on its own.
DNS deserves its own pass, because DNS-based C2 will not show as a connection to a suspicious host at all. High query volume to a single domain or its subdomains, unusually long or high-entropy labels, and unusual record types are the signals there.
The dominant false positive source is benign periodic traffic — software update checks, product telemetry, monitoring agents, certificate revocation checks, cloud sync clients. All of these beacon by design. So the workflow is really to baseline the periodic traffic in the environment first, then look at what is periodic and rare rather than periodic alone.
The limits matter and I would state them. Encrypted payloads mean I am reasoning about metadata only. Domain fronting and C2 hosted on legitimate cloud or SaaS platforms defeat destination-reputation approaches entirely, because the destination is genuinely legitimate. A beacon with a very long interval — hours or daily — may simply not produce enough events inside my retention window to look periodic.
So I would treat a network finding as a lead, not a conclusion, and confirm on the host: what process owns the connection, what its parent is, and whether there is a corresponding persistence mechanism. Network telemetry tells me where to look; host telemetry tells me what it is.
Mistakes that cost candidates points
- Falling back on "search for known bad IPs" when the premise excludes indicators.
- Missing jitter as a countermeasure to interval analysis.
- Ignoring benign periodic traffic, which dominates the results.
- Not considering DNS-based C2.
- Concluding from network telemetry alone without host confirmation.
- No acknowledgement of encryption, domain fronting or cloud-hosted C2 as limits.
You have read the answer, which is the easy part. Answer it in your own words and get graded against this same rubric, with the follow-up probe an interviewer would ask next.
Go deeper
Related questions
- What is the difference between an indicator of compromise and a TTP, and why does the distinction matter?
- You have read a report describing an actor that uses scheduled tasks to run scripts from user-writable directories. Turn that into a threat hunt.
- How do the Diamond Model, the Cyber Kill Chain and MITRE ATT&CK relate to each other? Do they compete?
- An endpoint alert shows that a scheduled task was created which launches a PowerShell one-liner from a user's AppData directory. Map this to MITRE ATT&CK.
- You have one piece of evidence: a single IP address that a compromised host was beaconing to. Walk me through how you would develop this.