A C2 server at a control desk sending orders to many infected devices and collecting data back.

C2 Server (Command and Control)

A C2 (command and control) server is the computer that sends instructions to software running on other devices and collects what that software sends back. In an attack, it is how criminals steer malware on compromised devices after the break-in; security teams run the same kind of setup in authorized tests.

CyberRecaps is supported by its readers. We may earn an affiliate commission at no extra cost to you if you buy through a link on this page.

Ghost in the Wires by Kevin Mitnick
Toy robots hidden in backpacks all check in with one secret group chat that hands out jobs.

Explain It Like I'm 10

Imagine someone hides tiny robot toys in their classmates' backpacks. In one common setup, each robot quietly sends the same message to one secret group chat every few minutes: "Anything for me?" Whoever runs that chat can answer with a job, like copying the homework a robot can see, and the robots send back what they find. If a teacher deletes the group chat, the robots stop getting jobs through it. They reach a new chat only if they have a way to find it, and the robots stay in the backpacks.

C2 Server Quiz

Test your knowledge about C2 Server - maybe you already know everything about it.

EasyQuestion 1 of 3

What does a C2 server primarily do?

An infected laptop checks in with a C2 server at intervals and receives a task card in the reply.

How a C2 server works

Once malware, software that carries out something harmful without the owner's permission, is running on a device, the attacker needs a way to tell it what to do next. The C2 server is that way.

A common pattern is for the malware to check in with the C2 server at intervals, asking whether there is anything to do. When the attacker has a task, the server hands it over in its reply: in one defender's description of a widely used implant, that can mean stealing passwords, logging keystrokes, taking screenshots or deploying ransomware across the network. The device carries out the task and sends the result back. In that pattern, the infected device starts each conversation, so the server's orders arrive as replies to traffic the device itself sent. Other patterns exist, traffic can pass through intermediaries such as proxies, and this describes malware that takes ongoing orders, not every kind of malware.

Where the name comes from

The name is borrowed from military language, where command and control is a commander's "exercise of authority and direction" over forces. MITRE ATT&CK, a public knowledge base of attacker behaviour built from real-world observations, makes Command and Control (TA0011) a whole tactic, "The adversary is trying to communicate with compromised systems to control them", with 18 techniques for doing it.

A coral-red data packet in a blue disguise slips through a network gate among ordinary traffic.

Why C2 traffic is hard to spot and block

MITRE notes that attackers "commonly attempt to mimic normal, expected traffic to avoid detection." They have several ways to do it:

  • Everyday traffic: C2 can travel over the same kinds of web, email and DNS traffic a network already carries, blending in with it.
  • DNS: the system that turns domain names into IP addresses, the numbers devices use to find each other on the internet, is so common that its traffic may be allowed even before a device has finished signing in to a network.
  • Trusted services: a legitimate online service can relay messages between the malware and the attacker, so the traffic goes to a site the network already trusts.
  • Encryption: encrypting the conversation hides what is being said, even when the connection itself is visible.
  • Changing addresses: instead of one fixed address, malware can work out new domain names to reach, which MITRE describes as a way "to evade common detections and remediations".

That is why blocking a single address may not cut the malware off.

Four small scenes compared: a C2 server, a botnet, red-team C2 and DNS tunneling.

C2 server vs botnet and other look-alikes

  • Botnet: a network of infected computers, or "bots", that a criminal controls remotely. The C2 server is the part doing the controlling; the botnet is the infected machines it controls.
  • Red-team C2: security teams run the same kind of server in authorized tests, called adversary emulation or red teaming, to imitate what real attackers do after a break-in.
  • DNS tunneling: one way to carry C2 traffic, hidden inside ordinary DNS queries.
  • RMM abuse: an attacker using legitimate remote-management software to control a machine, so the control channel is ordinary, legitimate software.
A seized C2 server stack while infected devices remain and reach for a fallback server.

Is C2 still used? What a 2025 takedown showed

Yes. In May 2025, Microsoft, the US Department of Justice and law-enforcement partners went after the infrastructure behind Lumma, a malware service that steals passwords, credit cards, bank accounts and cryptocurrency wallets. Microsoft said it had identified over 394,000 Windows computers infected by Lumma worldwide between 16 March and 16 May 2025. The Justice Department seized what Microsoft called Lumma's "central command structure", and Europol and Japan's cybercrime centre helped suspend Lumma infrastructure based in their regions.

What the seizures showed

The Justice Department described the five domains it seized as user panels, the login pages customers and administrators used to access and deploy Lumma. It seized two on 19 May; three new panel domains announced the next day were seized on 21 May. Replacing them shows an attempt to restore the management interface; it does not by itself show that infected computers reconnected to new C2 endpoints. A week later, Check Point reported that C2 servers registered in Russia had not been disabled, and in February 2026 Bitdefender reported that the operators had moved to other hosting providers and rebuilt.

Taking down C2 infrastructure disrupts the communication channel but does not remove malware from the devices. Existing malware also needs a way to reach replacement infrastructure, such as a built-in fallback mechanism, which MITRE's Fallback Channels technique describes. A new server alone does not guarantee reconnection.

An analyst spots a regular beacon pattern on a timeline, with a jittered pattern and an address blocklist nearby.

How defenders find C2

Defenders look for the habits a check-in pattern creates. Beaconing, the regular check-in, can look like normal traffic, but Elastic's security researchers note that it often shows more regular timing and packet sizes than most traffic, which varies far more. A device that contacts the same server at steady intervals can stand out once someone measures it.

Why regularity is only a signal

The same researchers note that much legitimate software also beacons, and that most sophisticated malware adds "jitter", a random variation in the check-in interval. Regular timing is therefore a lead to check against the process, destination and endpoint, not proof of malicious C2.

Addresses and behaviour

A C2 IP address is simply the network address of a C2 server. Lists of known C2 addresses and domains let defenders block them and search their logs for past contact, but attackers can replace them, and some malware works out new domains to reach on its own. That is why behaviour such as beaconing is a more durable thing to look for than any single address, an idea the Pyramid of Pain turns into a ranking of indicators by how much it costs attackers to change them.