Insights

Command and Control (C2) Detection: How to Spot Beaconing

Illustration of a pea pod holding cubes on teal paper with a key balloon.
Written by
Hagai Shapira
Published on
December 1, 2026

Command and control (C2) is the attacker infrastructure that sends commands to compromised hosts and receives data back from them, usually through an implant that checks in over a channel the victim’s network already allows.

By the time C2 traffic appears in telemetry, the intrusion is already underway: someone has gained initial access, run code, and set up a way to keep talking to the host. Command and control detection can’t undo that, but it buys time. A beacon caught early gives responders a chance to act before the attacker has had weeks to collect credentials, move laterally, and build fallback channels.

TL;DR:

  • C2 is built to look like the traffic your network already permits, so signatures and blocklists catch known indicators while customized infrastructure calls for behavioral analysis.
  • Beacon timing stays observable under encryption and can reveal periodic check-ins, though jitter and irregular activity weaken it.
  • No single telemetry source gives full coverage, because network, DNS, endpoint, and cloud logs each see only part of a C2 channel.
  • Confirmed beaconing calls for a risk-based containment decision: blocking too early costs visibility, but active exfiltration or ransomware justifies isolating at once.

What Command and Control Means in an Attack

A C2 setup has three parts. The implant runs on the compromised host. The C2 server, or team server, is where the operator issues tasks and collects output. The channel is the protocol and route between them, whether HTTPS to a redirector, DNS queries, or API calls to a cloud service.

C2 sits after initial access and execution and usually stays in place for the rest of the intrusion, supporting discovery, lateral movement, collection, and exfiltration. Attackers often add backup channels as well. MITRE ATT&CK catalogs this stage as the Command and Control tactic (TA0011), which lists 18 techniques in Enterprise ATT&CK v20, including Application Layer Protocol, Proxy, Web Service, and Remote Access Tools.

How Attackers Build C2 Channels

Most C2 is centralized, with every implant calling back to an operator-controlled server, or a redirector in front of it, over egress the defender’s own allowlist permits. Some is internal relay or peer-to-peer: a Cobalt Strike SMB beacon passes commands between hosts over named pipes, so only one pivot host talks to the internet.

The channel types below are the ones defenders meet most often.

HTTPS and Web Traffic

Encrypted web traffic is the default C2 channel because nearly every network allows it. Attackers embed commands and results inside HTTP/S and WebSocket traffic to blend with existing traffic (Web Protocols, T1071.001), and usually put redirectors or CDNs in front of the real server (Proxy, T1090).

Domain fronting (T1090.004) uses one domain in the TLS SNI field and a different one in the HTTP Host header, so the visible destination is a reputable CDN customer. Major CDN providers have since closed much of that gap, and Azure Front Door, for one, now blocks fronting attempts and logs them as SSLMismatchedSNI. Redirectors in front of legitimate CDN and cloud services have outlasted the trick.

DNS-Based C2

DNS-based C2 encodes commands and responses in DNS queries and records, so the traffic rides on a protocol almost every network lets through to resolvers. Tunnels give themselves away through long, high-entropy query names, the signal DNS tunneling detection is built around.

Cloud Services and SaaS APIs

C2 over cloud services sends commands through a legitimate platform, so the network sees only traffic to Google, Microsoft, or another provider the business depends on, a pattern ATT&CK tracks as Web Service (T1102). State actors use it widely:

  • Google Sheets: Google Threat Intelligence Group (GTIG) and Mandiant found UNC2814’s GRIDTIDE backdoor polling a spreadsheet for commands and writing output to other cells, with confirmed intrusions in 42 countries.
  • Microsoft Graph: The FINALDRAFT backdoor exchanged commands through Outlook drafts via the Graph API.
  • AI platform APIs: The SesameOp backdoor, documented by Microsoft in November 2025, used the OpenAI Assistants API to relay commands and results, without invoking any AI model. OpenAI has since retired that API, so treat SesameOp as an example of the technique, not a live channel.

