0% found this document useful (0 votes)
1K views5 pages

Understanding Botnets and Detection Techniques

Cyber security notes for btech 2nd year AKTU

Uploaded by

talha7667358058
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views5 pages

Understanding Botnets and Detection Techniques

Cyber security notes for btech 2nd year AKTU

Uploaded by

talha7667358058
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
  • Botnet Architectures
  • Introduction to Botnets
  • Botnet Detection Techniques

BOTNET

Botnet is the combination of two terms, Bot stands for Robot and Net stands for Network, the group of
compromised infected internet connected devices are called botnet which is controlled by a human known as
Botmaster or Botherder. The botmaster control these infected devices remotely through command and control
server. Botnet provide the one-to-many relationship mechanism between command and control server and
bots, that’s why the botmaster use botnet for advertisement, cyber-attacks and so on. Once a device is infected
with malicious code, it becomes the part of a botnet, and start working for the botmaster without knowing to
the end user. Botnet propagate itself time to time by compromising more and more devices in the form of
mobile phones, laptops, PCs and different servers. The numbers of cyber-attacks which are found in the
internet nowadays, most users are affected by these attacks are performed through botnet. Botmaster can
perform different kind of cybercrime like DDoS, click fraud, phishing fraud, key logging, bit coins fraud,
spamming, sniffing traffic, spreading new malware, google AdSense abuse with bots.
Nowadays the botnet is becoming the base of all cybercrime which is performed through the interne.
Botmaster use different methods to infect a user device to make it bot (zombie) like drive by download ,
email and pirated software’s are the most common way of attacks. According to the previous research lots
of the detection approaches have been proposed. But most of them are focused on the offline detection of
botnet; still we need to focus on the real time detection.
Botnet detection techniques are categorize into two main groups given as
1. Honeynets Based Detection Technique and
2. Intrusion Detection System.

BOTNET LIFE CYCLE


When the botmaster wants to infect another victim device, for this botmaster should go through proper
phases, initial infection, secondary injection, connection, sending malicious code and maintenance &
updating. First a botnet infect new device connected to the internet, then it inject some malicious code using
different protocols like Hyper Text Transfer Protocol (HTTP), FTP and P2P. After successfully injecting the
malicious code, the victim device automatically make a connection with already existing command and
control server. Once a malicious code is injected to the victim device then it becomes a zombie. In the fourth
step the botmaster send commands the bot army through the command and control server. This performs
malicious activities according to the commands which the victim device receives from the command and
control servers. The last step is to maintain and update the zombie active all the time, it send updates to the
zombie devices time to time.
BOTNET ARCHITECTURES

A. Centralized Architecture: Centralized Botnet architecture is the easiest to control and manage by the
botmaster. In centralized architecture the botmaster control and supervise all the bots in a botnet from a
single central point called command and control server (C&C Server). Thus it’s meaning that in centralized
botnet architecture all the bots are receive commands and report to a central point called C&C server. There
are two types of topologies used in centralized botnet architecture; names are star topology and hierarchical
topology. The key protocols are used in centralized architecture are internet relay chat (IRC) and Hyper
Text Transfer Protocol (HTTP)

Management and monitoring of botnet is very easy because of one central point. The botmaster directly
communicate with bots very simply and quickly. In the centralized architecture the design is less complex;
while message latency and survivability is low. The botmaster send commands to C&C server from where
all these commands are spread in all bots with in a botnet. The main cons of centralized architecture are the
failure chances is more than other architecture.
Fig 3: Centralized Botnet Architecture[19][32][31] Fig 4: Decentralized Botnet Architecture[19][32][31]
Fig 5: Hybrid Botnet Architecture

Because of the central point of controlling, if the C&C server becomes failure then all the botnet will be
failur. Similarly the detection of botmaster is very easy as compare to decentralize and hybrid architectures.

B. Decentralized Architecture: In decentralize or peer to peer architecture there is no single entity responsible
for controlling the bots in a botnet. There are more than one C&C server which communicate with bots. The
detection of such a botnet which using decentralized architecture is harder as compare to centralized
architecture. In decentralized architecture there is no specific command and control server; all the bots are
acting like a command and control server as well as clients.

