Detecting C2 Beaconing in Network Traffic
Timing statistics expose encrypted beacons, but only with context.

Detecting C2 beaconing in network traffic means looking for the schedule beneath the disguise. Encryption and protocol mimicry can hide what an implant says, but repeated connections often reveal when it checks in. Timing analysis turns that regularity into useful leads. It is not a universal verdict machine, though. Reliable detection needs connection statistics, what is known about the destination, evidence from the endpoint, and human judgment.
Why C2 beaconing is a timing problem, not a payload problem
Modern command-and-control frameworks encrypt their traffic and mimic legitimate protocols, leaving payload inspection with little useful content to examine. A connection can look like ordinary HTTPS while serving an entirely different purpose. The packet is wearing respectable office clothes. Its arrival time, however, remains visible, and repeated arrivals can reveal behavior that the encrypted content conceals.
Humans browse in bursts, with gaps that vary widely, while an implant phones home again and again on a schedule. That can produce low variance between connections regardless of what each packet contains. Timing metadata survives TLS, domain fronting, and protocol mimicry because none of those disguises inherently removes the connection events. This makes timing a durable detection surface, although not proof that every regular connection is malicious.
What the C2 framework landscape looks like and why it matters for detection
Kaspersky’s Q3 2026 data ranks Cobalt Strike first among frameworks used in malicious attacks, with Metasploit, AdaptixC2, Havoc, and Sliver also common among APT groups. That range undermines detection built around one tool’s fingerprint. The target keeps changing its wardrobe. A useful detection design looks for behavior that frameworks share, including repeated check-ins, without assuming that they all use the same transport or have the same signature.
JPCERT/CC reported in 2025 that CrossC2 extends Cobalt Strike beacon deployment to Linux and macOS. The host coverage therefore cannot stop at Windows. Transport coverage needs similar breadth, because a familiar destination does not necessarily imply familiar behavior. FortiGuard Labs described a modified Havoc Demon agent that avoided direct POST beacons by using the Microsoft Graph API to write base-64 job requests into a SharePoint file for each victim and polling a paired file for responses. Here, the trusted SaaS domain was part of the disguise.
These examples change what defenders must recognize. A tool-specific signature may spot one implementation, but it cannot cover all the different hosts and communication channels that frameworks use. Connection behavior offers a broader starting point.
How jitter works and what statistical regularity survives it
Jitter adds randomness to the gap between check-ins. Cobalt Strike’s percentage-based jitter changes the timing around a base interval, so a 60-second setting can spread connections across several dozen seconds. The spacing no longer looks perfectly mechanical. Yet the randomness is bounded, leaving a distribution that can remain much tighter than human-generated traffic. The metronome has had a coffee.
The coefficient of variation, or CV, makes this distinction measurable by expressing the standard deviation relative to the mean interval. A low value means the gaps vary little compared with how long they usually are. A CV below 0.20 across enough connections is a strong periodicity indicator. Human browsing does not sustain that regularity, though legitimate automated services can. Jitter weakens the signal, and some jitter configurations will produce values at or above that threshold.
Sunburst illustrates why the observation window also deserves attention. The backdoor used a dynamically adjusted delay with bounded jitter once settled, but its DNS beaconing phase also used multiple wider random interval ranges. Interval analysis could detect its behavior statistically even though its schedule changed. Byte counts provide another clue when timing alone is weaker. Many frameworks send similarly sized check-ins when no tasks are queued, so low variation in transferred bytes reinforces a low-variation timing pattern.
Which metadata sources expose the timing signal in practice
DNS logs, proxy or flow logs, and Zeek’s conn.log expose different parts of this behavior without requiring payload decryption. In visible DNS query logs, repeated requests from one host to the same domain over hours can reveal sustained activity. DGA detection looks for many unique, high-entropy domains queried in a short window, while beacon analysis looks for repetition. The patterns complement each other.
Zeek’s conn.log supplies the timestamps, source, destination, port, duration, sent and received byte counts, and connection state needed for interval analysis. The pipeline is straightforward in concept. It groups connections by source-destination pair, calculates the gaps between timestamps, and filters those groups by CV and connection count.
Long-poll C2 can keep an HTTP or HTTPS session open while it waits for commands, so detection also needs to look for sessions longer than 10 minutes that carry little data. Duration alone is not enough to go on because streaming and WebSocket traffic also create long sessions. The combination of duration and low transfer volume supplies the clue. Network telemetry complements endpoint logs.
How to filter legitimate periodic traffic so beacon candidates survive
Windows Update, antivirus definition checks, NTP synchronization, SaaS heartbeat services, and CDN health checks all produce legitimate regular traffic. An untuned periodicity rule will find them enthusiastically. An allowlist removes patterns known to be benign, while destination enrichment helps tell unfamiliar infrastructure apart from established services. Without that separation, the strongest statistical candidates may simply be the most punctual software.
Domain age and history provide useful context. Domains registered within the last 30 days that have no passive DNS history or certificate transparency records differ from established SaaS endpoints. ThreatFox, URLhaus, and Pulsedive support threat-intelligence enrichment, while registration age needs separate WHOIS/RDAP lookups. Those checks do not settle every case. The SharePoint example shows why an established domain cannot automatically clear suspicious behavior.
Process correlation supplies the missing host context. Periodic external HTTPS connections from PowerShell, cmd.exe, or mshta.exe, where those processes have no legitimate reason to communicate externally, are high-confidence C2 indicators regardless of destination reputation. Sysmon Event IDs 1 and 3 connect process creation with network activity. A composite score can then combine timing CV, connection count, byte-count consistency, domain age, intelligence matches, and process suspicion to rank candidates for investigation. RITA, the open-source Real Intelligence Threat Analytics tool, reduces the manual burden by analyzing Zeek logs for beaconing, DNS tunneling, and long connections, but the ranked output still needs review.
Where the timing-based approach encounters SCADA and ICS environments
Industrial control networks complicate the comparison between human browsing and automated check-ins because much of their legitimate traffic is machine-driven and predictable. Low variation is often normal there. Enterprise CV thresholds can therefore generate excessive false positives when applied unchanged to SCADA and ICS environments. The statistical method remains useful, but its interpretation needs an environment-specific baseline. A factory is not an office with louder keyboards.
A 2026 peer-reviewed paper in Springer’s International Journal of Information Security proposed a hybrid approach for this setting. It combined CV-based periodicity analysis with unsupervised anomaly detection using only Zeek-generated flow metadata. The method applied to both plaintext and TLS-encrypted traffic. It also required no labeled training dataset. That is a practical advantage where attack samples are scarce and historical traffic has not been annotated.
The study supports adapting the method. Its experimental setting was an isolated SCADA-like laboratory, which limits what it establishes about deployment elsewhere. There is also a more basic obstacle. Network monitoring is not uniformly deployed in OT environments, so the flow metadata required for this analysis may be absent. A detection model cannot compensate for connection records that were never collected.
How modern evasion moves the goalposts: blockchain C2, LOTL, and protocol-level camouflage
Some evasion techniques do more than loosen a timer. They move C2 into channels where destination controls and network heuristics have less leverage, and some reduce or remove useful interval regularity. Even when timestamps remain visible, the pattern may be hard to tell apart from traffic that legitimate software sends.
Cisco Talos reported Overlord RAT in November 2026, potentially linking it to North Korea. The malware embedded encrypted C2 server URLs in Solana transaction memos, using a technique Lazarus had employed in March 2026 through a different Node.js loader. The public ledger is immutable and accessed through legitimate RPC endpoints. Traditional domain sinkholing and DNS blocking therefore cannot neutralize that lookup channel in the usual way. Blocking a suspicious destination is harder when legitimate blockchain applications use it too.
GlassWorm and CanisterWorm expose the same difficulty through different dead drops. GlassWorm polls public Solana RPC endpoints for encoded payload URLs in transaction memos, while CanisterWorm queries an ICP canister smart contract for its C2 server URL. Those connections can look like traffic from legitimate blockchain applications. Polling may still exist, but its presence alone does not distinguish the malicious use. Timing reveals activity without necessarily revealing intent.
A 2026 IEEE/arXiv paper on Model Context Protocol traffic describes a similar challenge posed by legitimate software. It argues that agentic AI frameworks produce network patterns that structurally and temporally resemble C2, challenging anomaly detection’s assumption that malicious behavior falls outside the known benign world. Layering provides the response. Process behavior, including suspicious periodic PowerShell calls, geographic anomalies, and contacts with new destinations give analysts more to go on when timing is hidden or unclear. Living-off-the-land and cloud-C2 cases still need evidence beyond what a network score can provide.
What a practical detection workflow looks like end to end
Metadata collection comes before choosing the cleverest detector. Zeek conn.log, dns.log, and ssl.log form the minimum telemetry baseline for this workflow, with NetFlow or IPFIX an acceptable substitute where full Zeek deployment is not feasible. Proxy logs add data on payload-size where it is available. Each layer contributes a different view. Together, they let analysts narrow repeated activity to a set of connections for examination.
Next, group the records by source-destination pair and work out the CV of inter-arrival times. The baseline filter retains pairs with 50 or more connections and CV below 0.20. Run a separate queue for sessions longer than 10 minutes that transfer under 10 KB, because long-poll behavior will not necessarily appear as frequent reconnections. The choice depends on the existing pipeline.
Then enrich the surviving candidates with domain age, threat-intelligence reputation, and certificate transparency records. Correlate source IPs with DHCP logs to identify endpoints, then use process creation and network events to establish which process generated the activity. Combine timing CV, connection count, payload-size CV, domain age, intelligence matches, and process suspicion into a score. A human should promptly look into cases above the defined threshold, even before the destination reputation is confirmed. They should not trigger automatic blocking solely on that score.
The August 2025 Springer research and the April 2025 Journal of Network and Computer Applications paper support ML approaches that are more accurate, including LSTM and transformer models and AI-based time-series analysis across public intrusion-detection datasets. Those approaches require suitable data and infrastructure. The statistical baseline does not, and its output still needs someone who can interpret a low CV in the context of unfamiliar framework behavior.
Original threat research helps supply that context. Cyberou, a threat-research-led content studio, monitors cybercrime networks and threat actors’ public accounts daily and verifies findings against samples before publishing them under a security vendor’s brand. That is one source of framework knowledge that can inform triage. An analyst who understands Havoc’s SharePoint polling can make sense of a flow-log pattern that a destination check might dismiss.


