Schema: Ein infizierter Rechner im Firmennetz sendet in regelmäßigen Abständen eine ausgehende Anfrage durch die Firewall an einen Command-and-Control-Server des Angreifers; von dort gehen Befehle zurück, gestohlene Daten fließen in die Gegenrichtung nach außen.

Command and Control

Command and Control refers to the remote control of computers that an attacker has secretly taken over. Through a central server, the attacker sends commands to the infected devices and retrieves data from them.

When an attacker plants malware on someone else's computer, the matter isn't over yet. The program may be sitting on the device, but the attacker still needs to be able to tell it what to do. That's exactly why the malware establishes a connection to the outside, to a machine under the attacker's control. Through this channel, commands come in and stolen data goes out. Experts call this channel and the associated technique Command and Control, often abbreviated as C2. The term originally comes from the military, where it describes the chain of command from leadership down to the individual unit.

The difference between breaking in and taking control

A single infected computer is worth little to an attacker as long as there's nothing they can do with it. Only the return channel turns the break-in into a lasting takeover. The attacker can then look at what's on the device, load additional programs, or work their way from there into other machines on the same network. Many attacks on companies go unnoticed for weeks because this channel quietly stays open in the background.

This becomes especially consequential with so-called ransomware, which encrypts all files and demands a ransom. The key to unlocking the files is typically transmitted over the control channel. Without this connection, the attacker couldn't run their own business model. The same applies to networks of thousands of hijacked devices that together flood a website with requests. Without central control, these devices would just be individual, harmless computers.

For defenders, this channel is therefore a valuable point of attack. Whoever finds and cuts it renders the malware useless in one stroke, even if it's still installed. Law enforcement agencies regularly take down such servers and sometimes even take over their addresses in order to count the infected devices and warn their owners.

How the return channel is hidden

The connection almost always originates from the infected computer, not the other way around. There's a practical reason for this: corporate networks block incoming connections very strictly, but hardly block outgoing ones. So the malware checks in with the server at intervals on its own and asks for new instructions. This regular knocking is called beaconing in industry jargon, after the beacon light of a lighthouse.

To keep this from standing out, attackers disguise the traffic as something ordinary. It then looks like a normal website visit or like an encrypted banking session, the kind that happens millions of times a day. Some malware even fetches its commands from public services, for instance from an inconspicuous post on a social network. The data stream then leads to a server that no security program would block.

Defenders therefore look less at the content and more at the pattern. A computer that checks in every sixty seconds, exactly the same way, with the same unknown address, doesn't behave like a human. Attackers counter this with randomized wait times and constantly changing server addresses. A common mistake, incidentally, is confusing C2 with the way in: the way in can be a phishing email, C2 is only what happens afterward.

C2 in security reports and corporate networks

The term appears in almost every report on cyberattacks. When it's said that investigators have dismantled a hacker group's infrastructure, this usually refers to their control servers. Such actions often cripple known malware networks for months, until the operators build new servers. Security firms also publish lists of known C2 addresses that companies can add to their filters.

In everyday life, one encounters this indirectly. The internet provider or the company's IT department blocks certain addresses so that infected devices can't reach their server. In larger organizations, specialized software closely monitors outgoing traffic for suspicious patterns. Security auditors also work with C2 tools when simulating an attack on behalf of a company.

For investors and observers of the tech industry, the term is relevant because a growing part of the IT security market is aimed precisely at this. Products for monitoring endpoints and network traffic essentially sell the promise of detecting such hidden channels. Recently, the term has also come up in connection with AI systems, when attackers try to remotely control autonomously operating programs through manipulated inputs.

Subscribe free. Unsubscribe the second it sucks.

High-signal news across AI, business, UX, and tech. Every morning.