Each of these destinations is trustworthy, so blocking the provider’s whole domain would break legitimate work. Detection has to come from which process makes the calls, which account or tenant owns the resources, and when the calls happen.

Legitimate Remote Access Tools

Remote monitoring and management (RMM) software gives attackers interactive C2 that security tools already trust, which ATT&CK files under Remote Access Tools (T1219). Attackers often run tools like ScreenConnect and AnyDesk as portable executables. Because nothing is installed, the tools sidestep administrator privilege requirements and software management controls, and antivirus rarely flags RMM use.

Ransomware affiliates lean on the same commercial RMM tools. An allowlist that names a product category hides this activity, while one that names your sanctioned instances and tenants exposes everything else as unapproved.

C2 Frameworks Attackers Use

Recorded Future’s 2025 observations put Cobalt Strike and Sliver together at about 67% of offensive security tool victim events. Their default traits give defenders specific indicators to match:

  • Cobalt Strike: The default team server certificate has known hashes that detection rules match directly where the certificate is visible.
  • Sliver: The default HTTP(S) configuration gives each type of request a fixed file extension, such as .js for polls and .php for session messages, so unmodified deployments repeat the same extension pattern even though paths vary.

Cobalt Strike’s Malleable C2 profiles and Sliver’s HTTP C2 configuration let operators change certificates, URIs, and other defaults, so framework signatures mostly catch operators who leave the defaults in place.

What Beaconing Looks Like in Telemetry

Beaconing is the implant’s scheduled check-in with its C2 server to ask for new tasks. Because the implant must keep asking whether or not the operator is active, it produces repetitive traffic even when nothing else happens. Defenders look at it from three angles: timing, payload consistency, and where the traffic goes.

Interval and Jitter

Check-in timing survives encryption, which makes it one of the most durable beacon signals. A Cobalt Strike beacon, for example, checks in every 60 seconds by default. Jitter randomizes that timing, and frameworks implement it differently. In Cobalt Strike, jitter shortens each sleep by a random percentage, so a 60-second sleep with 50% jitter produces check-ins roughly 30 to 60 seconds apart, before task execution and network delays. Analyze the observed interval distribution instead of assuming a fixed range.

Payload Size and Request Patterns

Idle beacons send nearly identical requests and receive nearly identical responses, while normal user traffic varies widely in size. Low variation in bytes sent in both directions is a common beaconing indicator.

Request content adds evidence when you can see it, such as the small, well-known set of URI paths an unmodified Cobalt Strike profile requests. A browser user agent string from a binary that is not a browser is worth a second look.

Destination and Infrastructure Signals

Infoblox’s 2026 Threat Landscape Report rated nearly a quarter of the 120 million newly observed domains it identified over the past year as high or critical risk, so a beacon’s destination age deserves a check. Rarity inside your own environment adds weight, since a destination few of your hosts contact stands out against domains the whole fleet uses.

TLS fingerprints characterize the client’s TLS implementation without decryption, which often points to the software behind it. The older JA3 method hashes ClientHello fields in order of appearance, so browsers that randomize extension order, as Chrome does, produce a new hash on almost every connection. FoxIO’s JA4, released in 2023, sorts ciphers and extensions before hashing, which keeps it stable against randomization.

TLS 1.3 encrypts the server certificate, so matching a server certificate, such as Cobalt Strike’s default team server certificate, needs a TLS 1.2 session or an active scan of the server.

Why C2 Detection Breaks Down

Attackers bypass known-bad detections by changing indicators such as C2 destinations, as joint living-off-the-land (LOTL) guidance from NSA, CISA, and partners warns. Traffic to Google Sheets or Microsoft Graph inherits the provider’s reputation. Heavy jitter and long sleeps thin out the timing signal.

Benign software also beacons, from monitoring agents to updaters, which makes statistical beaconing rules noisy. Legitimate updaters tend to run on many hosts from signed binaries in expected paths and contact domains the vendor owns. A beacon usually sits on a handful of hosts, comes from an unusual or injected process, and reaches a new domain or a tenant you don’t own.

