A Comprehensive Review of Cyber Security Vulnerabilities, Threats, Attacks, and Solutions

: Internet usage has grown exponentially, with individuals and companies performing multiple daily transactions in cyberspace rather than in the real world. The coronavirus (COVID-19) pandemic has accelerated this process. As a result of the widespread usage of the digital environment, traditional crimes have also shifted to the digital space. Emerging technologies such as cloud computing, the Internet of Things (IoT), social media, wireless communication


Introduction
The Internet, which emerged as a communication and sharing environment, quickly impacted the geography of the whole world.In particular, the 21st century has been and continues to be the century in which world geography is intertwined with the Internet network.Hence, people worldwide can communicate with each other at high speeds through the Internet, and a strong bond has been formed between states in critical commercial, political, economic, and sociocultural fields.The Internet has three basic entities: computers, users, and networks [1].It has been observed that network technologies have developed thanks to constantly changing computer technologies and user segments that have started to have various abilities.However, the developing and widespread use of network technologies has also brought about critical security problems.Therefore, attempts

•
The current situation and deficiencies of the cyber security field and the technological developments in this context are explained; • Basic information about cyber security fundamentals is provided; • Cyber security risks, threats, attacks, and current studies in these areas are presented; • Network security, OSI layers, and attacks on each layer are explained; • Existing challenges, problems, and new assumptions are proposed.
Considering the mentioned contributions, this study has some advantages for researchers in this field:

•
The importance of cyber security can be understood; • Even a beginner researcher can learn the basics of cyber security;

•
One can easily obtain information about the most known and common threats and attack types; One can be informed about the latest current studies in this field; • One can acquire a systematic overview of the cyber security field for further studies.
The rest of the article is organized as follows.Section 2 gives basic information about cyber security fundamentals.Section 3 explains the well-known threats, vulnerabilities, exploits, and cyber attacks.General information about network security is presented in Section 4, and Section 5 describes cyber security solutions, recommendations, challenges in their implementation, and directions for future research.Finally, the conclusion is given in Section 6.

Cyber Security Fundamentals
In this section, the history of cyber crime and security fundamentals are explained.Additionally, the importance of cyber security, the reasons for the increasing number of cyber attacks from both technical and nontechnical perspectives, and potential countermeasures are discussed.

History of Cyber Crime and Cyber Security
There have been different definitions for cyber security, such as data security, information security, network security, and cyber security, when protecting data in a digital world.Data security aims to protect digital data from unauthorized access, modification, or disclosure throughout its lifecycle [14].Information security is the practice of preventing unauthorized access, use, disclosure, modification, review, recording, or destruction of physical or electronic information [15].The primary purpose of information security is to protect the confidentiality, integrity, and availability of data.Network security aims to safeguard the confidentiality, integrity, and accessibility of computer networks and data transmitted in communication media [16].On the other hand, cyber security is the practice of protecting computers, servers, mobile devices, electronic systems, computer networks, and data from malicious attacks.While data security, information security, and network security aim to prevent unauthorized access, use, modification, or destruction of stored data or data in transit, cyber security has a much wider application area that covers end-to-end information flows.Nowadays, the term "cyber security" is mainly being used.
Cyber crime started several years ago.At that time, it was easier to defend the digital world because there were fewer machines in the digital environment, and the attacks were not as complicated as they are now.However, technological developments have allowed cyber criminals to build automated tools to launch sophisticated cyber attacks over time.Additionally, various machines and platforms have been added to the Internet, including smartphones, tablets, IoT devices, cloud platforms, social media platforms, and many more [17].All of these reasons have made cyber crime evolve from simple jokes to sophisticated attacks that cost trillions of dollars to the world economy annually in the digital environment.The classification of cyber crimes over the decades is given in Table 2.The first computers appeared in the early 1940s [18].At that time, there was no Internet connection, and only limited usage of computers was possible.Since there was no information sharing between computers, there were no threats or attacks on computers.Phone phreaking started in the 1950s.Phone phreaks attempted to hijack the protocols used in the phone systems to make free calls or reduce the phone call fees for long distances.At that time, several phone companies could not prevent phone phreaking.In the future, similar techniques to phone phreaking would be used to hack computer systems.
The term "hacking" for computer systems first appeared in the 1960s.In 1965, the first vulnerability was found in the IBM 7094 Compatible Time-Sharing System (CTSS) machine [19].In 1967, IBM hired a group of students to explore their newly designed computer [18].The students learned the computer system's language and gained access to different system parts.This example proved that computer systems have vulnerabilities, and this case was the first example of the ethical hacking practice.The foundation of cyber security began in the early 1970s with a project called "The Advanced Research Projects Agency Network" (ARPANET).This was the first packet-switched network before the Internet.In 1971, Bob Thomas created the first virus called the "Creeper", which could move over an ARPANET network [20].Following the "Creeper", Ray Tomlinson created "Reaper", which could also move across the ARPANET and delete the "Creeper" [21]."Reaper" was the first example of an antivirus program.In 1979, a famous hacker, Kevin Mitnick, was arrested for the first time for cyber criminal behavior [20].
Several computer-related attacks were seen in the 1980s.Mainly, computer viruses were used in this decade.The term "cyber espionage" began to be used in this period because a significant fear was the threat from other governments.In 1985, the United States of America (USA) Department of Defense (DoD) created computer security guidelines called "Trusted Computer System Evaluation Criteria" (TCSEC), which were later named "Orange Book" [22,23].The TCSEC was the first security guide for computer systems.In 1986, German hacker Marcus Hess infiltrated the systems of the governments of the USA, East Asia, and Europe [24].He could access around 400 military computers.The hacked information included space, satellite, and aircraft technologies [25].Security became a primary concern for businesses at this time.Commercial antivirus software was first released in 1987 [18].In the 1990s, there was tremendous growth in computer systems and the Internet.The computer virus and its different versions became very popular.Macroviruses were released in 1996.In the late 1990s, the Melissa and ILOVEYOU viruses infected millions of computers across many countries [26].In 1995, Netscape introduced the Secure Sockets Layer (SSL) protocol, which secured user connections over a computer network.
Throughout the 2000s, the Internet grew exponentially, and computers became increasingly common in work and home environments.While the widespread use of computers has increased productivity, it has also introduced security risks for many users.In other words, the increased usage of computers has also increased cyber crime.The first organized hacker group emerged in the 2000s, and computer worms and Trojans became popular attack methods.Simply visiting an infected website was enough to contract a virus without downloading files.In 2004, the MyDoom worm was responsible for distributed denial of service (DDoS) attacks and remote access [26].In 2007, the Zeus Trojan used drive-by downloads and spam emails to steal login credentials, including bank, social networking, and email accounts.
During the 2010s, cyber criminals identified several security breaches in software and computer network protocols.These breaches resulted in individuals losing millions of dollars and big companies and countries losing billions yearly.In 2016, Mirai malware exploited an IoT device vulnerability to launch DDoS attacks [27].Between 2010 and 2020, ransomware-related attacks became increasingly popular.The WannaCry ransomware, for example, encrypted computer systems and affected 150 countries across the globe [28,29], while the LockerGoga ransomware blocked infected systems and caused millions of dollars in damage [30].In 2020, the CovidLock ransomware encrypted data on Android devices and denied access to the data [31], affecting several Android devices.
In the 2020s, hacking almost anything in the digital world is possible.Some professional websites even provide automatic applications and tools for hacking as a service [32].Cyber attacks that are timely and effective can result in huge profits, which is why big companies and governments are investing heavily in this area [33].The evolution of cyber attacks over the years can be seen in Table 3.
The methods used to spread attacks have changed over time.Vulnerabilities in hardware, software, and networks, phishing scams, and social engineering techniques are all commonly used.These attacks are often spread through drive-by downloads, malicious email attachments, and fake applications (Table 3).With the development of new attack tools, it is now possible to access someone's banking system, steal sensitive data from big companies, encrypt computer data on hard drives, and prevent access to big companies' resources by launching DDoS attacks.These attacks cost billions of dollars annually across the globe.In addition, new devices such as smartphones and IoT devices have increased attack surfaces.Cyber criminals constantly elaborate on existing cyber attacks by generating different versions and using new attack variants for smartphones and IoT devices.Recent studies have shown that fake applications, backdoors, and banking Trojans are rising for mobile devices [34].Furthermore, cyber attacks related to social media, IoT devices, cryptocurrency, and the cloud computing environment are also increasing.

Principle of Information Security
Figure 1 illustrates the three dimensions of cyber security.The first dimension is focused on protecting information from attackers, also known as the "principle of information security."This principle includes the concepts of confidentiality, integrity, and availability (CIA) [35].The second dimension of cyber security aims to protect data in all states, whether in storage, transit [36], or in process.For example, data can be transferred between devices using Sneakernet, wired, and wireless networks.Therefore, cyber security measures must ensure data confidentiality, integrity, and availability when data are stored or transmitted between network devices and hosts (Figure 1).Finally, the third dimension of cyber security involves using additional tools, such as policies and practices, new technologies, and user awareness, to assist in protecting cyberspace.
The principles of information security, including confidentiality, integrity, and availability, are explained as follows.

Confidentiality
Confidentiality is the protection of information from unauthorized users and programs in the digital world.Data can be categorized as Top Secret, Secret, Confidential, and Unclassified [37].Top Secret and Secret data are crucial and require the highest levels of protection, as their disclosure can cause enormous damage to national security.Hence, access to such data must be strictly restricted.Confidential data are also sensitive and should not be disclosed.On the other hand, unclassified data are not sensitive and are publicly available to anyone, with no impact on national security.Therefore, governments, organizations, and companies must train employees to safeguard their valuable assets from cyber attackers, including Top Secret, Secret, and Confidential Information.To maintain the confidentiality of data, encryption, authentication, and access control techniques can be used.
Kaseya Ransomware Attack 2021 zero-day exploits were used around 1500 companies' data were compromised with the request of 50,000 to 5 million dollar ransoms per victim

Principle of Information Security
Figure 1 illustrates the three dimensions of cyber security.The first dimension is focused on protecting information from attackers, also known as the "principle of information security."This principle includes the concepts of confidentiality, integrity, and availability (CIA) [35].The second dimension of cyber security aims to protect data in all states, whether in storage, transit [36], or in process.For example, data can be transferred between devices using Sneakernet, wired, and wireless networks.Therefore, cyber security measures must ensure data confidentiality, integrity, and availability when data are stored or transmitted between network devices and hosts (Figure 1).Finally, the third dimension of cyber security involves using additional tools, such as policies and practices, new technologies, and user awareness, to assist in protecting cyberspace.The principles of information security, including confidentiality, integrity, and availability, are explained as follows.Encryption is a mathematical technique that converts the original information into an unreadable version, concealing it from unauthorized access [38].Encryption has been extensively used in cyber security to safeguard computer systems and data from brute-force attacks, spyware, and ransomware.Access control identifies various protection mechanisms that prevent unauthorized access to computer systems and networks.Access control is a fundamental security concept that minimizes the risk for organizations.The concept of AAA provides three security services: Authentication, Authorization, and Accounting.Authentication prevents unauthorized access by verifying the users' identities through a username-password combination [39].Authorization identifies which computer and network resources users can access and which operations they can perform [40].Accounting monitors users' activities, the resources they access, and the changes they make.In the later sections, we explain in detail how encryption, authentication, and access control work.

