Command and Control (C2)

Command and control (C2) is the communication channel attackers use to send instructions to malware on compromised devices and receive stolen data back, usually through a server they control that infected machines check in with.

IntermediateCategory: Malware

Also called: C2, C&C, command-and-control server, C2 server

What is command and control?

Once malware is on a device, the attacker needs a way to tell it what to do and to get stolen data out. MITRE ATT&CK lists command and control as its own stage of an attack, covering the techniques adversaries use to communicate with systems under their control. The term also refers to the servers that act as the attacker's control panel.

How does command and control work?

Infected devices regularly "call home" to the C2 server, asking for instructions. The attacker replies with commands: download more malware, search for files, spread to another machine, or start encrypting. To avoid being noticed, C2 traffic is usually disguised as normal activity. MITRE ATT&CK describes attackers hiding it in ordinary web traffic, DNS lookups or popular cloud services, and encrypting it so its contents can't be read.

Why it matters for defenders

Cutting the C2 channel stops the attacker from controlling the malware, and spotting C2 traffic is one of the best ways to find an infection that other tools missed.

How to protect your business

  • Use DNS filtering and firewall threat feeds to block known malicious domains and addresses.
  • Use EDR and network monitoring to spot devices making regular, unusual outbound connections.
  • Send logs to a SIEM or a managed detection service that watches for C2 patterns.
  • Restrict which devices can reach the internet directly, especially servers.

Related terms

Sources

  1. Command and Control (TA0011) (MITRE ATT&CK)
  2. Application Layer Protocol (T1071) (MITRE ATT&CK)

Drafted with AI assistance, then edited and fact-checked by a person. How we use AI.