Short retention and scattered evidence add to the problem. Microsoft Entra, for example, keeps sign-in and audit logs for only 30 days on P1 and P2 and seven days on Free. For a SOC team, a beacon candidate shows up in one console, the process behind it lives in another, and the account that authorized the cloud app sits in a third. The analyst then spends the investigation stitching rather than deciding.

How to Detect C2 Traffic Across Telemetry Sources

Network records show cadence, DNS logs show resolutions, endpoint records name the process, and cloud logs name the identity or workload, so correlating them answers more questions about a channel than any one source can.

Network and Proxy Logs

Run frequency analysis on connection logs, grouping by source and destination pair, and check each source’s granularity first. Open-source tools such as RITA score this regularity from Zeek logs, and they need many hours of traffic, not minutes, to score it reliably. Add egress to rare destinations, long-lived sessions to uncategorized domains, and outbound connections to raw IP addresses with no preceding DNS request, a pattern the LOTL guidance also flags.

If your baseline is a few hundred agents checking in with known update services, hunt for regular cadence to destinations that only one or two hosts contact.

Network signatures add coverage for remote access tools, such as rules that fire on RMM vendor domains in TLS SNI from hosts or tenants not approved to use them.

DNS Logs

DNS logs record which domains a host resolved before it connected, which makes them the place to spot newly registered or low-prevalence domains tied to a beacon. The gap between repeated queries for the same name can show the same regular cadence as connection logs. On endpoints, Sysmon Event ID 22 ties each query to the process that made it.

Endpoint Telemetry

Endpoint data identifies the beaconing process, which network records alone rarely establish. Map every outbound connection to its process, then look for unsigned binaries, processes that do not normally make network calls, and injected system processes such as spoolsv.exe or winlogon.exe. For internal relays, collect Sysmon Event IDs 17 and 18, which record named pipe activity such as Cobalt Strike’s SMB beacons.

In a December 2023 BlackSuit intrusion, C2 evidence spanned several systems:

  • Sysmon Event ID 22 recorded DNS queries for regsvcast[.]com domains.
  • C2 traffic to svchorst[.]com went to Cloudflare-managed IPs that proxied it to the team server.
  • The domain controller was the main pivot point, with beacons moved over SMB ADMIN$ shares.
  • A beacon was transferred via SMB and executed as a service on another workstation.

Escalate when a host with regular outbound cadence also writes to remote ADMIN$ shares or creates services on other hosts, because that pairing suggests the operator is already moving laterally.

Cloud and SaaS Logs

Cloud C2 shows up as unusual API activity, app consent, and workload egress. AWS GuardDuty raises a Backdoor:EC2/C&CActivity finding when an instance contacts a known C2 server. GuardDuty keeps findings for 90 days, so export them to long-term storage.

Add pkt-srcaddr to VPC Flow Logs through a custom log format to record the original source address behind a NAT gateway or other intermediate hop. Flow records are aggregated over one- or ten-minute windows, so use them for volume and destination questions, not request-level cadence.

In Microsoft Entra, watch the “Consent to application” and “Add delegated permission grant” audit activities, and treat grants against sensitive APIs such as Microsoft Graph as high severity. Consent events don’t show individual API requests, so turn on Microsoft Graph activity logging as well and send it to your SIEM or storage.

Hunting for Beaconing Proactively

Hunting looks for C2 that never produced an alert. IOC sweeps search history for published indicators, such as the indicators Google published for GRIDTIDE. Hypothesis hunts start from a TA0011 technique and a fact about your environment, for example a process other than a browser or sync client calling Google Sheets or Graph APIs on a schedule. Testing such a hypothesis needs a baseline that reaches further back than Entra’s 30-day log retention. Hunts that find something should end in a new detection, so the next instance generates an alert.

What to Do Once Beaconing Is Confirmed