Integrity
Integrity is related to data accuracy, quality, consistency, and completeness [41] during their entire life cycle.To ensure its integrity, information can be changed only by users with the right to change it.Data integrity is a top priority for modern enterprises for various reasons [42].Data integrity ensures recoverability, traceability, and connectivity.Data integrity can be lost due to physical device compromise, disk crashes, malware, hacking, inconsistent formats, data transfer errors among devices, and human error.Hashing, data consistency checks, and data validation checks can be used to preserve data integrity.

Availability
Availability is related to data accessibility.In other words, data are available when an authorized user requests or uses them [43].System failures and cyber attacks may prevent access to information systems and services.DDoS attacks are one of the most destructive cyber attacks that target a system's availability when legitimate users try to access it.Unfortunately, there is no well-known system that completely stops DDoS attacks.To ensure availability, system backups, system redundancy, system resiliency, and up-todate operating systems, as well as software, must be used.In addition, the system should eliminate single points of failure and detect failures as soon as they occur.

Why Cyber Attacks Are Increasing
In recent years, the importance and use of the Internet have rapidly increased worldwide.This increase has led to the transfer of daily life to the digital world.The COVID-19 (2019 Coronavirus disease) epidemic accelerated this process.For example, people now develop friendships in social media environments, access online banking systems, and plan online seminars and meetings (Figure 2).These reasons have also led to the transfer of daily crimes to the Internet.Cyber crime is carried out by individuals or organized groups known as hackers.Hackers have in-depth knowledge of operating systems, can write computer programs quickly, and can detect program and system vulnerabilities in a short period [44].The development of new attack tools, as well as the tremendous economic benefit, motivates cyber attackers.According to recent studies, the damage caused by cyber attacks to the world economy is expressed in trillions of dollars, and this damage is increasing gradually.For the reasons mentioned above, cyber-related attacks are increasing day by day.Before discussing these attacks in detail, reviewing the main reasons that cause and motivate cyber attacks is beneficial.The major reasons for cyber attacks can be listed as follows (Figure 2): 1.
Causes arise from existing system errors; 2.
Causes arising from emerging technologies; 3.
Reasons arising from the increase in knowledge; 4.
Transferring daily life into a digital environment; 5.
The attacks have no geographical boundaries, which makes detecting attacks challenging.

2,
x FOR PEER REVIEW 10 of 43 write computer programs quickly, and can detect program and system vulnerabilities in a short period [44].The development of new attack tools, as well as the tremendous economic benefit, motivates cyber attackers.According to recent studies, the damage caused by cyber attacks to the world economy is expressed in trillions of dollars, and this damage is increasing gradually.For the reasons mentioned above, cyber-related attacks are increasing day by day.Before discussing these attacks in detail, reviewing the main reasons that cause and motivate cyber attacks is beneficial.The major reasons for cyber attacks can be listed as follows (Figure 2): 1. Causes arise from existing system errors; 2. Causes arising from emerging technologies; 3. Reasons arising from the increase in knowledge; 4. Transferring daily life into a digital environment; 5.The attacks have no geographical boundaries, which makes detecting attacks challenging.

Causes Arising from Existing System Errors
The main reason for the rapid increase in cyberattacks is the structure of computer systems and communication networks.The vulnerabilities, deficiencies, and misconfigurations in hardware, software, and computer networks expose the systems to attacks that hackers exploit.Due to the high number of software-based vulnerabilities and deficiencies in protocols in computer networks, the system becomes defenseless against cyberattacks.Additionally, users who lack knowledge about the digital environment and how to use

Causes Arising from Existing System Errors
The main reason for the rapid increase in cyberattacks is the structure of computer systems and communication networks.The vulnerabilities, deficiencies, and misconfigurations in hardware, software, and computer networks expose the systems to attacks that hackers exploit.Due to the high number of software-based vulnerabilities and deficiencies in protocols in computer networks, the system becomes defenseless against cyberattacks.Additionally, users who lack knowledge about the digital environment and how to use computer systems also contribute to the causes of cyberattacks.The causes arising from existing system errors are classified into three groups: attacks caused by hardware deficiencies, attacks caused by software-based bugs, and attacks caused by vulnerabilities in computer networks.

1.
Attacks caused by hardware deficiencies: Attacks initiated by hardware flaws and errors are more difficult to prevent because software-based tools are insufficient to detect and prevent hardware-related attacks [44].Trojan horses are often the root cause of hardware attacks.These malicious software variants cause excessive use of computer resources, reduce performance, and cause the system to shut down by consuming excessive power supply [45].Moreover, copying hardware parts illegally and obtaining untrusted components online create backdoors in the computer system.
The intertwining of hardware parts and the complexity of integrated circuits make it challenging to detect hardware-related vulnerabilities.A change in only one integrated circuit can affect many components and may go undetected for a long time [46].Therefore, detecting and responding to cyber attacks using a well-designed hardware vulnerability is challenging.Some methods have been proposed to prevent cyber attacks caused by hardware flaws and errors.Tamper-proof hardware devices, hardware watermarking, and obfuscation can play a significant role in preventing these attacks [47].

2.
Attacks caused by software-based bugs: Most cyber attacks are still driven by errors, vulnerabilities, and deficiencies in application software.These vulnerabilities and errors are increasing every day [48,49].The leading causes of software-related vulnerabilities and errors can be listed as follows: a. Input validation errors; b.
Problems with user access control; c.
Incomplete or incorrect authentication; d.
Migrations directory problem; e.
Buffer overflow; f.Problems caused by Structured Query Language (SQL); g.
Using components with known vulnerabilities; i.
Issues with web services and APIs; j.
Improper software security testing.
Software is developed rapidly, but security tests are often inadequate in both the development and testing phases.Developer teams' lack of knowledge about secure software development processes exacerbates the problem.Using applications on different platforms and devices also creates vulnerabilities that increase software-related attacks.For instance, adding more data to a buffer than it can hold may cause unauthorized users to access the system or result in lost data [50].SQL attacks can overload databases and lead to the theft of usernames, passwords, and credit card information.
While software updates are the most recommended method for fixing software-related errors and deficiencies, they do not always provide a solution.During software updates, errors and vulnerabilities are not eliminated; in some cases, new updates cause new problems.The most effective way to minimize software-based attacks is to produce an errorfree program design and requirements before writing code in the software development process life cycle.For this reason, it is crucial for software developers to receive training in the secure software development process.Creating software quickly and trying to fix security vulnerabilities later is not the right approach.Therefore, security threats and attacks should be considered during software development, and all code blocks should be tested manually and automatically at every stage.For example, Microsoft made the use of security development life cycle (SDL) steps mandatory, significantly decreasing errors and vulnerabilities in the software process.The Windows Vista operating system, developed by applying SDL, contains approximately 45% fewer errors and vulnerabilities than Windows XP, which was written without SDL [51].

3.
Attacks caused by vulnerabilities in computer networks: During data transfer over the Internet, hackers can access, modify, or completely change the data.The main reason for such threats is using previously created computer network protocols and devices without any security concerns [44].The vast majority of attacks against computer networks arise due to vulnerabilities in network protocols, such as Transmission Control Protocol (TCP), Internet Protocol (IP), Address Resolution Protocol (ARP), Dynamic Host Configuration Protocol (DHCP), and Domain Name System (DNS).For instance, since there is no structure to control the accuracy and confidentiality of packets while carrying them over the network using IP, information in the packets can be exposed and changed during transport.Similarly, since DNS responses are not verified, attackers can create fake servers, and users might connect to these counterfeit servers instead of the actual server.Attackers can also send excessive requests to DNS servers, making them unavailable for legitimate users.Moreover, attackers can capture information during data transport due to incomplete or incorrect configuration of network devices, including switches, routers, and wireless access points.
Existing protocol vulnerabilities must be reduced, new protocols must be added, and network devices must be configured correctly and thoroughly to protect data as they move across computer networks.Commonly used cyber security techniques to minimize network attacks can be listed as follows: a.
Use of encryption; b.
Use of access control list (ACL)l; c.
Use of virtualization and VLAN (Virtual LAN); d.
Use of firewall; e.
Use of intrusion detection, prevention, and protection systems (IDPS); f.
Use of web security appliance (WSA); g.
Use of email security appliance (ESA); h.
Use of virtual private network (VPN); i.
Use of transport layer security (TLS) and secure socket layer (SSL) protocols.
Although the data are secured to a certain degree in the network environment by using these techniques, they cannot be said to provide complete protection.Therefore, it is necessary to improve these techniques and propose new ones.

Causes Arising from Emerging Technologies
With the rapid development of technology, new devices and software are being added to the Internet environment every day, such as smartphones, tablets, Internet of Things (IoT) devices, and cloud technology.The generation of numerous application programs in a short time and the addition of new devices, including smartphones and IoT devices, to computer networks, increase the number of cyber attacks.Additionally, storing information belonging to different companies on the same physical structure in the cloud environment and having these environments managed and maintained by third parties also raise security concerns.The reasons arising from the development of new technologies can be listed as follows: 1.
Increasing number of smartphones: The number of smartphones in use today is approximately 6 billion, and almost one out of every two people uses a smartphone.Personal data stored on these devices, the growing number of software applications developed for them, and the use of wireless networks for Internet access make these devices appealing targets for attackers.According to cyber security threat reports from Symantec [52] and McAfee [53], there has been a significant increase in the number of malicious software created for smartphones.Malware samples written initially for traditional computers can be adapted for smartphone use with minor changes to the program code.

2.
Increasing number of IoT devices: Smart devices, such as smart glasses, smart watches, smart parks, and automation systems, collectively known as the Internet of Things (IoT), are gradually being added to the Internet environment.The number of IoT-based Internet-connected devices is predicted to reach around 50 billion shortly.The large amount of data traffic generated by these devices will make it difficult to control the computer network.It can cause significant data loss in the event of a cyber attack.The rapid increase in the Internet of Things devices makes this an emerging cyber attack vector.

3.
Increasing usage of cloud computing: Cloud computing has emerged as a new technology that has developed recently and serves according to user demand.Amazon, IBM cloud, Google, Rackspace, Microsoft, and Salesforce are widely known cloud computing service providers.The fact that it is easy to use, accessible from different devices and locations, and that the service provided is flexible and scalable according to requested demand increases the usage of this technology.In addition, the fact that processes that bring additional burdens, such as maintenance, repair, and updates, belong to cloud service providers also increases the demand for this technology.On the other hand, giving additional privileges to third parties raises security issues in the cloud environment.Problems related to cyber security in cloud environments generally arise for the following reasons: a.
The companies and institutions requesting the service lose control over the data; b.
Using the same physical resources for different companies; c.
Security concerns regarding data storage in the cloud; d.
Concerns arising from the use of virtual machines; e.
Attacks that occur while data are being moved over the computer network.
While data are stored in the cloud environment, the user's control over the data is completely lost.In other words, users have no idea where their data are stored or what security measures are in place to protect them.As a result of multiple independent users sharing the same physical infrastructure, a user can threaten another user and access their data.
On the other hand, a virtual machine monitor (VMM) is a kind of middleware that allows the creation of several virtual machines on the same physical resources.Vulnerabilities have been identified against attacks, such as Xen, VMware, and Microsoft Hyper-V in many popular VMMs.For instance, the exposure on Xen allows the attacker to run arbitrary code by giving "root" authority [54].Additionally, VMM cannot provide complete isolation between virtual machines.Therefore, the previously mentioned network attacks and vulnerabilities continue to pose a threat in the cloud computing environment.For such reasons, security concerns arise when storing data in the cloud.To reduce these concerns, cloud service providers and companies should work together and take necessary technological and managerial steps.

