C2 is how an intruder keeps control of a machine inside your network. Modern C2 is built specifically to look like ordinary traffic, which is why detecting it has to be about behaviour rather than a list of bad addresses.
MITRE ATT&CK techniques covered: T1071 Application Layer Protocol · T1071.004 DNS · T1090 Proxy · T1568.002 Dynamic Resolution: DGA · T1571 Non-Standard Port
C2 is short for command and control: the channel an intruder uses to reach software they have placed on a machine inside your network, to give it instructions and to receive what it has collected. Sometimes written C&C or CnC.
The abbreviation is used for other things entirely - command and control of forces in military doctrine, the top level of the European language framework, a vertebra - so the security sense is often written C2 server, C2 channel or C2 beacon to be unambiguous.
Inside security the word is also used loosely for four related but distinct things, and keeping them apart is what makes a detection claim meaningful:
The stereotype is a strange port talking to a strange country. Real operators stopped doing that years ago. What you get instead is traffic that is boring on purpose:
The premise is that you cannot enumerate the destinations, so you have to characterise the conversation. A blocklist is a useful extra input, never the primary one.
We do not decrypt TLS. The detections above are about timing, size, rhythm, destination and fingerprint, not about reading contents. That is a deliberate design choice and it is also why deployment does not require you to hand us keys or break inspection.
It also means a single-shot transfer with no ongoing channel is a different problem, handled by exfiltration detection rather than beacon detection. We would rather draw that line clearly than imply one detector covers everything.
Command and control: the channel an intruder uses to reach software they have planted inside your network, issue instructions and collect what it has gathered. Also written C&C or CnC. The same abbreviation means other things elsewhere, so the security sense is often spelled out as C2 server or C2 channel.
The machine or service at the operator's end of that channel. It is normally rented and disposable, which is why blocking one is a short-lived win: the operator stands up another and the implant follows it.
The implant checking in with its operator on a schedule to ask for instructions. The regularity is the giveaway. Software talking to a server on a near-perfect interval, for hours, with small and similar payloads, is behaving like a machine waiting for orders rather than a person using an application.
By its behaviour rather than its content. Timing, regularity, payload sizes, the length of the relationship, the reputation and age of the destination and how the client negotiates its encryption are all observable without reading anything. Encryption hides what is said, not the fact or shape of the conversation.
Purpose. C2 carries instructions and status, so it is usually small, regular and long-running. Exfiltration carries the data out, so it is usually larger and lopsided - far more leaving than arriving. They frequently use the same channel, which is why the direction and volume of bytes matter as much as the destination.
A botnet is many compromised machines controlled together, and it needs C2 to function. C2 is the control mechanism; a botnet is one thing you can build with it. A targeted intrusion against one organisation uses C2 and is not a botnet.
Toolkits that give an operator a ready-made implant and server. Because they shape the traffic in characteristic ways, some detections are really framework fingerprints - useful, and brittle, since a fingerprint is a thing a competent operator can change. Behaviour-based detection is what remains when they do.
Yes, and it commonly does, because traffic to a well-known service is usually allowed out and rarely questioned. That is precisely why the destination's reputation is a weak signal on its own and the pattern of the conversation is the stronger one.
Long enough to establish the rhythm. A single callback proves nothing; the regularity is the evidence, so a slow beacon checking in hourly needs more elapsed time than one checking in every thirty seconds.
Contain the host first, not the destination. The infrastructure rotates and blocking it buys hours; the compromised machine is the asset that still has your credentials and your network access on it.
Tell us whether you suspect something is already inside, or whether you want to measure what your current tools would catch. Either way you get a concrete next step.
Contact us