Decentralized architecture based on the peer to peer protocols. As compare to centralized architecture the
design of peer-to- peer architecture is more complex, detection of botnet have such architecture is harder than
other botnet. Similarly message latency and survivability is high than centralized botnet architecture. In
decentralized architecture the failure chances are less as compare to centralized architecture because if one
command and control server becomes failure then the other C&C server can manage and monitor the botnet

C. Hybrid Architecture: Hybrid architecture is the combination of both centralized and decentralized
architecture. In hybrid architecture there are two types of bots, one is servant and the other is client bot. The
bots are connected to the hybrid botnet either they are client or servant. Monitoring and detection of botnet
having hybrid architecture are harder than botnet having centralized and decentralized architectures; while
the design is not much complex.

BOTNET DETECTION TECHNIQUES:


Botnet detection is the most important task to improve the cyber-security against various cyber-attacks
occurs in internet nowadays. According to the previous research botnet detection techniques can be
classified into two categories honeynets detection techniques and intrusion detection techniques. Intrusion
detection system is further divided into sub-categories.

Honeynets& Honeypots Based Detection System: Honeynets and Honeypots both are denoting the end user
devices. These end users PC’s are the best way to collect critical information about the cyber-attacks. This
end user PC is very easy for botmaster to attack and compromise, because it’s very vulnerable to malicious
attacks. The cyber-security group will be able to make good detection techniques under the collected
information about the botnet attacks through these honeynets.
According to the previous research the botnet change their signature time to time because of the security
purpose and honeynets are important for understanding these botnet properties. In honeynets detection
technique honeywall is very important, which is used for monitoring, collecting, modifying and controlling
communication over the honeypots.

Fig 6: Botnet Taxonomy

 IDS (Intrusion Detection System): Intrusion detection system is using for monitoring the traffic flow for
the malicious activities of a network. During the traffic if it found some malicious attack it directly inform
the computer system or the administrator of the system. IDS have also the capabilities to take action against
such malicious activities to block the traffic coming from the virus infected system. There are two types of
intrusion detection system one is signature based and the other is anomaly based.

A) Signature Based Detection: In signature based botnet detection technique the malware known as the
packet sequences or the transportation of the bytes series in seeking network. The key advantage of this
detection technique is that signatures are so simple to grow and realize if you know what network
performance you’re trying to find. This technique is too much simple and easy to understand and develop.
The Botmaster change signatures of every attack with time because to make a botnet attack more secure from
the bot infected machine

B) Anomaly Based Detection: This technique focuses on the idea of criterion for network performance.
Anomaly based botnet detection technique can accept only that network activities or traffic which is
specified by the administrators or which is feed by the administrator or both in the advance. In this technique
the rule should be defined in advance for each protocol and each should be tested for accuracy. It detects
those events which not related to the feed or accepted model of performance. Anomaly based detection
technique is a little bit expensive according to computation but it is more secure than signature based
detection technique. This technique has also some disadvantages in which the main cons is definition of rules
is very difficult. For different protocols there are different rules are defined, which are more hard job.
Anomaly based technique is also have some limitation about the time and monitoring the bot infected
machines This technique is further categorized into network and host based detection techniques.

Common questions

Powered by AI

Centralized botnet architecture is characterized by a single command and control server that manages all bots, allowing for easy management and monitoring due to a singular control point . However, it has high failure chances if the server is compromised, as it entails all bots reporting to one central point . Decentralized architecture lacks a single controlling entity, leveraging multiple servers where each bot acts both as a client and server, using peer-to-peer protocols, resulting in higher message latency and better survivability . Detection of decentralized botnets is challenging due to their complex architectures and distributed control . Hybrid architecture combines elements of both centralized and decentralized systems. It uses servant and client bots to maintain balance, offering a design that is less complex than pure decentralized architectures but more difficult to monitor and detect than the simple centralized ones .

To enhance real-time detection and response to botnet activities, strategies such as deploying advanced intrusion detection systems (IDS) that integrate machine learning algorithms can be implemented to analyze large data flows dynamically and identify potential threats . Additionally, employing threat intelligence feeds that provide up-to-date information on emerging threats can bolster detection capabilities by supplementing IDS with real-time threat data . Organizations can also implement network segregation practices to minimize the spread of infections, while continuous monitoring and updating of security protocols can ensure resilience against new botnet tactics . Moreover, collaborative efforts between industry and cybersecurity researchers can lead to the development of more sophisticated defense mechanisms that adapt to evolving threats .