4.
Increase in the number of critical infrastructure systems: Critical infrastructure is one of the most crucial systems a modern society needs to continue its daily operations without any problems.Energy production and distribution systems, financial services, communication systems, water and sewer systems, and health services can be given as examples of these systems.Severe disruption in these systems will affect society and daily life.According to studies conducted in recent years, it is seen that there has been an extreme increase in both the number and destructive effects of cyber attacks against critical infrastructure systems.Ensuring the security of critical infrastructure systems has severe difficulties due to structural complexity, geographical location, and the need for the Internet to operate the system efficiently.The reasons for the increase in cyber attacks on critical infrastructure systems can be listed as follows: a. Threats arising due to the nature of critical infrastructure systems; b.
Threats arising due to computer network usage during data transmission; c.
Threats arising from communication protocols used in SCADA systems; d.
Threats arising due to the 24/7 availability of critical infrastructure systems.
Critical infrastructure systems are complex in structure, consisting of many components not used in other systems.This complexity and uniqueness of features lead to security threats not present in other systems.Cyber attacks on critical infrastructure systems target corporate networks, SCADA centers, and remote substations.An attack on any of these systems can put the entire essential system at risk.For example, an attack on sensors located at substations can render remote terminal units either unavailable or entirely out of control.An attack on the SCADA center can allow third parties to take control of the system.In addition, communication protocols such as Modbus/TCP and DNP3 used in SCADA systems are vulnerable to several attacks.For example, data transmitted on these protocols are not encrypted, allowing unauthorized access and modification [55].Ensuring the security of critical infrastructure systems is challenging due to their structural complexity, geographical location, and the need for the Internet to operate efficiently.

Reasons Arising from the Increase in Knowledge
With increased knowledge, launching an attack has become more accessible.It was tough to launch attacks on computer systems in the 1990s and early 2000s.Only experts with extensive knowledge and experience in computer systems could attack computer systems.In the last few years, it has become easier to initiate cyber attacks due to the widespread use of attack tools, the rapid spread of knowledge, and the easy detection of vulnerabilities in computer software and network protocols.Today, even ordinary people who do not have much knowledge about computer systems, known as "script kiddies", can launch attacks using cyber-attacks-as-a-service platforms.Most of these platforms are available on the Internet.Figure 3 compares the attack complexity with the attacker's technical knowledge [56,57].As shown in Figure 3, although the complexity of the attacks increases over the years, the level of understanding of the attackers decreases.

Reasons Arising from the Increase in Knowledge
With increased knowledge, launching an attack has become more accessible.It wa tough to launch attacks on computer systems in the 1990s and early 2000s.Only expert with extensive knowledge and experience in computer systems could attack compute systems.In the last few years, it has become easier to initiate cyber attacks due to th widespread use of attack tools, the rapid spread of knowledge, and the easy detection o vulnerabilities in computer software and network protocols.Today, even ordinary peopl who do not have much knowledge about computer systems, known as "script kiddies" can launch attacks using cyber-attacks-as-a-service platforms.Most of these platforms ar available on the Internet.Figure 3 compares the attack complexity with the attacker's tech nical knowledge [56,57].As shown in Figure 3, although the complexity of the attack increases over the years, the level of understanding of the attackers decreases.

Transferring Daily Life into the Digital Environment
Social life has increasingly shifted to the virtual environment in recent years, and th COVID-19 pandemic has accelerated this trend.Nowadays, people of all ages spend significant amount of time on the Internet, engaging in daily activities such as socializin and conducting business.In addition, many individuals begin their day by logging ont

Transferring Daily Life into the Digital Environment
Social life has increasingly shifted to the virtual environment in recent years, and the COVID-19 pandemic has accelerated this trend.Nowadays, people of all ages spend a significant amount of time on the Internet, engaging in daily activities such as socializing and conducting business.In addition, many individuals begin their day by logging onto the Internet and continue to spend a large portion of their time online.The activities of daily life that have now been transferred to the Internet environment can be listed as follows: 1.
The virtualization of social relations with social media environments; 2.
Financial data and the virtualization of money; 3.
The virtualization of business meetings; 4.
The virtualization of education; 5.
The virtualization of news; 6.
The virtualization of politics; 7.
The virtualization of shopping; 8.
The virtualization of wars; 9.
The virtualization of games.
The use of social media platforms, such as Twitter, Facebook, and Instagram, is rapidly increasing worldwide, with billions of users estimated to be using these platforms [58].Many individuals spend a significant portion of their daily life on social media, which stores essential personal information about users, including their name, surname, date of birth, address, and place of residence.Image and video sharing have also become prevalent on these platforms.Social media companies store this user data in large data centers managed by third-party companies.However, while these data are transmitted over the network, they can be stolen, leaked from data centers, or used by managed companies for different purposes.Researchers have found that many social media users receive unsolicited emails (spam emails), and more than 50% of large institutions and organizations experience increased cyber attacks due to excessive information sharing by their employees on social media.Most malware variants in social media environments are spread through popular events, news, pictures, or videos [59,60].Additionally, attackers can use inactive social media accounts or social engineering techniques to launch new attacks.
The virtualization of financial transactions and money has also increased due to the widespread use of bank cards and credit profits.Banking and stock market transactions are mainly carried out online using application programs.The money in bank accounts is virtual, consisting of mathematical numbers that are increased or decreased during online transactions.The use of virtual currency or cryptocurrencies in online transactions has also increased cyber attacks against these transactions.Millions of dollars are stolen annually by cyber criminals due to technical failures and personal errors during money transfers between accounts in virtual environments.Cyber attacks on cryptocurrencies have also increased, resulting in millions of dollars in yearly losses.For example, the Coincheck cryptocurrency exchange was attacked, resulting in approximately USD 550 million worth of cryptocurrencies being stolen in recent years [61,62].Remote code execution attacks in recent years are also associated with crypto mining [63].Virtualization has also impacted many areas, such as business meetings, education, shopping, games, wars, news, and politics.

The Attacks Have No Geographical Boundaries, Which Makes Detecting Attacks Challenging
Cyber attackers have the ability to attack 24/7 from any location in the world without any geographical boundaries.Attackers use specific techniques to hide their sites to avoid being caught during an attack.Furthermore, the absence of laws that deter cyber attacks among countries encourages cyber criminals during attacks.The ease of attacking the Internet, the lack of geographical boundaries, and the absence of legislation among countries regarding the punishment of cyber criminals can be cited as reasons for the increase in cyber attacks.This section lists both technical and nontechnical reasons for the increase in cyber attacks.Cyber attacks are dynamic and occasionally alter their attack format and target audience, affecting all computer-based systems and the Internet environment.The shift of social life to the Internet environment raises the occurrence of cyber attacks and their destructive consequences.Errors and vulnerabilities in software, inadequacies in network protocols, increased number of devices connected to the network, and the complexity of critical systems increase cyber security risks.Furthermore, the virtualization of social life, excessive use of social networks, increased knowledge of attackers, and careless use of the Internet by users also increase security risks in the digital world.

Threats, Vulnerabilities, Exploits, and Attacks
With the development of the cyber security concept, the number of attacks, types of attacks, and damage they cause are also increasing.Hackers carry out attacks that target users, companies, and government institutions, causing great harm.These attacks usually include ransomware, phishing attacks, DDoS attacks, or mobile threats.This section of the study discusses cyber threats, security risks, vulnerabilities, and attacks in detail.Recommendations, precautions, and awareness strategies are also provided for each type of attack.

Threats
A cyber security threat is a malicious actor that gains unauthorized access to computer networks or another person's or organization's network to damage, disrupt, or steal data [64,65].Commonly known threat types are described in detail, as follows (Figure 4).

Threats
A cyber security threat is a malicious actor that gains unauthorized access to computer networks or another person's or organization's network to damage, disrupt, or steal data [64,65].Commonly known threat types are described in detail, as follows (Figure 4).Computer viruses: A computer virus is a type of computer program that changes the way a computer works without a user's permission or knowledge and tries to hide in other files [66].Although these programs can work alone, they generally work by nesting into other programs on the computer.Viruses try to copy themselves to other files after they succeed in running.Viruses need to be "run" to be active.Contrary to common opinion, the computer will not be infected when an infected CD, floppy disk, or flash drive is inserted into the computer-if there is no autorun file.The infected file should be run by the operating system or manually for the virus to become active.
Infectious files were originally only "program" files, often ending with ".exe, .com,or .pif"extensions.However, with the advancement of software technologies, the rise in "executable" file types, and the evolution of operating systems, potentially dangerous file types have also increased.For example, files with the ".doc" extension, once known just as "text" files, have evolved into complex files in that the "executable" program can be placed with the development of office software.Likewise, files with the ".gif" extension, Computer viruses: A computer virus is a type of computer program that changes the way a computer works without a user's permission or knowledge and tries to hide in other files [66].Although these programs can work alone, they generally work by nesting into other programs on the computer.Viruses try to copy themselves to other files after they succeed in running.Viruses need to be "run" to be active.Contrary to common opinion, the computer will not be infected when an infected CD, floppy disk, or flash drive is inserted into the computer-if there is no autorun file.The infected file should be run by the operating system or manually for the virus to become active.
Infectious files were originally only "program" files, often ending with ".exe, .com,or .pif"extensions.However, with the advancement of software technologies, the rise in "executable" file types, and the evolution of operating systems, potentially dangerous file types have also increased.For example, files with the ".doc" extension, once known just as "text" files, have evolved into complex files in that the "executable" program can be placed with the development of office software.Likewise, files with the ".gif" extension, which are only seen as "images," have been a probable source of viruses by exploiting the vulnerabilities of popular operating systems.
Computer worms: Worms are malicious software with a more complex structure.They are usually spread using email attachments, various websites, and files shared over the network.When worms take over a system, they try to quickly deliver their source files to other users by using the user's data sources (such as an email address list) without the need for any further action by the user.In this way, they can reproduce themselves in large numbers [67].While doing this, worms utilize users' bandwidth and network resources, and they can cause networks to crash, overload email servers, or slow down access to web resources.They have similar functions to viruses but are not user-run programs to infect programs.After a worm enters a system, often over a network connection or a downloaded file, it creates various copies of itself over a network.It spreads them to all poorly protected servers on the web and computers.The ideal solution to protect against worms is to install the latest version of the operating systems on the computer, chase and perform updates, and close the doors against external attacks using a personal firewall.
Trojan horses: On the other hand, malware called Trojan horses present themselves as useful program to users and cause them to be downloaded [68].Trojan horses are malware that appear to be valid but are not.They become active due to running the program file to which they are added and spreading copies by users.They are not easy to detect like regular viruses and show their effects after infection.Trojan horses basically contain two files: The first is the file sent to the user.This file allows an attacker to access the user's computer by automatically opening a port on the computer.The attacker can access the user's computer by running the second file.Attackers can obtain personal information such as passwords, credit card info, and any other essential documents from the victim's system.Moreover, since Trojans leave backdoors in the design, attackers can easily install additional malware on the victim's system.Because Trojan malware is so diverse, it can only be avoided by employing an in-depth defense strategy.In addition, to reduce the security vulnerabilities of the systems, users need to regularly update all the software they use, not just their operating system.
Rootkits: A Rootkit is a kind of malware created to authorize hackers to enter and control the victim's device [69].The majority of rootkits affect operating systems and software.However, some can also affect the hardware and software programs as well.Rootkits are experts at concealing their existence and remain active as long as they stay hidden.After obtaining access to computers, rootkits allow cyber criminals to steal financial and personal information, set up malware, or use devices as part of a botnet so that criminals can circulate spam and use devices for DDoS attacks.It is difficult to determine which files the rootkit actually changed, which module is loaded into the kernel, and which network service it would listen to and take action on with the appropriate command.However, at certain times, methods can be used, such as saving the eigenvalues of the most basic commands and possible rootkit infection points and checking them later.
Hackers and predators: Humans, not computers, create computer threats.The main difference between hackers and hunters is that hackers sacrifice others for their gain [70].Hackers are informal users who attack systems to steal, change, or demolish data by installing malicious software without information or permission.These online hackers and predators often use phishing scams, spam, and other techniques to send malicious files to computers and compromise security.Anyone using a computer connected to the Internet must be sensitive to the threats posed by hackers and predators.Sometimes, employees and users threaten their organizations by not following and performing safe computer practices.Properly trained employees are the first line of defense against a cyberattack.Therefore, employees' lack of cyber security knowledge can pose one of the most significant risks to an organization's network security.Hackers can try to access the computer and private information directly if there is no protection with a firewall.Predators, typically disguised as false identities, can expose sensitive personal and financial information, or worse.Therefore, quality firewall solutions and antivirus protection must be used to avoid falling victim to such malicious activities.

