Schema: Mehrere befallene Geräte hinter einer Firewall bauen von innen nach außen Verbindungen zu einem zentralen Command-and-Control-Server auf; Pfeile zeigen regelmäßige Beacon-Anfragen hin und Befehle plus abgezogene Daten zurück, daneben eine Ersatzadresse als Ausweichweg.

Command-and-Control Server

A command-and-control server is the machine from which attackers control their malware on other people's devices. Through it they send commands and collect stolen data — and that's exactly why it's investigators' favorite target.

When an attacker secretly plants malware on someone else’s computers, the work isn’t done for him. The program sits on a device somewhere in the world, and he needs to be able to tell it what to do. To do this, he sets up a central machine on the internet that he controls himself. The infected devices check in with this machine regularly and ask for instructions. It’s called a command-and-control server, or C2 server for short: the command and control post of the attack. You can think of it as a radio hub relaying orders to a scattered troop and collecting their reports.

The central weak point of every piece of malware

A piece of malware without a connection to the outside is almost harmless. It might be able to delete files, but it learns nothing new and delivers nothing. Only the connection channel turns it into a tool the attacker can use flexibly. He can decide later whether to harvest passwords, encrypt data, or simply eavesdrop for weeks first.

This central hub is also the attacker’s greatest weakness. Whoever shuts down or redirects the server strips control from thousands of infected devices in one stroke. Law enforcement agencies exploit this deliberately: in international operations against large malware networks, the server infrastructure is regularly seized. Afterward, the programs on the victims' devices often keep running, but no longer do anything.

For businesses, this has a practical consequence. Suspicious outbound network traffic is often the first visible sign of a breach. That’s why security teams don’t just search for malware on hard drives, but also for devices communicating with known C2 addresses.

How the commands are transmitted unnoticed

The typical process is simple. The malware on the victim’s device establishes the connection from the inside out, not the other way around. This matters because firewalls — filters at the network edge — usually block connections coming in from outside but allow connections going out. At fixed intervals, the program checks in with the server for new tasks. This regular check-in is called a beacon.

To avoid drawing attention, attackers disguise the channel. They wrap commands in perfectly normal-looking website requests or in encrypted connections of the kind every browser uses. Some groups even hide instructions in public posts on social media platforms or in comments under videos. The traffic then goes to a service that nobody would think to block.

Because individual servers can be shut down, professional attackers work with fallback routes. They store lists of backup addresses, or have the address recalculated daily using a secret algorithm. A special case are networks without a real center: there, infected devices pass commands to one another directly. This is harder to destroy, but also harder for the attacker to control.

Botnets, ransomware, and the news coverage around them

The best-known example is botnets: large networks of hijacked devices that, on command, flood the same website until it collapses. Ransomware, too, which encrypts data and demands a ransom, often fetches its keys from a C2 server. It’s not just office computers that are affected anymore, but also routers, surveillance cameras, and other poorly secured internet devices.

In news reports, you usually encounter the term in one of two situations. Either investigators have taken down an infrastructure, in which case there’s talk of seized C2 servers. Or security firms publish an analysis and name the server addresses so that other companies can block them. Such address lists are known in the industry as Indicators of Compromise.

A common misconception is that such a server belongs to the attacker. Usually it sits with an ordinary hosting provider, often on a server that itself has been hacked, belonging to an unsuspecting company. And the term isn’t reserved for criminal use only: security teams use the same technique in test attacks to check their own company’s defenses.

Subscribe free. Unsubscribe the second it sucks.

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