SOC 2 Readiness
24/7 Security Monitoring
Canadian-Based SOC
Back to Glossary
Threats & Attacks

What Is Command and Control?

Definition

Command and Control (C2 or C&C) refers to the infrastructure and communication channels that attackers use to remotely manage compromised systems, issue commands, exfiltrate data, and maintain persistence within a victim's network.

People Also Ask

Common questions about Command and Control answered by our security experts.

Command and Control in Practice

Command and control is the channel through which an attacker communicates with compromised systems — issuing instructions, retrieving data, delivering further tooling. It is the thing that turns a compromised machine into a useful one.

It is also the most consistently detectable element of an intrusion, because it has to communicate repeatedly and it has to leave your network to do so.


Beaconing is the characteristic signal

Implants check in on a schedule to ask for instructions. That produces regular connections to the same destination, which is a pattern almost nothing legitimate reproduces exactly.

Attackers add jitter — randomised intervals — to disguise it, and statistical analysis still identifies the underlying regularity. This is the single most productive detection available from network traffic analysis.


Hiding in legitimate services

Modern tooling avoids attacker-owned infrastructure. Cloud storage, collaboration platforms, code repositories, social media and messaging services are all used as channels, because the traffic goes to a reputable destination your organisation already permits.

That defeats reputation blocking and domain categorisation entirely. The destination is genuinely legitimate, which is why detection has to rest on pattern rather than on reputation.


Name resolution as a channel

Data and instructions can be encoded in domain lookups and responses. It is slow and it works almost everywhere, because name resolution is permitted when nothing else is.

It is also detectable: unusual query volumes from one host, abnormally long or high-entropy names, queries for many subdomains of one domain. This requires that resolution goes through your own infrastructure and is logged, which is the prerequisite most organisations have not met. See DNS security.

Detecting and blocking the channelPattern-based approaches hold up where reputation-based ones do not.Beaconing pattern analysis90Regularity survives jitterDNS query analysis80Volume, length, entropy, subdomain spreadEgress allow-listing85Prevention rather than detectionDestination reputation25Defeated by legitimate services
The traffic goes somewhere reputable; only the pattern gives it away.

Egress control is the strongest measure

Most networks permit unrestricted outbound traffic, which means any channel works. Restricting outbound connections to what is genuinely required removes most options, and it is achievable for servers and embedded devices even where it is impractical for user workstations.

Forcing name resolution and web traffic through controlled infrastructure, and blocking direct external resolvers, is what makes the remaining traffic observable.


Why it matters for response

Identifying the channel yields indicators that can be searched across the estate, which converts one infected host into a known scope. Blocking it severs the attacker's access without waiting for eradication.

Sequencing matters: blocking the channel alerts the attacker, who may have alternative access or may respond destructively. The order of containment actions is a decision worth taking deliberately rather than reflexively.

Servers should not have general internet access
A database or application server with unrestricted outbound connectivity can reach any controller. Servers have well-defined communication needs, which makes egress allow-listing practical for them — and it removes the channel rather than detecting it.

Frameworks, and why the traffic looks ordinary

Widely available offensive frameworks, including legitimate ones built for security testing, provide configurable channels that mimic normal web traffic — plausible headers, realistic request patterns, encrypted payloads inside ordinary-looking requests.

Because the tooling is legitimate and widely used for testing, its presence is not proof of compromise and its traffic is deliberately unremarkable. Detection rests on where the traffic goes and how regularly rather than on what it contains, which is why pattern analysis outperforms inspection here.


Where to start

Check whether your servers can make arbitrary outbound connections and whether endpoints can use external name resolvers directly. Both are the difference between a channel that works and one that does not.

See blocking the quiet exfiltration path. GuardsArm delivers managed detection and response.

Need Help With Command and Control?

Our certified security professionals can help you implement the right command and control strategy for your organization. Get a free assessment today.

Book a Free Consultation