Risks
Technological developments bring along some negativity as well as innovations.In line with the needs of the digital age, institutions and organizations host their data in a distributed structure in different data centers and cloud environments.With corporate and personal data becoming more valuable, various risks threaten this order at many points [71].In addition, cyber attackers are also developing their attack methods to get more benefits from computer-based systems.These activities, evaluated in various scenarios from data theft to ransomware attacks, are called "Cyber Risks."The most commonly known types of cyber risks are explained in detail in the following.
Spyware: Spyware software that collects data without the consent or knowledge of the computer user.Spyware is used to violate the privacy of personal information by recording the keys that the user presses on the keyboard, keeping track of the web pages viewed, scanning the data on the hard disk, and monitoring the searches made on the Internet [72].As a result, illegal actions such as stealing people's email and bank passwords or creating "personal advertising" pop-ups, spam, and consuming network and system resources of the computer reduce the viewing speed of web pages or cause a general slowdown of the computer.
Spyware is often distinguished from viruses because it is not explicitly designed for illegal and direct harm to the user and because it is installed on the computer with the user's consent or as a result of their actions.Moreover, like viruses, spyware does not copy itself from one computer into another in any way.However, consent or approval for the installation is obtained without the user being explicitly informed about the activities of this malware on the computer.To be protected from this spyware, it is necessary to perform security measures such as not downloading files from intermediate sites, not connecting untrusted sources to devices, and not opening unknown emails.
Scareware: This is the name given to malicious computer software included in the malware class known as "Rogueware" [73].It often scares users with unrealistic scenarios and encourages them to buy the software.Then, it is installed on the computer and claims that the malicious software will be cleaned, but the installation infects the device with a virus.In this way, the data on the computer are intercepted, and the computer's owner is prevented from accessing them.
The primary purpose of scareware software is to make money for its owner.When you log in to a website, a pop-up screen such as "x threats detected on your computer" appears, even though there is no virus on the computer.This pop-up not only says there is a virus on the computer but also suggests its own scareware software to get rid of viruses.The main purpose here is to scare the users and force them to buy the software with this fear.The vast majority of software called scareware cannot actually fulfill the functions they promise, and the only purpose is to get the user to pay.If scareware software is installed on the computer, there is no need to panic immediately, because, usually, scareware software can be found and deleted by logging into the Program, Add/Remove menu of the computer.
Joke Programs: A joke program is a standard program that generally has no malicious purpose.The primary purpose of these programs is to annoy or entertain the user [74].Virus writers create joke programs to make fun of computer users, and the main purpose is not to harm them.However, some victims can panic and accidentally engage in activities that could damage data, such as drive formatting or file deletion.Since joke programs are ordinary, they do not damage other programs, systems, or data.Occasionally, these programs can temporarily deactivate devices such as a mouse or printer.However, the computer returns to its original state after a joke program ends or the user restarts it.While joke programs often seem innocent, they can sometimes be costly for an institution or organization.
Ransomware: Ransomware is one of the most prominent types of cyber risks that make essential files, documents, applications, operating systems, networks, or servers inaccessible [75].They are malware that can encrypt all files and documents on the network, including servers, from a single computer.After the ransomware infects the computer, victims are often asked to pay a ransom in cryptocurrency.In return, their data are promised.However, even if all files are decrypted by paying the ransom, it is difficult to be sure whether the criminals are keeping copies of the data.This means the information can be used in fraud or phishing attempts.They deceive people with a fake attachment or link.Malicious files are often disguised as ordinary documents (order confirmations, receipts, invoices, and notices) and appear to have been sent by a reputable company or institution.Downloading or trying to open one is enough to be infected by ransomware.
Hacking tools: Hacking is the deliberate modification of computer software or hardware outside architectural boundaries and design.A hacking tool is a program or utility designed to assist a hacker with hacking [76].It can also be used proactively to protect a network or computer from hackers.Hacking tools have different capabilities designed to infiltrate systems.For example, Hacktool: Win32/Keygen is one of the most wellknown hacking tools and is the codename of a fake tool that can generate phony activation keys or licenses for various software.The device itself is not malicious, but Hacktool: Win32/Keygen is often bundled with malware.Therefore, users who have installed (or infiltrated without their permission) Hacktool: Win32/Keygen are likely to have an infected computer.Many hacking tools are commonly used to gain unauthorized access to a computer to add worms, viruses, and Trojans.As a result, hacking tools can have serious consequences, such as loss of data, hijacking personal accounts, and theft of identity and savings.
Remote access: Remote access is an application that allows you to connect and manage your computer over the Internet, regardless of your location, and operate over particular protocols [77].Although it sounds good, it is a method that carries many risks, because many people, institutions, and organizations fail to protect remote connection services from inappropriate access.An attacker will find vulnerable spots in a computer or network's security software to gain access to the machine or system.The leading causes of remote attacks are to view or steal data illegally; introduce viruses or other malware into another computer, network, or system; and damage the targeted computer or network.Other attacks that hackers can facilitate via remote access include email phishing, compromise of third-party providers, insider threats, social engineering, and the use of vulnerable applications to compromise systems.To protect against remote access attacks, VPNs with older and less secure protocols should be avoided.Multifactor authentication should also be mandatory for each VPN account.At the same time, at least two layers of security must be applied before any device can be managed remotely, and antivirus and antimalware programs must be installed and updated for protection.

Vulnerabilities
A vulnerability is a flaw within a product or system that can potentially permit an attacker to undermine the confidentiality, integrity, or availability of that product or system [78].The various types of vulnerabilities are outlined briefly as follows.
Software vulnerabilities: Software vulnerabilities emerge when applications contain errors or bugs, which are seen by attackers as an opportunity to exploit these weaknesses to compromise the system.Buffer overflow and race conditions can be examples of attacks caused by software security vulnerabilities.
Firewall vulnerabilities: Firewalls serve as software and hardware safeguards that shield networks from attacks.A firewall vulnerability pertains to a mistake, deficiency, or faulty assumption made during the design, implementation, or configuration of the firewall that can be exploited to launch attacks against the trusted network that the firewall is intended to safeguard.
TCP/IP vulnerabilities: These vulnerabilities belong to various layers of a network.These protocols may lack desired features in an unsecured network.ARP attacks and fragmentation attacks can be examples of attacks caused by TCP/IP vulnerabilities.
Wireless network vulnerabilities: Wireless Local Area Networks (LANs) encounter protocol-based attacks comparable to wired LANs.Insecure wireless access points can also become a potential threat, as they create an entry point for an attacker to gain unauthorized access to a personal or corporate network.Illustrative examples of these vulnerabilities include problems with the Service Set Identifier (SSID) and Wired Equivalent Privacy (WEP) issues.
Operating system vulnerabilities: These are security vulnerabilities in operating systems such as Windows, macOS, and Unix.The security of the applications running on it depends on the operating system's security.The slightest negligence of the system administrator can make operating systems vulnerable.
Web server: These vulnerabilities result from design and engineering errors or misapplication.Examples of attacks caused by web server vulnerabilities are sniffing and spoofing attacks.

Vulnerability Scanning Tools
These are tools that detect security vulnerabilities in devices and software in systems [79].Like antivirus software that uses virus definition databases to determine the signatures of viruses, most vulnerability scanners trust vulnerability databases and scanning systems for specific vulnerabilities.These vulnerability databases can be obtained from reputable security testing labs or known databases used to identify vulnerabilities in software and hardware.As might be expected, the detection level of the scan tool depends on the vulnerability database that the tool uses.When choosing a vulnerability scanning tool, there are many features to consider, such as the variety of devices it can scan, the scanning method, and warning/reporting.Vulnerability scanning tools that are widely used today with these features are examined in this section.
Netsparker: Netsparker is an entirely accurate, automatic scanner that determines vulnerabilities in applications and APIs on the web.Netsparker heavily confirms defined vulnerabilities and proves they are genuine, not false positives.Therefore, there is no need to spend time manually confirming the defined vulnerabilities while finishing the scan.Windows software and an online service version of the tool are available [80].
Acunetix: Acunetix is a fully automated web vulnerability scanner.It detects over 4500 web application vulnerabilities, SQL Injections, and XSS.Then, it also provides a report about its scan.The Acunetix browser supports single-page applications with HTML5 and JavaScript, which allows the inspection of complex, authenticated applications.Furthermore, it makes use of sophisticated vulnerability management functionalities, ranks risks according to information via a unified and consolidated perspective, and combines scanner findings with additional tools and platforms [80].
Intruder: The Intruder is an advanced vulnerability scanner that performs proactive scans for newly released vulnerabilities [81].It has conducted over 10,000 security checks in the past, covering Heartbleed and SQL Injection.Its integration with Slack and Jira allows development teams to stay updated when new issues arise, while AWS integration facilitates synchronization of IP addresses for scanning.The Intruder is a preferred choice for startups and midsize businesses, as it simplifies vulnerability management for small teams.
SolarWinds: The SolarWinds Network Configuration Manager offers network vulnerability detection capabilities.It includes features for monitoring, managing, and safeguarding network configurations.The tool sends notifications when configuration changes occur and performs ongoing checks to identify configurations that may render a device incompatible.Additionally, the software enables configuration backup to aid in monitoring changes.
Detailed information about configuration modifications and the login ID associated with them can also be obtained [82].
Apptrana: This is a web application vulnerability scanner that automates the detection and reporting of security vulnerabilities.It is used by over 1100 customers across 25+ countries worldwide.A proof-of-concept request is available to validate reported vulnerabilities and eliminate false positives.The same dashboard displays additional manual penetration tests and reports.The tool features a pause and resume function.Additionally, optional integration with Indusface WAF is provided to offer immediate virtual patching with zero false positives [83].