A confirmed malicious beacon calls for rapid triage, evidence preservation, and a risk-based containment decision. Run scoping and containment in parallel where you can:

  • Isolate immediately when the stakes demand it: Active exfiltration, ransomware execution, or a threat to critical systems justifies containment before the full scope is known.
  • When isolation can wait, contain quietly: Use out-of-band communication and avoid touching attacker infrastructure, because pinging or browsing to it may tip off the operator.
  • Scope: Find every host and account tied to the same destination, process hash, pipe name, or cloud app, and pull logs before they age out.
  • If scoping finds one host: Preserve evidence and look for the initial access vector and any fallback channels. Don’t assume the incident stops at that host.
  • If scoping finds several hosts: Plan a coordinated eviction, with credential resets, host isolation, and blocks executed together.
  • Hunt for persistence: Check services, scheduled tasks, new accounts, OAuth grants, and RMM installations, then trace lateral movement from the beachhead.

The 2020 joint advisory AA20-245A warns that after a premature block an adversary can easily move to new C2 infrastructure and out of sight. Tipping them off can also push them toward more damaging actions, such as detonating ransomware. Redirecting an attacker to a sandbox to gather evidence delays containment, a delay NIST SP 800-61r3 calls potentially dangerous, so make that trade explicitly and with legal input.

Treat C2 as Proof an Intrusion Is Already Underway

A confirmed C2 channel is evidence of access already exercised, so the investigation should run backward to initial access and outward to every host and identity the channel touched. A ready C2 program can query enough history once a beacon is identified, tie a connection to the process and identity behind it in one console, and contain a host quickly when the risk calls for it.

Daylight’s MDR investigates C2 alerts through to resolution and takes response actions, such as isolating a host or blocking an IP, within the authority the customer grants. Threat Hunting is a separate Daylight service, in which security experts develop hypotheses like the ones above and specialized agents execute them at scale.

Frequently Asked Questions About Command and Control Detection

Where Does the Term Command and Control Come From?

The term comes from military usage, where command and control means a commander’s direction of forces. Security borrowed the name because attacker infrastructure runs the same control loop, issuing orders to implants and collecting what they send back.

How Is a C2 Server Different From a Botnet?

A botnet is the network of compromised machines, and C2 is the infrastructure that directs them. Most botnets take orders from central servers, and some are themselves used as relay infrastructure. The FBI described Volt Typhoon’s KV Botnet as compromised small office routers relaying encrypted traffic between one another, so the operators’ activity appeared to come from those routers.

What Is the Difference Between C2 and Data Exfiltration?

C2 is the control channel that delivers tasks and returns results, while exfiltration is the theft of data out of the environment. They overlap when attackers move stolen data over the existing control channel, listed under ATT&CK’s Exfiltration tactic as Exfiltration Over C2 Channel (T1041). A sudden jump in outbound bytes on a known beacon path warrants investigation for exfiltration.

Does Egress Filtering Stop C2 Traffic?

Egress filtering reduces an attacker’s options, but it does not stop C2 that rides allowed services. Restricting internet access for hosts that don’t need it, and using domain allowlists where outbound traffic is required, still narrows the field. Those limits push operators onto HTTPS, DNS, and trusted SaaS, where the detection methods above take over.

How Long Do Attackers Keep C2 Channels Open?

Public reporting rarely measures the lifetime of individual C2 channels, and attackers can rotate servers, domains, or tools within one intrusion. For context, Mandiant’s M-Trends 2026 puts the global median intrusion dwell time at 14 days for 2025, up from 11, and at 122 days for cyber espionage. The 122-day espionage median far outlasts default 30-day log windows, so retention must cover both the baseline and the full dwell period.

Subscribe to newsletter

Subscribe to receive the latest blog posts to your inbox every week.

Thanks for your interest.
Oops! Something went wrong while submitting the form.
By subscribing you agree to our Privacy Policy.
Two pinkish translucent bubbles of different sizes on a black background.Two pinkish translucent bubbles of different sizes on a black background.Two pinkish translucent bubbles of different sizes on a black background.
Illustration of a mythical hippocampus creature with the upper body of a horse and the lower body of a fish with scales and a curled tail.Illustration of coral colony with tube-shaped and frilled coral structures in shades of pink and red on a transparent background.

For expert judgment, scaled to your world, head for Daylight