Cyber Security Notes
Cyber Security Notes
Introduction to
Cyber Security
Text book and Reference books:
Cyber Security Understanding Cyber Crimes, Computer Forensics and Legal Perspectives,
Sumit Belapure and Nina Godbole, Wiley India Pvt. Ltd.
UNIT-I
Cyber security is the most concerned matter as cyber threats and attacks are overgrowing.
Attackers are now using more sophisticated techniques to target the systems. Individuals,
small-scale businesses or large organization, are all being impacted. So, all these firms
whether IT or non-IT firms have understood the importance of Cyber Security and focusing
on adopting all possible measures to deal with cyber threats.
"Cyber security is primarily about people, processes, and technologies working together to
encompass the full range of threat reduction, vulnerability reduction, deterrence, international
engagement, incident response, resiliency, and recovery policies and activities, including
computer network operations, information assurance, law enforcement, etc."
OR
Cyber security is the body of technologies, processes, and practices designed to protect
networks, computers, programs and data from attack, damage or unauthorized access.
The term cyber security refers to techniques and practices designed to protect
digital data.
OR
Cyber security is the protection of Internet-connected systems, including hardware, software,
and data from cyber attacks.
It is made up of two words one is cyber and other is security.
Cyber is related to the technology which contains systems, network and programs
or data.
Whereas security related to the protection which includes systems security, network
security and application and information security.
Because of the above reasons, cyber security has become an important part of the
business and the focus now is on developing appropriate response plans that minimize
the damage in the event of a cyber attack.
But, an organization or an individual can develop a proper response plan only when
he has a good grip on cyber security fundamentals.
It also means trying to keep the identity of authorized parties involved in sharing and holding
data private and anonymous.
Data encryption
Two-factor authentication
Biometric verification
Security tokens
Integrity
Cryptographic checksums
Using file permissions
Uninterrupted power supplies
Data backups
Availability
Availability is making sure that authorized parties are able to access the information when
needed.
These are the attacks which occur on a website or web applications. Some of the important
web-based attacks are as follows-
1.Injection attacks
It is the attack in which some data will be injected into a web application to manipulate the
application and fetch the required information.
Example- SQL Injection, code Injection, log Injection, XML Injection etc.
2.DNS Spoofing
DNS Spoofing is a type of computer security hacking. Whereby a data is introduced into a
DNS resolver's cache causing the name server to return an incorrect IP address, diverting
traffic to the attackers computer or any other computer. The DNS spoofing attacks can go on
for a long period of time without being detected and can cause serious security issues.
3.Session Hijacking
It is a security attack on a user session over a protected network. Web applications create
cookies to store the state and user sessions. By stealing the cookies, an attacker can have
access to all of the user data.
4.Phishing
Phishing is a type of attack which attempts to steal sensitive information like user login
credentials and credit card number. It occurs when an attacker is masquerading as a
trustworthy entity in electronic communication.
5.Brute force
It is a type of attack which uses a trial and error method. This attack generates a large number
of guesses and validates them to obtain actual data like user password and personal
identification number. This attack may be used by criminals to crack encrypted data, or by
security, analysts to test an organization's network security.
6.Denial of Service
It is an attack which meant to make a server or network resource unavailable to the users. It
accomplishes this by flooding the target with traffic or sending it information that triggers a
crash. It uses the single system and single internet connection to attack a server. It can be
classified into the following-
Volume-based attacks- Its goal is to saturate the bandwidth of the attacked site, and is
measured in bit per second.
Application layer attacks- Its goal is to crash the web server and is measured in request per
second.
7.Dictionary attacks
This type of attack stored the list of a commonly used password and validated them to get
original password.
8.URL Interpretation
It is a type of attack where we can change the certain parts of a URL, and one can make a
web server to deliver web pages for which he is not authorized to browse.
It is a type of attack that allows an attacker to access unauthorized or essential files which is
available on the web server or to execute malicious files on the web server by making use of
the include functionality.
It is a type of attack that allows an attacker to intercepts the connection between client and
server and acts as a bridge between them. Due to this, an attacker will be able to read, insert
and modify the data in the intercepted connection.
System-based attacks
These are the attacks which are intended to compromise a computer or a computer network.
Some of the important system-based attacks are as follows-
1.Virus
It is a type of malicious software program that spread throughout the computer files without
the knowledge of a user. It is a self-replicating malicious computer program that replicates by
inserting copies of itself into other computer programs when executed. It can also execute
instructions that cause harm to the system.
2.Worm
3.Trojan horse
It is a malicious program that occurs unexpected changes to computer setting and unusual
activity, even when the computer should be idle. It misleads the user of its true intent. It
appears to be a normal application but when opened/executed some malicious code will run
in the background.
4.Backdoors
It is a method that bypasses the normal authentication process. A developer may create a
backdoor so that an application or operating system can be accessed for troubleshooting or
other purposes.
5.Bots
A bot (short for "robot") is an automated process that interacts with other network services.
Some bots program run automatically, while others only execute commands when they
receive specific input. Common examples of bots program are the crawler, chatroom bots,
and malicious bots.
The 7 layers of cyber security should centre on the mission critical assets you are seeking to
protect.
Cyber threats are security incidents or circumstances with the potential to have a negative
outcome for your network or other data management systems.
Examples of common types of security threats include phishing attacks that result in the
installation of malware that infects your data, failure of a staff member to follow data
protection protocols that cause a data breach, or even a tornado that takes down your
company’s data headquarters, disrupting access.
Vulnerabilities are the gaps or weaknesses in a system that make threats possible and tempt
threat actors to exploit them.
Types of vulnerabilities in network security include but are not limited to SQL injections,
server misconfigurations, cross-site scripting, and transmitting sensitive data in a non-
encrypted plain text format.
When threat probability is multiplied by the potential loss that may result, cyber security
experts, refer to this as a risk.
SECURITY VULNERABILITIES, THREATS AND ATTACKS –
Categories of vulnerabilities
● Corrupted (Loss of integrity)
● Leaky (Loss of confidentiality)
● Unavailable or very slow (Loss of availability)
– Threats represent potential security harm to an asset when vulnerabilities are exploited
-Attacks are threats that have been carried out
● Passive – Make use of information from the system without affecting system
resources
● Active – Alter system resources or affect operation
● Insider – Initiated by an entity inside the organization
● Outsider – Initiated from outside the perimeter
Computer criminals
Computer criminals have access to enormous amounts of hardware, software, and data; they
have the potential to cripple much of effective business and government throughout the
world. In a sense, the purpose of computer security is to prevent these criminals from doing
damage.
We say computer crime is any crime involving a computer or aided by the use of one.
Although this definition is admittedly broad, it allows us to consider ways to protect
ourselves, our businesses, and our communities against those who use computers maliciously.
One approach to prevention or moderation is to understand who commits these crimes and
why. Many studies have attempted to determine the characteristics of computer criminals. By
studying those who have already used computers to commit crimes, we may be able in the
future to spot likely criminals and prevent the crimes from occurring.
CIA Triad
The CIA Triad is actually a security model that has been developed to help people think
about various parts of IT security.
CIA triad broken down:
Confidentiality
It's crucial in today's world for people to protect their sensitive, private information from
unauthorized access.
Protecting confidentiality is dependent on being able to define and enforce certain access
levels for information.
In some cases, doing this involves separating information into various collections that are
organized by who needs access to the information and how sensitive that information actually
is - i.e. the amount of damage suffered if the confidentiality was breached.
Some of the most common means used to manage confidentiality include access control lists,
volume and file encryption, and Unix file permissions.
Integrity
This is an essential component of the CIA Triad and designed to protect data from deletion or
modification from any unauthorized party, and it ensures that when an authorized person
makes a change that should not have been made the damage can be reversed.
Availability
This is the final component of the CIA Triad and refers to the actual availability of your data.
Authentication mechanisms, access channels and systems all have to work properly for the
information they protect and ensure it's available when it is needed.
The CIA Triad is all about information. While this is considered the core factor of the
majority of IT security, it promotes a limited view of the security that ignores other important
factors.
For example, even though availability may serve to make sure you don't lose access to
resources needed to provide information when it is needed, thinking about information
security in itself doesn't guarantee that someone else hasn't used your hardware resources
without authorization.
It's important to understand what the CIA Triad is, how it is used to plan and also to
implement a quality security policy while understanding the various principles behind it. It's
also important to understand the limitations it presents. When you are informed, you can
utilize the CIA Triad for what it has to offer and avoid the consequences that may come along
by not understanding it.
Intentional threats include things such as criminal hacking or a malicious insider stealing
information, whereas accidental threats generally involve employee error, a technical
malfunction or an event that causes physical damage, such as a fire or natural disaster.
Motive of Attackers
The categories of cyber-attackers enable us to better understand the attackers' motivations and
the actions they take. As shown in Figure, operational cyber security risks arise from three
types of actions: i) inadvertent actions (generally by insiders) that are taken without malicious
or harmful intent; ii) deliberate actions (by insiders or outsiders) that are taken intentionally
and are meant to do harm; and iii) inaction (generally by insiders), such as a failure to act in a
given situation, either because of a lack of appropriate skills, knowledge, guidance, or
availability of the correct person to take action Of primary concern here are deliberate
actions, of which there are three categories of motivation.
Masquerade: in this attack, the intruder pretends to be a particular user of a system to gain
access or to gain greater privileges than they are authorized for. A masquerade may be
attempted through the use of stolen login IDs and passwords, through finding security gaps
in programs or through bypassing the authentication mechanism.
Session replay: In this type of attack, a hacker steals an authorized user’s log in information
by stealing the session ID. The intruder gains access and the ability to do anything the
authorized user can do on the website.
Message modification: In this attack, an intruder alters packet header addresses to direct a
message to a different destination or modify the data on a target machine.
In a denial of service (DoS) attack, users are deprived of access to a network or web
resource. This is generally accomplished by overwhelming the target with more traffic than it
can handle.
Passive Attacks:Passive attacks are relatively scarce from a classification perspective, but
can be carried out with relative ease, particularly if the traffic is not encrypted.
Eavesdropping (tapping): the attacker simply listens to messages exchanged by two entities.
For the attack to be useful, the traffic must not be encrypted. Any unencrypted information,
such as a password sent in response to an HTTP request, may be retrieved by the attacker.
Traffic analysis: the attacker looks at the metadata transmitted in traffic in order to deduce
information relating to the exchange and the participating entities, e.g. the form of the
exchanged traffic (rate, duration, etc.). In the cases where encrypted data are used, traffic
analysis can also lead to attacks by cryptanalysis, whereby the attacker may obtain
information or succeed in unencrypting the traffic.
Logic A Logic Bomb is malware that lies dormant until triggered. A logic bomb is a
Bomb specific example of an asynchronous attack.
Security Policies:
Security policies are a formal set of rules which is issued by an organization to ensure that the
user who are authorized to access company technology and information assets comply with
rules and guidelines related to the security of information.
A security policy also considered to be a "living document" which means that the document
is never finished, but it is continuously updated as requirements of the technology and
employee changes.
We use security policies to manage our network security. Most types of security policies are
automatically created during the installation. We can also customize policies to suit our
specific environment.
Firewall Policy:
● This policy automatically detects and blocks the network attacks and
browser attacks.
● It also protects applications from vulnerabilities and checks the contents
of one or more data packages and detects malware which is coming
through legal ways.
The term “cyberspace” was introduced in the early 1980s by William Gibson,
an American science fiction novelist in his work Neuromancer. It refers to the
virtual environment created by interlocking networks of computers and
electronic systems. That is, cyberspace is that realm in which online
communication, data exchange, and digital interactions take place.
1. Public Cyberspace: It includes the Internet and all the other publicly
accessible digital spaces. This is where most of the online interactions go
on, from social media to e-commerce and public information exchange.
2. Private Cyberspace: These are private networks and systems that can
only be accessed by authorized people or organizations. Examples
include corporate networks, personal devices, and encrypted
communication channels.
3. Social Cyberspace: This can be subcategorized under public cyberspace
and is used to refer to digital spaces wherein social interactions occur.
Examples include social media platforms, forums, online communities,
and so on.
4. Commercial Cyberspace: This refers to online marketplaces and digital
financial systems in general, including areas where business transactions
take place.
5. Military Cyberspace: A very secure, self-contained digital environment
used for communications, intelligence, and operational planning by the
military and defense communities.
Key Components of Cyberspace
1. Networks: These are the backbone of cyberspace and involve many
different interconnected networks of computers, servers, and
communication systems helping in data transmission.
2. Hardware: This basically represents the real devices physically existing,
such as computers, routers, and servers, making up the physical
infrastructure of cyberspace. They serve a very important purpose.
3. Software: Software pertains to the applications, operating systems, and
platforms that run on hardware to enable communication, data
processing, etc.
4. Data: Data refers to information stored, transmitted, and processed
within cyberspace. These range from personal data to corporate records
and government databases.
5. Protocols: Protocols refer to a set of rules and standards that define how
data is transmitted and received across the network. These ensure that
different systems can communicate with each other.
6. Users: Users can consist of human beings and organizations that
approach cyberspace for any of the purposes: communication, business,
entertainment, and so on.
Cyberspace has several threats, which are always hanging over the heads of the
stakeholders. The threats belong to ill-meaning actors who would like to exploit
the vulnerabilities for financial benefits, political motives, or personal
satisfaction. Some common threats include:
By designing the above strategies, more secure cyberspace can be achieved for
the protection of users and their data.
There are several advantages of cyberspace that have changed people’s ways of
life, working, and communicating. These include:
1. Global Connectivity: Several people across the world can communicate
and collaborate in real-time due to the availability of cyberspace, hence
the removal of geographical limitations.
2. Economic Growth: The essence of cyberspace to create a digital
economy has fostered new industries in other areas, created jobs, and
opened up new opportunities that lead to innovation.
3. Access to Information: One of the distinguishing features of cyberspace
is the provision of access to information that has enabled education,
research, and informed decision-making on a very wide scale.
4. Convenience: The internet has made available banking, shopping, and
entertainment facilities that are literally right at everyone’s fingertips.
5. Enhanced Communication: social media, email, messaging, etc. have
changed the concepts of communication for the current generation and
keep them in touch with their friends, family, and colleagues around the
globe.
6. Innovation: Cyberspace is a ground that helps to foster tech innovations,
and its background continues to drive some more in the form of artificial
intelligence, cloud computing, and the Internet of Things.
These cyberspace security solutions can ensure the safety of cyberspace and
guarantee that users can indeed trust the digital space.
Cyberspace and physical space are two different but connected realms:
1. Nature: Physical space is the real world, while cyberspace is a virtual
world of interlinked networks.
2. Interactions: In the physical world, interactions take place face-to-face
and involve physical objects. In cyberspace, interactions are completely
digital and happen through computers, mobile phones, and other devices.
3. Security: Safety in physical space deals with securing buildings, and
infrastructures, and in cyberspace, it is about securing digital assets, data,
or networks.
4. Regulation: Physical space is regulated under local, national, and
international law, while cyberspace is a global environment with tricky
regulative questions.
5. Vulnerabilities: Physical space is vulnerable to traditional threats like
theft or natural disasters, and cyberspace is vulnerable to cyber threats
like hacking, data breaches, and malware.
1. Social Media: Facebook, Twitter, Instagram, and other apps that people
use to connect, share information, and discuss.
2. E-Commerce: This includes Amazon, eBay, Alibaba, etc. These are of
the commercial cyberspace where the buying and selling of goods and
services take place.
3. Cloud Computing: Google Drive, Microsoft Azure, and AWS are
examples of cyberspace that store, process, and access data remotely.
4. Online Banking: PayPal, Venmo, and even normal bank apps are
examples of financial cyberspace that enables a user to make secure
financial transactions.
5. Government Services: E-government portals, like tax filing websites
and online voter registration systems, are cases of using cyberspace in the
delivery of public services.
Module 2
Types of Hackers
Hackers can be classified into three different categories:
These people use the same technique used by the black hat hackers. They also hack the
system, but they can only hack the system that they have permission to hack in order to test
the security of the system. They focus on security and protecting IT system. White hat
hacking is legal.
In most cases, they tell the administrator of that system. But they are also illegal because they
test the security of the system that they do not have permission to test. Grey hat hacking is
sometimes acted legally and sometimes not.
Kali Linux is an operating system that is built for penetration testers that comes with a vast
set of built-in tools. One of the tool categories within the Kali Linux operating system is
focused on sniffing and spoofing network traffic.
Sniffing is the process in which all the data packets passing in the network are monitored.
Network administrators typically use sniffers to monitor and troubleshoot network traffic.
Attackers use sniffers to monitor and collect data packets in order to acquire sensitive data
such as passwords and user accounts. Sniffers can be installed as hardware or software on
the system.
Spoofing is the process in which an intruder creates fake traffic and pretends to be someone
else (legitimate entity or legal source). Spoofing is accomplished by transmitting packers
over the network with an erroneous source address. Using a digital signature is a great
technique to deal with and tackle spoofing.
1. Wireshark
One of the best and widely used tools for sniffing and spoofing is Wireshark. Wireshark is a
network traffic analysis tool with a plethora of capabilities. Wireshark's extensive library of
protocol dissectors is one of its most distinguishing features. These allow the tool to analyze a
wide range of protocols, break out the several fields in every packet and display them within
an accessible graphical user interface (GUI). Users with even basic network understanding
will be able to understand what they are looking for. In addition, Wireshark has a number of
traffic analysis tools, such as statistical analysis and the capability to follow network sessions
or decrypt SSL/TLS traffic.
Wireshark is a useful sniffing tool since it gives us a lot of information about network traffic,
either from a capture file or a live capture. This can help with understanding the network
layout, capturing leaked credentials, and another task.
2. Mitmproxy
The attacker interjects oneself into communication between a client and a server in
a man-in-the-middle (MitM) attack. All traffic passing across that connection is intercepted
by the attacker, giving them the ability to listen in on traffic and change data passing through
the network.
With the help of the mitmproxy in Kali Linux, we can easily perform the MitM attacks on
web traffic. It enables the on-the-fly capture and modification of HTTP traffic, supports
client and server traffic replay, and comprises the capability to automate attacks
using Python. Mitmproxy may also support the interception of HTTPs traffic
with SSL certificates generated on-the-fly.
3. Burp Suite
Burp Suite is a collection of various penetration tools. Its main focus is on web application
security analysis. Burp Proxy is the main tool in Burp Suite which is helpful in Sniffing and
Spoofing. Burp Proxy permits us to intercept and modify HTTP connections, as well as
provides supports for intercept HTTPs connection.
It works on a freemium model. Although the basic tools are free, attacks must be carried out
manually without the ability to save work. Paying for a license grants us access to a larger
tool (including a web vulnerability scanner) as well as automation support.
4. dnschef
The dnschef tool is a DNS proxy that may be used to analyze malware and penetration
testing. A highly configurable DNS proxy, dnschef, is used for analyzing network traffic.
This DNS proxy can generate fake requests and utilize these requests to be sent to a local
machine rather than a real server. This tool works on multiple platforms and can generate
phony requests and responses depending on domain lists. Different DNS record types are also
supported by the dnschef tool.
When it is impossible to force an application to use another proxy server, a DNS proxy must
be used instead. If a mobile application disregards the HTTP proxy setting, dnschef can
deceive it by faking requests and answers to a specified target.
5. Zaproxy
On Kali Linux, the executable named Zaproxy is OWASP's Zed Attack Proxy (ZAP). Like
Burp Suite, ZAP is a penetration testing tool that aids in detecting and exploiting
vulnerabilities within web applications.
Because of its ability to intercept and modify HTTP(S) traffic, ZAP is a handy tool for
sniffing and spoofing. ZAP has a lot of functionality and is a completely free tool for carrying
out these attacks.
Gaining Access
Gaining access attack is the second part of the network penetration testing. In this section, we
will connect to the network. This will allow us to launch more powerful attacks and get more
accurate information. If a network doesn't use encryption, we can just connect to it and sniff
out unencrypted data. If a network is wired, we can use a cable and connect to it, perhaps
through changing our MAC address. The only problem is when the target use encryption like
WEP, WPA, WPA2. If we do encounter encrypted data, we need to know the key to decrypt
it, that's the main purpose of this chapter.
If the network uses encryption, we can't get anywhere unless we decrypt it. In this section, we
will discuss that how to break that encryption and how to gain access to the networks whether
they use WEP/WPA/WPA2.
Executing Applications
Intruder executes malicious applications after gaining administrative privileges so they can
run malicious programs remotely, to capture all sensitive data, crack passwords, capture
screenshots or to install a backdoor.
Tool: RemoteExec, PDQ Deploy, DameWare NT Utilities
Keylogger
keystroke loggers are programs or hardware devices that monitor each keystroke a user types
on a keyboard, logs onto a file, or transmits them to a remote location.
keyloggers are placed between the keyboard hardware and the OS
A key logger can
Record each keystroke
capture screenshots at regular intervals of time showing user activity such as when he or she
types a character or click a mouse button
Track the activities of users by logging window titles, names of launched applications and
other information
monitor online activity of users by recording addresses of the websites that they have visited
and with the keywords entered by them
record all the login names, bank and credit card numbers and passwords including hidden
passwords or data that are in asterisk or blank spaces
record online chat conversion
Types of Keylogger
Hardware Keylogger
Software Keylogger
Spyware
Spyware is stealthy computer monitoring software that allows you to secretly record all
activities of a computer user.
Different means of hiding files may be specific to different operating systems, but many are
generally applicable. Some of the options for hiding files on a system include:
In this section, we provide a brief introduction to each of these techniques and an overview of
some of their pros and cons.
On Windows, files can be marked as hidden through the use of [Link] or through File
Explorer. On Linux, any file whose filename begins with a period is marked as hidden by
default.
While this technique is probably the easiest means of hiding files, it’s also the easiest to
detect. The technique is well known, and it is easy to set Windows File Explorer or ls on *nix
to show even hidden files.
Unexpected locations
Another simple means of hiding files from a user is by placing them in unexpected locations.
While the user can easily see these files if they are looking for them, they’re unlikely to do
so.
One example of this is placing a malicious file in the Recycle Bin on Windows. Most users
ignore the Recycle Bin and may believe that anything there has already been dealt with by an
antivirus. However, files located there can still execute and cause damage.
Another example of an unusual location is the System32 folder on Windows. Since this folder
contains files vital to the functionality of the operating system, most users won’t look there,
let alone terminate or delete a potentially suspicious file that is located there.
Function modification
On both Windows and *nix systems, there are certain applications designed to provide lists of
files located on the filesystem. For example, Linux uses the ls command to provide this list.
These applications can be modified to hide the presence of certain files on the system. A
modified version of ls could be configured to specifically ignore certain attacker-owned files.
This technique is effective as long as the user does not detect the fact that ls has been
modified. Modifications can easily be detected by comparing the hash of the binary to a
known-good hash, and many security tools are designed to perform this comparison and
generate alerts if a discrepancy is discovered.
Function hooking
For those wanting to hide their files from more than just the casual user, the use of function
hooks is a good option. Function hooking is the technique used by rootkits to hide malware
on a system.
When an application wants a list of the files stored on a computer, the processes running and
so on, it calls a low-level function of the operating system. This function runs, generates the
list, and then sends it back to the calling application.
With function hooking, a rootkit intercepts all calls and responses between applications and
these low-level functions. This allows the program to ensure that the lists of files provided do
not include any files that the rootkit wants to remain hidden.
Function hooking is made possible due to the fact that many of these low-level functions
operate in the operating system’s kernel, while applications run in user mode. In Windows,
applications call kernel functions through interrupts or model specific registers (MSRs). Both
of these can be hooked by a rootkit, ensuring that the rootkit controls all kernel calls.
Alternatively, the System Service Descriptor Table (SSDT) is a table in the kernel containing
pointers to all kernel functions. If a rootkit modifies this table to point certain functions to
code under its control, the rootkit ensures that it controls any attempts to read lists of files on
the operating system.
Regardless of the specific method used, function hooking is one of the most effective means
of hiding files on a system. However, it often also requires elevated levels of access, since
kernel-level data structures must be modified.
Privilege escalation is when a threat actor gains elevated access and administrative rights to a
system by exploiting security vulnerabilities. By modifying identity permissions to grant
themselves increased rights and admin capabilities, attackers can conduct malicious activities,
potentially resulting in significant damages.
Systems have different levels of privileges, which range from basic users with limited
permissions to administrators with complete control. A successful privilege escalation
incident means that an attacker has managed to escalate their own privilege level, thereby
gaining increased control.
Cyber attackers use privilege escalation to open up new attack vectors on a target system.
This enables them to evolve attacks from simple malware infections to catastrophic data
breaches and network intrusions.
There are two primary types of privilege escalation attacks that threat actors use: vertical and
horizontal. While both types involve attackers attempting to gain unauthorized access to
resources or perform malicious actions, how the attack is carried out can involve different
approaches.
An attacker can use vertical privilege escalation to gain access from a standard user account
to higher-level privileges, such as superuser or administrator, thereby granting them
unrestricted control over the entire system. Oftentimes, this gives them full control over the
system, allowing them to modify configurations, install software, create new user accounts
with escalated privileges or even delete essential data.
Horizontal privilege escalation occurs when an attacker gains access at the same permission
level but under different user identities. For example, when an attacker uses an employee's
stolen credentials, this is horizontal privilege escalation. The goal here isn't necessarily to
gain root privileges. Instead, the goal is to access sensitive information that belongs to other
users within the same privilege level.
The key difference between these two types of attack lies in the kind of access the attacker
seeks. With vertical escalation, an attacker takes advantage of vulnerabilities for elevated
permissions. In contrast, with horizontal escalation the attacker exploits weak security
practices among peers at similar permission levels.
Detecting both types of privilege escalation requires vigilance and robust cybersecurity
measures. These measures include using security monitoring systems that detect unusual
activity and implementing robust authentication methods. Organizations must be aware of the
mechanisms behind these assaults and how they’re carried out to ensure they are adequately
shielded from potential threats.