OpenVAS:
OpenVAS is an open-source tool designed for centralized vulnerability scanning and management.It is available at no cost and is typically licensed under the GNU General Public License (GPL).The software is compatible with a range of operating systems.OpenVAS features a regularly updated scan engine with network vulnerability tests.It is a comprehensive vulnerability assessment tool used to identify security-related issues on servers and other network devices [84].
The Nexpose Community: Developed by Rapid7, the Nexpose vulnerability scanner is an open-source tool that performs network checks and vulnerability scans.It is employed to monitor vulnerability exposure in real time and stay informed of emerging threats using new data.Unlike many other vulnerability scanners that rank risks as high, medium, or low, Nexpose considers factors such as which malware kit is utilized and what benefits are derived from a vulnerability.It prioritizes security vulnerabilities and addresses them accordingly.The tool automatically identifies and scans new devices, assessing their vulnerabilities when they connect to the network.Additionally, Nexpose can be integrated with the Metasploit framework [85].
Nikto: Nikto is a widely favored open-source web scanner utilized for evaluating potential web server vulnerabilities and issues.It conducts thorough tests on web servers to identify hazardous programs or files, as well as to confirm that the server version is current and identify any issues impacting server operation.Nikto scans various protocols such as HTTP, HTTPS, and HTTPD.In addition, multiple server ports can be scanned using Nikto [86].
Microsoft Baseline Security Analyzer (MBSA): It is a tool designed to detect appropriate security status with Microsoft security recommendations and scan for security vulnerabilities on computers with MBSA Windows operating systems.Another feature of MBSA is that it can monitor all operating systems in the network.For this, the administrator user and password of the computer or computers to be scanned and on the computer where it is installed must also be the same.In this way, the vulnerabilities in the scan results of the computers on the entire network can be seen.The MBSA tool also performs the necessary HOTFIX check for IIS and SQL servers but not the operating system.HOTFIX is an additional package to fix bugs in software [87].
Wireshark: Wireshark is a globally recognized and extensively employed network protocol analyzer.It is utilized in diverse settings, including educational institutions, government agencies, and businesses, to conduct detailed examinations of networks.The tool possesses a distinctive capability to detect problems in real time and conduct analyses offline.It is compatible with several platforms, including Windows, Linux, Mac, and Solaris, and can explore numerous protocols in great detail.Wireshark is widely considered the most robust tool in the arsenal of security professionals [88].

Attacks
With the development of technology, the possibilities of accessing information have increased.However, the ease of access to information has also made it challenging to ensure information security.With today's information systems in all areas of life, the concept of cyber attacks has become more popular.These cyber attacks have spread over a wide area, from daily life to government institutions, the economy to commerce, and banks to hospitals.Common types of attacks are described below (Figure 5).

Social engineering attacks:
When considering cyber security, many believe in defending themselves against hackers who use technological vulnerabilities to attack data networks.However, there is another way to infiltrate organizations and networks which takes advantage of people's vulnerability.This method of tricking someone into revealing information or gaining access to data networks is known as "social engineering".In summary, social engineering is manipulating people to permit them to access or disclose information or data [89].Social engineering, like most cyber attacks, aims to bypass the security measures of a person or organization.Anyone can be a victim of a social engineering attack.Still, the elderly with limited technical knowledge, those with little human interaction, and those prone to impulsive behavior are common targets.Personal/private information should not be shared to prevent possible attacks, people attempting to contact should be questioned, URL/address checks should be performed, and untrustworthy sources should be avoided.
Application attacks: An application attack involves cyber criminals gaining access to unauthorized domains.Attackers often start by looking at the application layer and looking for application vulnerabilities written in code.Although attacks target specific programming languages more than others, many applications representing various languages are attacked.Vulnerabilities exist in both proprietary code and open-source frameworks and libraries.Application vulnerabilities create opportunities for cyber criminals to exploit applications in production.These exploits target both proprietary code and open-source frameworks and libraries.Cyber criminals take advantage of different methods, such as vulnerabilities in code, vulnerabilities due to legacy certificates, and vulnerabilities due to a lack of authentication [90].
Cryptography attacks: Cryptography is a process that involves storing and transmitting data in a specific format to ensure that only the intended recipients can access and understand them.This is achieved through encryption, which involves converting plain text into cipher text, and decryption, which involves converting cipher text back into plain text.Cryptographic attacks occur when an attacker tries to compromise a cryptosystem by identifying weaknesses in the code, cipher, cryptographic protocol, or key management scheme.These attacks are classified as either passive or active.Passive attacks involve unauthorized access to information without disrupting the communication channel, while active attacks involve modifying or initiating an unauthorized transmission of information [91].Passive attacks are often associated with stealing information, while active

Social engineering attacks:
When considering cyber security, many believe in defending themselves against hackers who use technological vulnerabilities to attack data networks.However, there is another way to infiltrate organizations and networks which takes advantage of people's vulnerability.This method of tricking someone into revealing information or gaining access to data networks is known as "social engineering".In summary, social engineering is manipulating people to permit them to access or disclose information or data [89].Social engineering, like most cyber attacks, aims to bypass the security measures of a person or organization.Anyone can be a victim of a social engineering attack.Still, the elderly with limited technical knowledge, those with little human interaction, and those prone to impulsive behavior are common targets.Personal/private information should not be shared to prevent possible attacks, people attempting to contact should be questioned, URL/address checks should be performed, and untrustworthy sources should be avoided.
Application attacks: An application attack involves cyber criminals gaining access to unauthorized domains.Attackers often start by looking at the application layer and looking for application vulnerabilities written in code.Although attacks target specific programming languages more than others, many applications representing various languages are attacked.Vulnerabilities exist in both proprietary code and open-source frameworks and libraries.Application vulnerabilities create opportunities for cyber criminals to exploit applications in production.These exploits target both proprietary code and open-source frameworks and libraries.Cyber criminals take advantage of different methods, such as vulnerabilities in code, vulnerabilities due to legacy certificates, and vulnerabilities due to a lack of authentication [90].
Cryptography attacks: Cryptography is a process that involves storing and transmitting data in a specific format to ensure that only the intended recipients can access and understand them.This is achieved through encryption, which involves converting plain text into cipher text, and decryption, which involves converting cipher text back into plain text.Cryptographic attacks occur when an attacker tries to compromise a cryptosystem by identifying weaknesses in the code, cipher, cryptographic protocol, or key management scheme.These attacks are classified as either passive or active.Passive attacks involve unauthorized access to information without disrupting the communication channel, while active attacks involve modifying or initiating an unauthorized transmission of information [91].Passive attacks are often associated with stealing information, while active attacks involve changing data without permission.Both types of attacks can compromise the integrity and confidentiality of sensitive information.
Hijacking attacks: Hijacking attacks are a type of network security attack in which the attacker takes control of computer systems, software programs, and network communications [92].Most cyber attacks rely on hijacking in some way, and hacking is regularly, if not always, illegal, with severe consequences for both the attacker and the victim.These attacks include airplane hijackers or taking control of an armored transport vehicle.There are many types of hijack attacks, and they are listed below:

Computer network attacks (CNAs):
It is the process of manipulating, corrupting, rejecting, and destroying information in computers and computer networks in order to gain control of the computer/computer network [93].With CNAs, systems can be shut down, data modified, and resources misused for botnets or any other action that compromises the integrity or availability of a system.The CNA relies on the data stream to execute the attack.For example, sending a code or instruction to a central processing unit that causes the computer's power supply to short circuit is a CNA.To perform a CNA, attackers gain access to the network and scout the network before taking action.Discovery allows to learn the network configuration and determine how best to carry out malicious activity.
Phishing attacks: Phishing is one of the most common cyber threats today.According to the world-accepted definition, phishing is "a type of online fraud that targets consumers by sending an email purporting to come from a known source" [94].Scammers pretend to be Internet service providers, banks, stakeholder companies, or government agencies.These are attacks to obtain sensitive and confidential information, such as usernames, passwords, credit card information, and network credentials.They try to use social engineering as best as possible when manipulating personal information into disclosure, typically by asking victims to click on a harmful link or attachment via phone or email.
Attention and education are the keys to not being caught in phishing attacks.While many commonplace phishing attempts can be filtered out with email monitoring systems, employee email security training can also reduce the number of potential victims by raising awareness of phishing risk.At the same time, to avoid phishing attacks, it is essential to be wary of website pop-ups and ensure the URL starts with "HTTPS" and has a closed lock icon next to the address bar.
Malware attacks: Malware is the general name given to software designed to harm computer systems, steal information, or annoy users.Examples of this software are viruses, worms, Trojans, and rootkits.Although they are generally defined as software, they can sometimes be in the form of simple codes.Malware, sometimes called scumware, can be written in almost any programming or scripting language and carried in many file types.Malware can gather information and spy for a long time without alerting the infected computer system.In addition, it can be used to damage or sabotage the system it enters (such as Stuxnet), or it can be used to extort money or payments [95].
Bots and botnets: "Bot", short for robot, is a software program that performs repetitive, automated, and predefined tasks [96].Bots often imitate or replace the behavior of human users.Because they are automatic, they work much faster than human users.They can perform useful functions such as customer service or indexing search engines or be used as malware to gain complete control over a computer.Malware bots and Internet bots can be programmed/hijacked to infiltrate user accounts, scan contact information, send spam, or perform other malicious actions.
The word botnet is derived from combining the words "robot" and "network."Botnets consist of a good deal of software agent programs.Each software agent program is controlled remotely.Botnets have the ability to act as a unit.A botnet is a set of Internet-connected computers that communicate with similar machines to complete repetitive tasks and goals.Such networks are often used to send spam emails.A botnet is under the attacker's control and can be expressed as a network of thousands of zombie computers or even hundreds of thousands.
Password attacks: Password attacks are one of the most frequently used attack types in cyber attacks.Password attacks can be carried out against corporate targets as well as personal targets [97].The aim is to harm the institution or individuals by seizing the passwords of any field that requires a password, such as social media networks, technologies, or software used by the person or institution.Generally, individuals or institutions prefer easy passwords to avoid forgetting them.In particular, social media users can share the password content they use in summary form on their pages.For example, on social media accounts, there is a lot of information, such as the team that the person supports, where they are from, date of birth, name of their spouse or partner, and relationship years.This information is essential for cyber attackers.Therefore, sharing this information facilitates the work of attackers who will carry out password attacks.
Man-in-the-middle attack: The man-in-the-middle attack is the oldest type of cyber attack, in which a malicious person is secretly involved in communication between two parties [98].This attack allows the data transmitted by the victim to be read and even modified.The attacker achieves this by creating a secret, pseudofake connection between their and the victim's computers.Usually, the purpose of a man-in-the-middle attack is to obtain personal data, passwords, and bank information or impersonate one of the parties.These actions may include, unfortunately, changing login information or initiating a money transfer.Areas that provide free Wi-Fi are the most suitable areas for this attack to be carried out.The contents of unencrypted packets can be easily read.Attackers in Wi-Fi areas direct network traffic to pass over themselves.Thus, the traffic of the people on that network starts to flow through the attacker.The attacker who seizes this traffic can obtain personal data or passwords from here.
This section discusses well-known types of cyber threats, risks, vulnerabilities, and attacks in detail.Each has its own method of applications and target audiences.To prevent or protect computer-based systems from such threats, risks, and attacks, the following actions can be taken: In summary, "security awareness" is the first line of defense to protect ourselves in a world of ever-evolving cyber threats and attacks.There are powerful security tools that can help, but acting consciously is the most critical step to protect your computer, information, and yourself.

Network Security
In this chapter, we present network security extensively.We classify network security based on network protocols, which are a set of rules and structures that control the data exchange among connected devices across networks.For this aspect, we first explain the Open Systems Interconnection (OSI) model and how network protocols work in Section 3.1.Then, we classify network protocols and security threats with these protocols in Section 3.2.Next, we present network protection devices and tools in Section 3.3.In the penultimate Section 3.4, we express Wireless Network Security.

