Cyber Threats & Countermeasures

Botnet

About 4 min read

What Is a Botnet

A botnet is a network made up of many computers and devices that have been infected with malware and placed under an attacker's remote control. Each infected device is called a bot or a zombie, and it follows the attacker's orders while its owner never notices.

Because the infected machines in a botnet can be driven as a single unit, they are abused for DDoS attacks, bulk delivery of spam email, cryptocurrency mining, and theft of personal information. An attacker can mount a large-scale attack without preparing any infrastructure. In December 2022, Europol announced a crackdown on services known as booters or stressers that carry out DDoS attacks on request.

C&C Servers and Command Architecture

At the heart of a botnet sits the C&C (Command and Control) server. The attacker uses it to issue orders to the whole population of infected devices at once.

Centralized (Client-Server)
One C&C server, or a small number of them, controls every bot. The structure is simple and responses are fast, but if the C&C server is identified and cut off, orders stop reaching the bots.
Decentralized (P2P)
Bots relay orders to one another over a P2P network. Because there is no central server, a takedown is harder to carry out. GameOver ZeuS, known as the P2P form of ZeuS, and Hajime, which spread through IoT equipment, both adopted this design.
Domain Generation Algorithm (DGA)
Bots mechanically generate candidate domain names from the date and time, then look for the C&C server's domain among them. This makes it harder for defenders to secure the domains in advance. According to SRI International's analysis of Conficker, early variants generated 250 candidate domains a day across five TLDs, and later variants scaled up to trying 500 out of 50,000 candidates every day.

One example of a takedown is the international action against GameOver ZeuS on May 30, 2014, led by the FBI with investigators from ten other countries, including Japan. Europol's announcement describes the disruption of the botnet and the seizure of servers crucial to the CryptoLocker ransomware, and private companies helped prevent the malware from re-installing itself on computers it had been removed from.

How Botnets Are Exploited

  • DDoS Attacks: Many bots send requests to a target server all at once and bring the service down. On October 21, 2016, the DNS provider Dyn came under a DDoS attack. According to Dyn's statement, the attack had an impact in two waves, one in the morning and one just before noon, a third attempt was mitigated without customer impact, and one source of the traffic was devices infected by Mirai. KrebsOnSecurity reported outages and slowness at Twitter, SoundCloud, Spotify, Reddit, and other sites.
  • Spam and Phishing Campaigns: The attacker delivers mail in bulk from the IP addresses of many bots.
  • Credential Stuffing: Using lists of leaked account information, bots try to log in automatically to many services. Botnets are used to carry out these attacks.
  • Cryptojacking: The CPU and GPU resources of infected devices are used without permission to mine cryptocurrency into the attacker's wallet. The victim pays the electricity bill and absorbs the wear on the hardware.

The Mirai Botnet - A Turning Point for IoT Security

Mirai, identified in 2016, is a botnet whose main targets were not PCs but IoT equipment such as home routers, network cameras, and DVRs. Mirai looked for devices answering on Telnet ports 23 and 2323 and tried to log in with default user names and passwords.

CISA alert TA16-288A in the United States describes the default credentials Mirai tried as a short list of 62 common pairs and, citing another report, states that this list let the bot access hundreds of thousands of devices. The alert also states that the source code was published online at the end of September 2016, opening the door to wider use of the code in other DDoS attacks. Devices installed with their default passwords and equipment without any means of updating remain open to the same technique.

How to Protect Against Botnet Infection

The following measures address botnet infection for each type of device.

  • Keep OS and Firmware Updated: The basic measure against infection through vulnerabilities. Update the firmware of routers and IoT devices on a regular basis, not just PCs.
  • Change Default Passwords: A response to Mirai's use of default credentials. On routers, network cameras, NAS units, and other devices that connect to the network, replace the factory-set password with a strong one.
  • Close Unnecessary Ports: Close ports used for remote access from outside, such as Telnet (port 23) and SSH (port 22), when they are not needed.
  • Configure Your Firewall: Detect and block suspicious outbound traffic, such as connections to a C&C server.
  • Monitor Network Traffic: Put in place a mechanism that detects traffic patterns out of the ordinary, such as heavy communication in the middle of the night or periodic connections to unknown external IP addresses.

In corporate environments, using network segmentation to separate IoT devices from the business network is another option. If an IoT device is infected, this limits the spread of damage to the business network.

Common Misconceptions

Only PCs get infected by botnets
Mirai mainly targeted IoT equipment such as home routers, network cameras, and DVRs. Some of these devices remain in use without timely security updates.
You would notice immediately if your device were part of a botnet
An infected device can keep behaving as usual until it receives a command, so its owner will not necessarily notice during everyday use.
Antivirus software provides complete protection
Antivirus software is one of the measures for PCs. Some IoT devices, such as routers and network cameras, do not let users install security software. For these devices, firmware updates, password changes, and network-level defenses are the measures that apply.
Share

Related Terms

Related Articles