Real-time botnet detection is more challenging than offline detection due to the need to process and analyze large volumes of data instantly to identify and mitigate threats as they occur . Offline detection methods, although effective in analyzing past activities, cannot provide the immediate feedback required to prevent damage from ongoing attacks . To address these challenges, approaches like intrusion detection systems (IDS) that use both signature-based and anomaly-based techniques have been proposed. Signature-based IDS offer fast detection but risk missing novel threats, while anomaly-based IDS provide broader detection potential, albeit at higher computational costs and complexity due to rule definition requirements . Maintaining a balance between these methods is key to improving real-time detection capabilities .

Intrusion detection systems (IDS) are critical in defending against botnet attacks by monitoring network traffic for signs of malicious activity and informing system administrators of potential threats . Signature-based IDS identify threats by comparing network activity against a database of known attack patterns, providing fast and straightforward detection but limited to known threats . Anomaly-based IDS, on the other hand, monitor for deviations from normal network behavior, potentially identifying novel threats but requiring more complex setup and analysis to accurately define what is considered normal . This method also incurs higher computational costs and faces challenges in rule definition across various protocols .

Peer-to-peer protocols enhance the complexity and resilience of decentralized botnet architectures by allowing bots to function as both clients and servers, eliminating a singular point of failure that characterizes centralized architectures . This decentralized communication increases the botnet's resilience since the failure of one node does not compromise the entire network . Additionally, the inherent complexity of peer-to-peer networks makes detection by defenders more difficult, as there is no centralized control server to target . However, this also raises the complexity involved in managing and synchronizing botnet activities across a distributed network, requiring sophisticated command dissemination protocols to maintain coordinated actions .

If a centralized command and control (C&C) server within a botnet's architecture is compromised, it can lead to the collapse of the entire botnet operation because all bots rely on this central node for instructions and coordination . This vulnerability presents a significant risk to the botnet's sustainability, as the failure of the C&C server disrupts communication among bots, inhibiting their capacity to carry out malicious tasks as directed by the botmaster . Additionally, the compromise of a centralized server can expose the botmaster's identity and operational methodologies, further mitigating the botnet's threat level . This vulnerability starkly contrasts with decentralized architectures, which are less susceptible to single points of failure .

The botnet lifecycle involves several stages ensuring continuous maintenance and control of infected devices. Initially, a device is infected and injected with malicious code using protocols like HTTP or FTP, creating a connection to the command and control server . Once connected, the device becomes a 'zombie' and receives commands from the botmaster. These commands direct the bot to perform activities that align with the botmaster’s goals . The lifecycle concludes with the active maintenance and updating of the malicious code, ensuring the device remains continuously compromised and operational under the botmaster's control .

Botmasters exploit various protocols such as HTTP, FTP, and P2P to infiltrate devices and inject malicious code, establishing a connection between infected devices and command and control servers . These protocols are commonly used for legitimate internet traffic, making malicious usage difficult to distinguish from regular activity, thus complicating detection efforts for cybersecurity defenses . The implications for cyber defense include the need for advanced monitoring systems capable of discerning malicious communications amidst normal traffic and developing comprehensive detection strategies that account for the misuse of these protocols . Additionally, cyber defenses must evolve continually to counteract new techniques that botmasters might employ to avoid detection .

Anomaly-based detection techniques offer significant advantages in botnet detection through their ability to identify previously unknown threats by monitoring deviations from established norms in network activity, thus providing a broader detection scope than signature-based techniques . However, they are computationally intensive and require complex configurations, as the definition of normal behavior must be rigorously defined and maintained across diverse network environments . In contrast, signature-based techniques are less resource-intensive and easier to implement, effectively identifying known threats quickly but limited in their capacity to detect novel or modified threat signatures, making them susceptible to evasion techniques employed by botmasters . Developing hybrid strategies that combine both methods might leverage their strengths while offsetting respective weaknesses .

Honeynets and honeypots are instrumental in botnet detection by simulating vulnerable systems that attract cyberattacks, thus gathering information about attack vectors and botnet behaviors . These tools are particularly effective because they can provide real-time insights into evolving threats and malware signatures used by botmasters . However, the primary weakness of honeynets is their inherent vulnerabilities, which could be exploited by attackers to gather intelligence about defensive measures . Furthermore, effective use of honeynets requires significant expertise and resources to manage the collected data and interpret it correctly for proactive defenses .

You might also like