OSI Layers and Their Functionalities
We now classify and explain each layer and its functionalities with a top-down (from Layer 7 to Layer 1) approach.

Application Layer
Application layer protocols can be defined as how end-users pass messages to each other.Basically, an application layer defines the types of messages and the rules for the process of sending and responding to messages.Distinctly, the application layer is only a

OSI Layers and Their Functionalities
We now classify and explain each layer and its functionalities with a top-down (from Layer 7 to Layer 1) approach.

Application Layer
Application layer protocols can be defined as how end-users pass messages to each other.Basically, an application layer defines the types of messages and the rules for the process of sending and responding to messages.Distinctly, the application layer is only a part of network protocols and network applications [100].Some important application layer protocols are Dynamic Host Configuration Protocol (DHCP), Domain Name System (DNS), File Transfer Protocol (FTP), HyperText Transfer Protocol (HTTP), Internet Message Access Protocol (4) (IMAP and IMAP4), Post Office Protocol (3) (POP and POP3), Simple Mail Transfer Protocol (SMTP), TELetype NETwork (TELNET), and Simple Network Management Protocol (SNMP).
Application Layer Protocols -Dynamic Host Configuration Protocol (DHCP): IP addresses can be configured manually by a system administrator.When the number of hosts connected to the network increases, it could be hard to control IP address configuration manually.Therefore, there is a need to do it automatically [101].DHCP is the protocol that allows the system to configure and distribute IP and other network configuration parameters in the system automatically [100][101][102].The DHCP process consists of four steps (also known as DORA): The security of the DHCP was not an important issue because of its simplicity, ease of use, and the small number of connected devices to the networks [103,104].However, since the number of connected devices is increasing exponentially, DHCP security has become a critical criterion to consider [105].The main reason for DHCP security issues is the lack of an authentication mechanism [106].A malicious DHCP client can launch a starvation attack to prevent the IP address from being assigned to the network [97].Furthermore, an attacker can use a rogue DHCP server to provide incorrect configuration information to network clients [102][103][104][105][106][107][108][109]. -

Domain Name System (DNS):
The Domain Name System (DNS) is responsible for translating a hostname into a computer-friendly IP address [110].An IP address is an identification for computers, and finding a device on the Internet is necessary.
The basic operations of DNS can be explained in eight steps.First, a client computer requests a domain name from a DNS resolver.This DNS resolver can be recursive or authoritative.Then, the resolver queries the DNS root name server.The root server responds to the resolver with a Top-Level Domain (TLD) such as .com,.org,.edu,etc.As soon as the resolver receives the TLD, it requests the related TLD server, which responds with the IP address of the domain's nameserver.The IP address of the nameserver is sent to the resolver after the resolver requests it from the nameserver.Finally, the DNS resolver responds to the client with the IP address of the requested domain [111,112].-File Transfer Protocol (FTP): Basically, the File Transfer Protocol (FTP) is responsible for file transfers between connected heterogeneous computer systems [113].However, the objectives of FTP are not limited to this.It boosts sharing of files, programs, and data.It also provides a way to use remote computers.In addition to these, it also acts as a shield that protects a user from variations and transfers data efficiently among hosts [114]. -

HyperText Transfer Protocol (HTTP):
As the foundation of the World Wide Web, HTTP is responsible for loading web pages using hypertext links.Since it is a protocol in the application layer, it runs on top of other layers and sends and receives information among connected computers.Clients request HyperText Markup Language (HTML) files, videos, scripts, photos, text, etc., from a server, usually via a web browser.Then, the server responds with the requested data to the client [100,115].-Email Protocols: The Internet Message Access Protocol (IMAP), Post Office Protocol (POP), and Simple Mail Transfer Protocol (SMTP) are the standard protocols for email delivery over the Internet.The last versions of POP and IMAP are POP3 and IMAP4, respectively.Most email clients, such as Outlook and Gmail, use SMTP for email delivery between two parties.An SMTP server is responsible for pushing emails.
Email clients connect to this server and communicate via it.When the user clicks the send button, the email client opens an SMTP connection to the server.Then, the SMTP server transfers data to the corresponding client via the Mail Transfer Agent (MTA).
If the receiver uses the same client, the MTA directly sends a message.Otherwise, it uses the DNS protocol to reach the receiver's domain [116][117][118].POP and IMAP are used to access electronic mailboxes.While POP stores all emails locally on the user's device, IMAP keeps them on the server.Therefore, IMAP provides mobility because users can check email from different devices [116,119].-TELetype NETwork (TELNET): Telnet is a two-way text-based communication protocol that provides a two-way communication channel between two computers.The computers can be in a Local Area Network (LAN) as well as remote computers via Transmission Control Protocol (TCP) [120].It is mainly used by users who need to use applications or data stored on a remote machine.-Simple Network Management Protocol (SNMP): SNMP is a standard Internet protocol responsible for monitoring and managing network devices.The common devices that support SNMP are routers, terminal servers, hosts, and so on [121].While the first implementation of SNMP, also called SNMPv1, only provides the architecture and framework, the later versions (SNMPv2c and SNMPv3) focus on performance and security [122,123].
Application Layer Attacks: There is a wide range of application-layer attacks, including DoS, DDoS, SMTP attacks, FTP bounce, insecure HTTP, browser hijacking, buffer overflow, malware attacks, data attacks, and so on [124,125].Recently, application-layer DoS attacks have become very popular [125].The most significant application-layer DoS attacks were reported in 2019 and continue to double every quarter of the year [125][126][127][128].A DoS or DDoS attack is basically continuously sending forged requests to exhaust the IP address pool and bog down the server's responsiveness.DoS and DdoS attacks cause potential vulnerabilities and flaws, including DHCP starvation, Network Time Protocol (NTP) time-shifting/sticking, and slow HTTP DoS, as well as substantial computational performance and QoS degradation.An SMTP attack is a technique where the attacker gains unauthorized access to the client's mail, observes the mail addresses, and abuses them.An FTP bounce attack is similar to an SMTP attack in that the attacker can access ports using the victim's machine.Browser hijacking is a malware program the attacker uses to modify unauthorized web browser settings.A buffer overflow attack is a technique that aims to overwrite the memory of an application to damage files and expose private information.Insecure HTTP means that the HTTP data are not encrypted, which makes them vulnerable to attacks.Attackers use malware software to attack the victim.The most common malware attacks are adware, viruses, worms, Trojans, bots, and ransomware [129][130][131][132]. Security mechanisms such as cryptographic techniques, using security features in switches, traffic profiling, machine-learning-based techniques, path and server redundancy, monitoring traffic features, and comparing traffic profiles to prevent these attacks were studied in [124,126,[133][134][135][136][137].

Presentation Layer
The sixth layer of the OSI model is called the presentation layer.This layer deals with the fields in the messages and the semantics of the fields in the messages exchanged between end-users.It is a bridge between the application and the transport layer and is responsible for data translation, encryption-decryption, and compression.Basically, the presentation layer translates messages from high-level language data to low-level language and vice-versa.Moreover, it encrypts the plain text message from the application layer and decrypts the encrypted data from the transport layer.In other words, it manages the encryption and decryption processes between senders and receivers.The layer also compresses data to reduce the number of bits in loss-tolerant data [100,138].
Presentation-Layer Attacks SSL is used to secure web services, including banking, online shopping, etc.The presentation-layer attacks involve malformed Secure Socket Layer (SSL), SSL Stripping, and Change Cipher Specification (CCS) manipulation attacks [140,141].SSL stripping causes removing SSL data from a request message coming from the client and the opening of multiple ports for the corresponding server.A CCS manipulation attack is made by improper usage of CCS messages.Injecting a CCS message during an already opened session causes a passive session and failure of negotiation.

Session Layer
The session layer is the fifth layer of the OSI model.This layer manages data between the presentation layer and transport layer.It is responsible for enabling communication between two end-user applications, allowing the systems to communicate in the halfor full-duplex mode of communication, managing and allowing the process of adding checkpoints, managing communication sessions, and synchronizing information from different resources.It uses Remote Procedure Calls (RPCs) to implement services to control the functionalities mentioned above [115].

Session-Layer Protocols
The RPC protocol is mainly used in application environments in session-layer services.Other popular session-layer implementations include Session Control Protocol (SCP), Zone Information Protocol (ZIP), Real-time Transport Control Protocol (RTCP), Password Authentication Protocol (PAP), OSI session layer Protocol (ISO-SP, a.k.a.X.225), and so on [142].

Session-Layer Attacks
There are two main session-layer attacks: session hijacking and stealing session ID.We separate hijacking attacks into three groups: active, passive, and hybrid session hijacking, which carry out the same attacks differently.In an active session hijacking, an attacker attacks an active session.On the other hand, in passive session hijacking, an attacker locates themself between the user and the server.They send and receive packets between the server and the user, acting as a valid user and server.In hybrid session hijacking, an attacker uses active or passive session hijacking features based on the goal [143].There are popular tools used for session hijackings, such as Wireshark, T-SightS, Hunt, and Hamster and ferret.For session ID stealing purposes, there are three popular ways.Sniffing: an attacker monitors the victim's network traffic and obtains the session ID from the unencrypted packets.Brute force, which is not a time-effective technique, means an attacker tries all combinations to figure out the session ID.Last but not least, cross-site scripting aims to steal session IDs by using the vulgarities of websites [143][144][145].

Transport Layer
The group of the first three layers mentioned above is called the Upper Layer.The transport layer is the layer between the Upper and Lower Layers.It is the fourth layer of the OSI model and the first layer of the Lower Layer group, including layers 4, 3, 2, and 1.It is responsible for delivering the complete messages between the end-users and providing acknowledgment of the data in case an error occurs.At the sender's side, the transport layer receives the formatted data from the upper layer, performs segmentation, implements required flow/error controls, inserts source-destination port numbers in the data header, and forwards the segmented data to the network layer.At the receiver side, the transport layer reassembles the segmented data, looks up the port number, and delivers the data to the related applications.

Transport-Layer Protocols
The Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) are in this layer, and they are critical protocols for the OSI model [100] [146,147].While UDP is a connectionless protocol, TCP is the protocol that prioritizes data quality rather than speed.

Transport-Layer Attacks
In particular, this layer has three types of security threats: TCP flooding attack, UDP flooding attack, and TCP sequence prediction attack.The TCP flooding (a.k.a.TCP SYN) attack is the most common attack on the Internet.When a TCP connection is established between the sender and receiver computers, the sender sends the TCP Reset (TCP RST) packet to the receiving computer after ensuring the receiver is not listening.However, in a TCP SYN spoofing attack, the sender sends a TCP RST packet even if the receiver listens for the communication [148,149].The UDP flooding attack is also a DDoS attack that targets weakening the performance of the victim's computer.The attacker spoofs the victim's IP address and sends UDP packets to affect the system of the victim [150,151].Finally, a TCP sequence prediction attack is a way to send counterfeit packages to the victim's computer by predicting the sequence number that is used for identifying the packets in a TCP connection [152,153].

Network Layer
The network layer is one of the most complex layers in the OSI model [100].This layer has two planes: the control and data planes.When a packet arrives at a router, it must be moved to the appropriate output link in the data plane, as illustrated in Figure 7.
OR PEER REVIEW 30 of 43 layer receives the formatted data from the upper layer, performs segmentation, implements required flow/error controls, inserts source-destination port numbers in the data header, and forwards the segmented data to the network layer.At the receiver side, the transport layer reassembles the segmented data, looks up the port number, and delivers the data to the related applications.

Transport-Layer Protocols
The Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) are in this layer, and they are critical protocols for the OSI model [100] [146,147].While UDP is a connectionless protocol, TCP is the protocol that prioritizes data quality rather than speed.

Transport-Layer Attacks
In particular, this layer has three types of security threats: TCP flooding attack, UDP flooding attack, and TCP sequence prediction attack.The TCP flooding (a.k.a.TCP SYN) attack is the most common attack on the Internet.When a TCP connection is established between the sender and receiver computers, the sender sends the TCP Reset (TCP RST) packet to the receiving computer after ensuring the receiver is not listening.However, in a TCP SYN spoofing attack, the sender sends a TCP RST packet even if the receiver listens for the communication [148,149].The UDP flooding attack is also a DDoS attack that targets weakening the performance of the victim's computer.The attacker spoofs the victim's IP address and sends UDP packets to affect the system of the victim [150,151].Finally, a TCP sequence prediction attack is a way to send counterfeit packages to the victim's computer by predicting the sequence number that is used for identifying the packets in a TCP connection [152,153].

Network Layer
The network layer is one of the most complex layers in the OSI model [100].This layer has two planes: the control and data planes.When a packet arrives at a router, it must be moved to the appropriate output link in the data plane, as illustrated in Figure 7. Host-A sends a packet to Router1 (R1), and R1 must forward the packet to Host-B via Router2 (R2).This process, called forwarding, is covered in the data plane.Additionally, a router can block the forwarded packets if they are malicious or duplicated.Routing is the determined route or path that packets flow in from a sender to a receiver.The controller plane determines a path using a routing algorithm between the sender and receiver (for example, from Host-A to Host-B in Figure 7).There are two routing structures in the controller plane: static and dynamic routing.While static routing works better in small networks, dynamic routing will be more effective for many networks.In the Software-Defined Network (SDN) paradigm, the forwarding and routing system differs from the classical system [154].In SDN, the controller layer is moved from the underlying network to a logically centralized controller responsible for finding a path and installing routing rules on the underlying forwarding elements.However, in this study, we focus on the classical structure instead of SDN.Host-A sends a packet to Router1 (R1), and R1 must forward the packet to Host-B via Router2 (R2).This process, called forwarding, is covered in the data plane.Additionally, a router can block the forwarded packets if they are malicious or duplicated.Routing is the determined route or path that packets flow in from a sender to a receiver.The controller plane determines a path using a routing algorithm between the sender and receiver (for example, from Host-A to Host-B in Figure 7).There are two routing structures in the controller plane: static and dynamic routing.While static routing works better in small networks, dynamic routing will be more effective for many networks.In the Software-Defined Network (SDN) paradigm, the forwarding and routing system differs from the classical system [154].In SDN, the controller layer is moved from the underlying network to a logically centralized controller responsible for finding a path and installing routing rules on the underlying forwarding elements.However, in this study, we focus on the classical structure instead of SDN.

Network Layer Protocols
The well-known protocols in the network layer include Internet Protocol versions 4 and 6 (IPv4 and IPv6) and Internet Control Message Protocol (ICMP).

Network-Layer Attacks
The common network-layer attacks are Smurf attacks, IP spoofing attacks, and hijacking attacks.The Smurf attack is a type of Distributed Denial-of-Service (DDoS) attack.An attacker spoofs the IP address of a victim's computer and sends a forged Internet Control Message Protocol (ICMP) echo request to the computers in the same broadcast.The computers reply with an ICMP echo-reply and cause flooding of the victim computer [155,156].An IP spoofing attack is a technique in which the attacker uses a trusted IP address to send packets to the server, and the server cannot identify the IP address of the attacker.As a result, the attacker discovers a way to access the server [157].Finally, a hijacking attack disrupts a server-client session and establishes a new session between the attacker and the server [158].

Data Link Layer
The data link layer is the second layer of the OSI model.The protocols are run by nodes in this layer.Nodes can be hosts, routers, switches, or Wi-Fi access points.The communication between the nodes is done along the communication channels, also known as links.Data from the source host to the destination host are transferred over the links [100,159].

Data Link Layer Protocols
There are plenty of protocols in this layer, but we present the common ones, which are Address Resolution Protocol (ARP), Spanning Tree Protocol (STP), and Serial Line Internet Protocol (SLIP).ARP, which works on the network layer, is responsible for determining link-layer addresses such as MAC and IP addresses [160].There are plenty of paths among devices on the Internet.To prevent a loop between the devices, STP exchanges Bridge Protocol Data Unit (BPDU) packets among the devices to detect loops and close the related bridge interface [161].SLIP encapsulates the Internet Protocol that works over serial ports and modem connections [162].
Data-Link-Layer Attacks Some common attacks in the data link layer are MAC attacks, STP attacks, and ARP poisoning attacks.MAC attacks (a.k.a.Content Access Memory (CAM) Table Flooding) force a switch to operate like a hub to forward the packets to all the ports.This causes flood from the table to switch.STP attacks use forged BPDU messages to change the Spanning Tree topology.Frequent topology changes may cause DoS attacks [161].Although it operates on the network layer, ARP poisoning (MAC spoofing) is carried out in the data link layer.The devices on the Local Area Network keep the entries' IP address and related MAC address in a cache.When an attacker sends a gratuitous ARP (GARP) packet over the Internet to announce the combination of spoofed MAC and IP addresses, the devices update their cache.Therefore, the attacker can use this process (called ARP poisoning) to monitor traffic by forcing the gateway's traffic to flow over their switch [161,163].

Physical Layer
The last layer of the OSI model is the physical layer.In contrast to the data link layer, the physical layer moves the individual bits instead of entire frames within the frame between the nodes.

Physical Layer Protocols
The protocols in this layer depend on the material and the medium of the links, which can be fiber optics, twisted-pair copper wire, Wi-Fi, and so on.

Physical-Layer Attacks
Some common physical-layer attacks are wiretapping, jamming, and tampering.A jamming attack is an attack where a jamming node interferes with transmitting packets to reduce network performance and is a severe attack on Wireless Sensor Networks (WSNs) [164].A wiretapping attack refers to an attacker connecting a third-party wire to the connecting wires, which allows the attacker to observe and analyze the flow of data in active and passive modes [165].A tampering attack is an unauthorized act in which an attacker modifies a system or its components and data on the network.

Threats
Wireless communications infrastructures and services are increasing to meet proliferating demands [157][158][159][160][161][162][163][164][165][166].Accordingly, the increasing number of wireless devices brings security threats such as cyber criminal activities, malicious attacks, data forging, identity theft, and so on [157].Furthermore, these threats are increasing because of smartphone usage for online banking and personal accounts.Therefore, it is crucial to boost wireless communication security to prevent threats.This chapter briefly presents some wireless network attacks, then provides methods to secure wireless networks.

Wireless Security Attacks
A wireless network is a computer network that connects devices by using Radio Frequency (RF), as seen in Figure 8. Malicious association is one of the typical wireless network attacks.An attacker targets a company access point and makes the wireless network card of their cracked laptop look like a legitimate access point.When a user connects to this access point, the attacker can steal the user's password.In addition, the attacker can launch attacks on the wired network.An accidental association is an unintentional threat that an unauthorized user connects to a wireless access point of a close-distance company's network.Since the company's information is exposed, this can be considered a security issue [166][167][168][169][170].
Electronics 2023, 12, x FOR PEER REVIEW 32 of 43 and passive modes [165].A tampering attack is an unauthorized act in which an attacker modifies a system or its components and data on the network.

Threats
Wireless communications infrastructures and services are increasing to meet proliferating demands [157][158][159][160][161][162][163][164][165][166].Accordingly, the increasing number of wireless devices brings security threats such as cyber criminal activities, malicious attacks, data forging, identity theft, and so on [157].Furthermore, these threats are increasing because of smartphone usage for online banking and personal accounts.Therefore, it is crucial to boost wireless communication security to prevent threats.This chapter briefly presents some wireless network attacks, then provides methods to secure wireless networks.

Wireless Security Attacks
A wireless network is a computer network that connects devices by using Radio Frequency (RF), as seen in Figure 8. Malicious association is one of the typical wireless network attacks.An attacker targets a company access point and makes the wireless network card of their cracked laptop look like a legitimate access point.When a user connects to this access point, the attacker can steal the user's password.In addition, the attacker can launch attacks on the wired network.An accidental association is an unintentional threat that an unauthorized user connects to a wireless access point of a close-distance company's network.Since the company's information is exposed, this can be considered a security issue [166][167][168][169][170]. Ad hoc networks are Peer-to-Peer (P2P) networks where clients are connected to each other wirelessly without using an access point.This type of network does not have enough protection, which may cause a significant number of threats [166][167][168][169][170]. Nontraditional networks such as Bluetooth devices can cause security risks because of weak security protection.An attacker can easily listen to the network traffic on these nontraditional networks, identify the MAC address, and exploit the network, which is called MAC spoofing [73][74][75][76].The Caffe Latte attack is a method that targets the WEP security protocol.The attacker obtains the WEP key using ARP requests to send a flood of encrypted ARP responses [166][167][168][169][170]. The above-mentioned network security attacks, such as man-in-themiddle, Denial of Service (DoS), and network injection, are also security threats to wireless Ad hoc networks are Peer-to-Peer (P2P) networks where clients are connected to each other wirelessly without using an access point.This type of network does not have enough protection, which may cause a significant number of threats [166][167][168][169][170]. Nontraditional networks such as Bluetooth devices can cause security risks because of weak security protection.An attacker can easily listen to the network traffic on these nontraditional networks, identify the MAC address, and exploit the network, which is called MAC spoofing [73][74][75][76].The Caffe Latte attack is a method that targets the WEP security protocol.The attacker obtains the WEP key using ARP requests to send a flood of encrypted ARP responses [166][167][168][169][170]. The above-mentioned network security attacks, such as man-in-themiddle, Denial of Service (DoS), and network injection, are also security threats to wireless networks [157].
Securing Wireless Networks Encryption is one of the most effective ways to protect wireless networks.Therefore, a built-in encryption mechanism produces wireless routers and access points.Using antivirus, firewall, and antispyware software and updating them frequently is essential for wireless network protection.The routers come with a default identifier and password.Attackers know the default identifiers that can be used to access the network.Therefore, changing the default identifier and password to unique and strong ones is crucial.In addition, the identifier broadcasting should be turned off for the sake of network security.Each computer has its own Media Access Control (MAC) address that the computer uses when connected to the network.Wireless routers can be set to allow specific MAC addresses to access the network.However, this method is insufficient to secure the network perfectly since attackers can mimic MAC addresses.Last but not least, educating users about the importance of network security and routinizing the usage of protection methods is quite critical to reducing attacks and threats [157,[166][167][168][169][170].
Securing switches is a crucial technique for the sake of network security.Switches can be protected by keeping them locked up, disabling unused ports, filtering MAC address tables, checking/controlling duplicate MAC addresses, providing unicast flood protection, and updating switches frequently [171].Securing routers is also an important technique to protect users from threats.To do that, the user must change the router password and SSID from default to unique ones, encrypt Wi-Fi, turn off WPS and UPnP, use a password-protected guest network, control port forwarding, and periodically check for new firmware [172].

Evaluation of Cyber Security Vulnerabilities, Threats, Attacks, Solutions, and Future Challenges
This section discusses cyber security threats, attacks, possible solutions, and future research directions.Figure 9 shows the security solutions applied in the cyber security domain.Basically, solutions are divided into two main categories: technical and nontechnical.The nontechnical solutions can be listed as physical and administrative.The area protection, computing devices' physical security, data center disaster recovery plan, and the location of the backups are crucial when preserving physical security.Administrative-based management and adjustments are other essential concepts in nontechnical solutions.Policies, procedures, standards, risk assessment, vendor management, assigned responsibilities, and training are other important concepts when dealing with cyber attacks.Even if cyber security specialists create the most powerful protection system, adequate security will not be provided if the users of this system are not adequately trained.Thus, nontechnical solutions are as important as technical solutions.Technical solutions are divided into three groups: technologies and platforms, used tools, and applying AI and data science.The substantial technologies and platforms are given in Figure 9. Cryptography protects the data's integrity and confidentiality when stored on disk and in transit.Access control restricts access to the data, which increases security while decreasing the possibility of remote attack as well as privilege escalation.Big data allows for analyzing a large amount of data in order to discover unknown patterns as well as malicious features of attacks.
Emerging technologies such as blockchain, virtualization, and big data are also starting to be widely used in cyber security.For example, blockchain technology helps to validate the consistency of the data, as well as detect some complex attacks.Virtualization techniques separate software applications from the hardware components, which increases the software usability and decreases the cost, while reducing the downtime in case of cyber attacks.Proactive threat management, advanced data security, scalability, high availability, and efficient data recovery are all features of the cloud computing platform.
Various well-known tools and protocols help to detect, prevent, and decrease the number of attacks (Figure 9).ACLs (Access control lists) can filter the packets based on the source IP addresses, ports, and protocols.Firewalls also filter the packages based on predefined rules.ACLs and firewalls help to reduce DDoS attacks.IDSs and IPSs are used to detect intrusions based on the signatures or anomalies in computer networks.VPNs, IPsec, TLS, and SSL technologies and protocols are used to protect data's confidentiality and integrity when transmitted across the network.The WSA and ESA protect the web servers and email servers, respectively.Antivirus scanners detect malware-related attacks in the end hosts.Vulnerability scanners help to detect and classify the vulnerabilities that systems have.They find the vulnerabilities before the attackers and give chances to patch the discovered vulnerabilities.To effectively protect computer systems, all the tools mentioned above, protocols, and technologies (Figure 9) need to be used in each layer.Additionally, new attack detection systems that use statistics, probability, data mining, and machine learning techniques are needed.
The attack surface and strategies evolve over time, decreasing the efficiency and feasibility of current detection systems.New solutions can be added to the existing ones or new systems designed to combat more intelligent attacks.Statistics, probability, data mining, and machine learning techniques can be used in this respect.Statistics is a scientific method that analyzes, interprets, and uncovers patterns in data.Probability is the technique that identifies the chance of an event occurring.Data mining is a method that discovers and extracts unknown patterns in large datasets.It intersects with statistics, machine learning, and computer science.Machine learning techniques allow computers to learn without being explicitly programmed.In other words, ML techniques describe the data algorithmically.Statistics and probability-based solutions have been used for many years in cyber security.However, data mining and ML techniques have become popular in the cyber security domain in recent years [173].The new data mining and ML techniques help to add new features to the existing attack detection systems.In addition, these innovative technologies make detection systems more intelligent against recent cyber attacks.
ML-based techniques are varied, including regression, probabilistic, distance-based learning, decision trees, dimensionality reduction algorithms, and boosting-bagging algorithms applicable in cyber security.These ML-based techniques help to scan for data breaches and vulnerabilities in computer systems and communication networks.They provide fast analysis for large amounts of data and adjust it without domain expert input.Additionally, ML methods significantly improve threat detection accuracy and enhance network efficiency using heuristic techniques.Specifically, ML techniques are applicable in a wide range of areas in cyberspace.These application areas can be summarized as follows:

•
Malware detection [174]  Even though there are several advances to detecting attacks in the digital world, there are still key challenges to identifying attacks in the cyber security domain.These challenges can be listed as follows:  Even though there are several advances to detecting attacks in the digital world, there are still key challenges to identifying attacks in the cyber security domain.These challenges can be listed as follows: • It takes a lot of time to design a secure system; • It is not easy to create, store, and distribute confidential information;

Conclusions
This comprehensive review paper summarizes cyber security problems and solutions based on recent technological advances.In order to provide solid and detailed information about cyber security, we divided cyber security issues into three extensive sections: cyber security fundamentals; threats, vulnerabilities, exploits, and attacks; and network security level by level.This division is critical for understanding the main components of cyber security and for providing holistic solutions to security problems.
In the cyber security fundamentals section, technical and nontechnical reasons that cause the increase in cyber attacks are listed.Cyber attacks are dynamic and affect all computer-based systems and the Internet environment by changing the attack format and target audience occasionally.The transfer of social life to the Internet environment increases cyber attacks and their destructive effects.Errors and vulnerabilities in software, the inadequacy of network protocols, the number of devices added to the network, and the complexity of critical systems all increase cyber security risks.Furthermore, the virtualization of social life, excessive use of social networks, attackers' increased knowledge, and users' careless Internet usage also raise security risks in the digital world.
The main components of attack strategies, which exploit the system and third-party software vulnerabilities, are explained in the section on threats, exploits, exploits, and attacks section.Cyber attackers use well-prepared malicious code blocks to exploit vulnerabilities in computer-based systems.Common malware (viruses, worms, rootkits, ransomware, etc.), hacking tools, application attacks, access attacks, cryptography attacks, and APTs (Advanced Persistent Threats) can be listed as common threats and attacks in the cyber security domain.Recently, cyber-attacks-as-a-service tools have become available for those who want to create cyber attacks.This increases the number of attacks and makes detection processes more challenging.Each layer's common attacks and potential solutions are presented to comprehend network security fully.The attacks generally target a certain layer's protocols to succeed.Network attacks can be categorized based on layer, namely as physical-layer attacks (sniffing), data-link-layer attacks (spoofing: MAC, ARP, etc.), network-layer attacks (manin-the-middle), transport-layer attacks (reconnaissance), session-layer attacks (hijacking), presentation-layer attacks (phishing), and application-layer attacks (exploits).The main reasons for the success of attacks arise from vulnerabilities in computer network protocols and the misconfiguration of network devices.These protocols can be listed as ARP, DNS, DHCP, FTP, ICMP, IP, TCP, UDP, etc.For instance, when packets are transmitted over the network using the IP protocol, there is no structure to control the accuracy and confidentiality of these packets.Hence, the information in the packets can be exposed and changed during packet transmission.In the same way, since DNS responses are not verified, users connect to servers created by the attackers instead of the actual server.Existing protocol vulnerabilities must be reduced, new protocols must be added, and network devices must be configured correctly and completely to protect data as they move across computer networks.
To protect the computer-based system from attackers effectively, individuals, organizations, software developers, and countries must collaborate to provide extensive protection.In this context, the solutions can be categorized into technical and nontechnical.When dealing with cyber attacks, administrative-based management, policies, standards, procedures, risk assessment, vendor management, assigned responsibilities, and training are critical nontechnical concepts.Even if cyber security specialists create the most well-designed protection system, adequate security will not be provided if the users of this system are not adequately trained.
Technical solutions, on the other hand, use technological advances and science to create smart applications to deal with attackers.Technical solutions can be divided into three groups: technologies and platforms, used tools, and applying artificial intelligence and data science.Cryptography protects the integrity and confidentiality of data.Access control restricts access to data, which increases the level of security.Big data allows for analyzing a large amount of data in order to discover unknown patterns as well as malicious features of attacks.Virtualization techniques separate software applications from the hardware components, which increases the software usability and decreases the cost, while reducing the downtime in case of cyber attacks.The cloud computing platform provides proactive threat management, advanced data security, scalability, high availability, and efficient data recovery.Blockchain technology assists in validating the consistency of the data, as well as detecting some complex attacks.Statistical methods help to interpret and uncover patterns in data.Data mining discovers and extracts unknown patterns in large datasets.The ML techniques help to add new features to the existing attack detection systems.Additionally, these innovative ML technologies have improved detection systems' intelligence in the face of recent cyber attacks.
Even though the mentioned technical advances significantly improve the ability to scan for data breaches, find vulnerabilities in computer systems and communication networks, and enhance the accuracy of attack detection systems, there are still some challenges to effectively detecting new and complex cyber attacks.These challenges are that the complexity of the attacks is increasing; attacks are becoming automated by cyber-attacksas-a-service; intelligent attacks bypass the detection systems; ML-based algorithms make assumptions about the data, which contain bias; classifying millions of network connections is challenging; dealing with high-dimensional data is cumbersome; the protection of multiple components is rugged; and security often turns into a human issue.

Figure 1 .
Figure 1.Three dimensions of cyber security.

Figure 1 .
Figure 1.Three dimensions of cyber security.

Figure 2 .
Figure 2. Main reasons for cyber attacks.

Figure 2 .
Figure 2. Main reasons for cyber attacks.

Figure 3 .
Figure 3. Technical knowledge of attackers versus attack complexity.

Figure 3 .
Figure 3. Technical knowledge of attackers versus attack complexity.

Figure 7 .
Figure 7. Representation of routing algorithm between sender and receiver in computer network.

Figure 7 .
Figure 7. Representation of routing algorithm between sender and receiver in computer network.

Figure 8 .
Figure 8.A sample of wireless networks.

Figure 8 .
Figure 8.A sample of wireless networks.

Figure 9 .
Figure 9.Represent the technical and non-technical cyber security solutions.

•
It takes a lot of time to design a secure system; • It is not easy to create, store, and distribute confidential information; • Security is often an afterthought; • Security is often seen as a barrier; • Security professionals must identify and fix all vulnerabilities-an attacker only needs to find one; • Security often turns into a human issue; • Detecting and preventing unknown attacks are challenging; • The complexity of the attacks is increasing; • Attacks are becoming automated by using cyber-attacks-as-a-service; • Intelligent attacks bypass the detection systems; • ML-based algorithms assume the data; • ML-based algorithms are prone to bias; • ML-based algorithms cannot handle outliers all the time; • ML-based attacks are increasing; • Classifying millions of network connections is a challenging task; • Dealing with high-dimensional data is cumbersome;

Figure 9 .
Figure 9. Represent the technical and non-technical cyber security solutions.

•
Security is often an afterthought; • Security is often seen as a barrier; • Security professionals must identify and fix all vulnerabilities-an attacker only needs to find one; • Security often turns into a human issue; • Detecting and preventing unknown attacks are challenging; • The complexity of the attacks is increasing; • Attacks are becoming automated by using cyber-attacks-as-a-service; • Intelligent attacks bypass the detection systems; • ML-based algorithms assume the data; • ML-based algorithms are prone to bias; • ML-based algorithms cannot handle outliers all the time;

Table 2 .
The classification of cyber crimes over the decades.

•
ML-based attacks are increasing; • Classifying millions of network connections is a challenging task; • Dealing with high-dimensional data is cumbersome; • The data preprocessing step is complex because of multiple data formats; • Creating contextual features is tough; • Applying domain knowledge for automated analysis is difficult; • Not enough consistent and up-to-date datasets are available to test the proposed methods in cyber security; • The protection of multiple components is a challenging task; •