Module 2
Module 2
Active footprinting describes the process of using tools and techniques, like using the
traceroute commands or a ping sweep -- Internet Control Message Protocol sweep -- to
collect data about a specific target. This often triggers the target's intrusion detection system
(IDS). It takes a certain level of stealth and creativity to evade detection successfully.
Passive footprinting involves collecting data about a specific target using innocuous
methods, like performing a Google search, looking through [Link], using NeoTrace,
browsing through employees' social media profiles, looking at job sites and using Whois, a
website that provides the domain names and associated networks fora specific organization.
It is a stealthier approach to footprinting because it does not trigger the target's IDS.
DNA footprinting is the method used to identify the nucleic acid sequence that binds with
proteins.
An ecological footprint is an approach to measuring human demand for natural capital or
resources. It calculate the amount of natural resources required to support people or an
economy. Ecological footprinting uses an ecological accounting system to keep track of
this demand.
A digital footprint describes one's unique, traceable digital activities. These include actions,
communications and contributions expressed on the internet or digital services. Digital
footprints can be either active or passive.
Footprinting processes start with determining the location and objective of an intrusion.
Once ethical hackers identify a specific target, they gather information about the
organization using nonintrusive methods, such as accessing the organization's own
webpage, personnel directory or employee bios.
Ethical hackers collect this information and initiate social engineering campaigns to
identify security vulnerabilities and achieve ethical hacking goals.
Footprinting techniques in ethical hacking help businesses identify and secure IT
infrastructure before a threat actor exploits a vulnerability.
Users can also build a database of known vulnerabilities and loopholes.
Footprinting also helps companies better understand their current security posture through
analysis of data gathered about the firewall, security configuration and more.
Users can update this list periodically and use it as a reference point during security audits.
Drawing a network map helps cover all trusted routers, servers and other network
topologies.
Users can pursue a reduced attack surface by narrowing it down to a specific range of
systems.
Tools for footprinting includes:
Conducting Competitive Intelligence:
Competitive intelligence is the process of gathering and analyzing information
about competitors to gain insights into their strategies, strengths, weaknesses, and
market positioning.
It involves monitoring competitors' online presence, marketing campaigns, pricing,
product offerings, and customer feedback.
Understanding the competitive landscape, businesses can make informed decisions,
identify opportunities to gain a competitive advantage in the market.
The key to competitor intelligence is that second word – intelligence. Information
gathered however formally or informally won’t help a company unless it is analyzed
thoughtfully or carefully.
You can use the insights gained through competitive intelligence to improve your
current marketing strategy and respond appropriately to the current competitive
landscape.
Google Hacking
Google hacking or Google dorks is the process in which information is gathered by
creating search queries with the help of Google operators.
This type of footprinting stores information like passwords or information relevant
to any topic or competitor.
Google Dorking involves using advanced search operations in Google to search for
specific keywords, file types, or website parameters.
These operators can be combined to create more powerful search queries that can
reveal information that would not be easily accessible otherwise.
While Google Dorking can be used for legitimate purposes such as researching a
website’s security vulnerabilities, hackers use this technique maliciously to find
sensitive information such as usernames, passwords, and other potential
information. As a result, it is important for website owners to secure their websites
and avoid exposing sensitive information in publicly accessible directories.
In addition, internet users should also be careful about the information they share
online and use strong, unique passwords for each of their online accounts to avoid
falling victim to a cyberattack.
Overall, Google Dorking is a powerful technique that can be used for both good
and bad purposes. Website owners and internet users should be aware of its
potential risks and take steps to protect themselves from any potential security
breaches.
Scanning & Enumeration
Scanning and enumeration is the phase where the attacker begins to “touch” the
systems. Attackers will scan networks to discover live hosts and open port. They
will then enumerate the live hosts and ports to discover services, machine names,
and other network resources.
there are several more types of scanning:
o Network Scanning
1. NetBIOS Enumeration
The full form of NetBIOS is Network Basic Input Output System. The
communication between devices on a LAN is enabled using NetBIOS. Hackers can
enumerate NetBIOS to find the list of computers, individual hosts, policies and
passwords, etc., on the network. Poisoning attacks are the primary way to
enumerate NetBIOS. Here, the hacker accesses the network and spoofs the devices
to gain control and misdirect traffic. He can also get the hashed passwords of users
to crack these later. For NetBIOS enumeration in ethical hacking, NBTScan is one
of the prominent command-line tools in use. It scans the networks and finds
NetBIOS shares and name information. NBTScan is available for Windows, Unix,
and Kali Linux.
2. SNMP Enumeration
The full form of SNMP is a Simple Network Management Protocol. Based on the
UDP protocol, SNMP is used to manage the devices on the IP network, including
routers, hubs, and switches. The authentication method of the SNMP is weak and
prone to spoofing. Hackers can use it to enumerate the accounts of the users,
groups, systems, as well as devices on the network.
3. SMTP Enumeration
The full form of SMTP is the Simple Mail Transport Protocol. Its role is to send
emails. Mail Exchange servers are used by SMTP to direct and send emails. SMTP
enumeration can be used to get access to usernames using EXPN and VRFY
commands (unless disabled by the network admins). EXPN shows the list of emails
and the address of the user, whereas VRFY confirms the names of valid users.
4. NFS Enumeration
Network File System (NFS) is used to enable remote data sharing between systems
on a network. These systems are based on Unix. The communication between
machines on a network makes use of server-client architecture. Hackers perform
NFS enumeration using Nmap scan. The Nmap scan helps in finding the NFS ports
that are open and can be targeted.
5. DNS Enumeration
DNS enumeration means finding the DNS servers and related records of the target
company or system. Hackers can enumerate usernames, computer names, and IP
addresses. With DNS enumeration, they can get an idea about the database records
in use, zone files of the domain name system, etc.
Trojan & Backdoor
A Trojan Horse is any type of malware that misleads users of its intent, like a
destructive program that appears as a genuine application or software program.
Trojan Horses are named after the Ancient Greek story of the deceptive Trojan
Horse that took down the city of Troy.
Unlike viruses, Trojan Horses do not replicate themselves, but they can be just as
destructive.
Trojans also open a backdoor entry to your computer, giving command to malicious
actor or allowing malicious users/programs access to your system. This leads to
confidential and personal information being stolen.
A backdoor is a means of bypassing an organization’s existing security systems.
While a company may have various security solutions in place, there may be
mechanisms in place that allow a legitimate user or attacker to evade them.
If an attacker can identify and access these backdoors, they can gain access to
corporate systems without detection.
Backdoors can come in various different forms. A few of the most common types
include:
o Trojans: Most backdoor malware is designed to slip past an organization’s
defenses, providing an attacker with a foothold on a company’s systems. For this
reason, they are commonly trojans, which pretend to be a benign or desirable file
while containing malicious functionality, such as supporting remote access to an
infected computer.
o Built-in Backdoors: Device manufacturers may include backdoors in the form of
default accounts, undocumented remote access systems, and similar features. While
these systems are typically only intended for the use of the manufacturer, they are
often designed to be impossible to disable and no backdoor remains secret forever,
exposing these security holes to attackers.
o Web Shells: A web shell is a web page designed to take user input and execute it
within the system terminal. These backdoors are commonly installed by system and
network administrators to make it easier to remotely access and manage corporate
systems.
o Supply Chain Exploits: Web applications and other software often incorporate
third-party libraries and code. An attacker may incorporate backdoor code into a
library in the hope that it will be used in corporate applications, providing backdoor
access to systems running the software.
Some best practices for protecting against exploitation of backdoors include:
o Changing Default Credentials: Default accounts are some of the most common
types of backdoors. When setting up a new device, disable the default accounts if
possible, and, if not, change the password to something other than the default
setting.
o Deploying Endpoint Security Solutions: Backdoors are commonly implemented as
trojan malware. An endpoint security solution may detect and block known malware
or identify novel threats based on unusual behavior.
o Monitoring Network Traffic: Backdoors are designed to provide remote access to
systems via alternative means that bypass authentication systems. Monitoring for
unusual network traffic may enable the detection of these covert channels.
o Scanning Web Applications: Backdoors may be deployed as web shells or
integrated into third-party libraries or plugins. Regular vulnerability scanning can
help to identify these backdoors in an organization’s web infrastructure.
Virus & Worms
Basis of
[Link]. Comparison VIRUS
WORMS
It is less harmful as
4. Harmful compared. It is more harmful.
Installation of
Antivirus software
Deniel of service
A Denial-of-Service (DoS) attack is an attack meant to shut down a machine or network,
making it inaccessible to its intended users.
DoS attacks accomplish this by flooding the target with traffic, or sending it information
that triggers a crash. In both instances, the DoS attack deprives legitimate users (i.e.
employees, members, or account holders) of the service or resource they expected.
Victims of DoS attacks often target web servers of high-profile organizations such as
banking, commerce, and media companies, or government and trade organizations.
Though DoS attacks do not typically result in the theft or loss of significant information
or other assets, they can cost the victim a great deal of time and money to handle.
There are two general methods of DoS attacks: flooding services or crashing services.
Flood attacks occur when the system receives too much traffic for the server to buffer,
causing them to slow down and eventually stop. Popular flood attacks include:
Buffer overflow attacks – the most common DoS attack. The concept is to send
more traffic to a network address than the programmers have built the system to
handle. It includes the attacks listed below, in addition to others that are designed
to exploit bugs specific to certain applications or networks
ICMP flood – leverages misconfigured network devices by sending spoofed packets
that ping every computer on the targeted network, instead of just one specific
machine. The network is then triggered to amplify the traffic. This attack is also
known as the smurf attack or ping of death.
SYN flood – sends a request to connect to a server, but never completes the
handshake. Continues until all open ports are saturated with requests and none are
available for legitimate users to connect to.
Other DoS attacks simply exploit vulnerabilities that cause the target system or service
to crash. In these attacks, input is sent that takes advantage of bugs in the target that
subsequently crash or severely destabilize the system, so that it can’t be accessed or
used.
An additional type of DoS attack is the Distributed Denial of Service (DDoS) attack. A
DDoS attack occurs when multiple systems orchestrate a synchronized DoS attack to a
single target.
The essential difference is that instead of being attacked from one location, the target
is attacked from many locations at once.
Sniffers
works by capturing internet traffic and analyzing the data streams to uncover the
nature — or even the specific contents — of data sent across a network.
Just as cars make up road traffic, internet traffic consists of packets of data
traveling through a network.
Although you generally ignore most cars driving by, you’re likely to investigate if a
truck pulls up in your driveway. Similarly, your computer ignores most traffic
flowing through a network, and only inspects the specific packets of data that are
sent to it.
Sniffers, then, are like a tollbooth — they are set up to inspect all cars driving down
the road, not just those that park in one driveway.
Unfiltered sniffers inspect every car, harvesting all traffic traveling through a
network. Filtered sniffers are configured to inspect only certain types of traffic.
Social engineering
Social engineering is a manipulation technique that exploits human error to gain private
information, access, or valuables.
In cybercrime, these “human hacking” scams tend to lure unsuspecting users into exposing
data, spreading malware infections, or giving access to restricted systems. Attacks can
happen online, in-person, and via other interactions.
Scams based on social engineering are built around how people think and act. As such,
social engineering attacks are especially useful for manipulating a user’s behavior.
Once an attacker understands what motivates a user’s actions, they can deceive and
manipulate the user effectively.
In addition, hackers try to exploit a user's lack of [Link] also may not realize the
full value of personal data, like their phone number. As a result, many users are unsure how
to best protect themselves and their information.
Generally, social engineering attackers have one of two goals:
Sabotage: Disrupting or corrupting data to cause harm or inconvenience.
Theft: Obtaining valuables like information, access, or money.
Most social engineering attacks rely on actual communication between attackers and
victims. The attacker tends to motivate the user into compromising themselves, rather than
using brute force methods to breach your data.
The attack cycle gives these criminals a reliable process for deceiving you. Steps for the
social engineering attack cycle are usually as follows:
Prepare by gathering background information on you or a larger group you are a
part of.
Infiltrate by establishing a relationship or initiating an interaction, started by
building trust.
Exploit the victim once trust and a weakness are established to advance the attack.
Disengage once the user has taken the desired action.
This process can take place in a single email or over months in a series of social media
chats. It could even be a face-to-face interaction. But it ultimately concludes with an action
you take, like sharing your information or exposing yourself to malware.
It's important to beware of social engineering as a means of confusion. Many employees
and consumers don't realize that just a few pieces of information can give hackers access
to multiple networks and accounts.
By masquerading as legitimate users to IT support personnel, they grab your private details
— like name, date of birth or address. From there, it's a simple matter to reset passwords
and gain almost unlimited access. They can steal money, disperse social engineering
malware, and more.
Types of social engineering attacks are:
Shoulder Surfing:
A shoulder surfing attack describes a situation where the attacker can physically
view the device screen and keypad to obtain personal information.
It is one of the few attack methods requiring the attacker to be physically close to
the victim to succeed.
While it might be as simple as looking over the victim’s shoulder as the name
suggests, some attackers will use binoculars, miniature video cameras, or other
optical devices to spy on their victims.
The goal is to obtain information such as usernames and passwords, personally
identifiable or sensitive information, and credit card numbers.
Most shoulder surfing attacks are straightforward: the attacker positions himself so
that they can view the victim’s device screen and the keyboard or keypad if
necessary. As the victim enters and views information on the device, the attacker
records this data.
The attacker is likely writing or typing the information somewhere in an equally
straightforward manner. Still, more sophisticated attacks may use optical devices,
so they don’t need to be looking over the victim’s shoulder and aren’t as easily
detected.
An attack where the user has installed some kind of reading device to steal
information (such as a skim reader on an ATM) or attacks where the hacker can
view your screen, and your entries are not shoulder surfing attacks, since these
attacks happen remotely.
To protect Yourself from Shoulder Surfing Attacks:
o Eliminate passwords: The ONLY way to ensure the prevention of password-based
attacks is through eliminating passwords. Learn more about passwordless
authentication today and keep your most critical applications secure.
o Add a privacy screen to your devices: Using devices with attached privacy screens
dramatically lessens the risk of data disclosure. Some glass protector
manufacturers have versions with a privacy screen included, which not only
protects your phone’s glass but the information on your phone, too.
o Always be aware of your surroundings: In public places, don’t let your guard
down. Attackers gravitate to those that they see as the easiest. If you’re distracted,
you may not notice someone is watching you and what you’re entering into the
device or the ATM.
o Use biometric authentication instead: Biometric authentication, either using your
fingerprint or face, can offer additional security that a PIN cannot. Since the
attacker never sees you enter a physical PIN, they can’t log into the device.
Dumpster Diving:
Dumpster diving is the process of searching trash to obtain useful information about
a person/business that can later be used for the hacking purpose.
This attack mostly targets large organizations or business to carry out phishing
(mostly) by sending fake emails to the victims that appear to have come from a
legitimate source.
The information obtained by compromising the confidentiality of the victim is used
for Identity frauds.
Through this process a hacker looks for
o Email address/address
o Phone numbers to carry out Vishing
o Passwords and other social security numbers that we might have written on sticky
notes for our convenience
o Bank statements/financial statements
o Medical records
o Important documents
o Account login credentials
o Business secrets
o Marketing secrets
o Information of the employee base
o Information about the software/tools/technologies that is being used at the
company
Preventive measures:
o Destroy any CDs/DVDs containing personal data.
o In case you no longer need your PC, make sure you have deleted all the data so that
it can’t be recovered.
o Use of firewalls can prevent suspicious Internet users from accessing the discarded
data.
o Paper documents should be permanently destroyed/shredded.
o Companies should lock waste bins and should have a safe disposal policy.
Piggybacking
Piggybacking is a social engineering attack in which an attacker uses another person’s
legitimate access to a physical or electronic location to gain unauthorized access
themselves.
This type of attack is often seen in office buildings, where an attacker will follow
someone with an access badge into a secured area.
It can also be seen in IT systems, where an attacker may log into a system using another
user’s credentials.
Piggybacking can also be used as a form of eavesdropping, where an attacker uses
another person’s access to a location in order to listen in on conversations or harvest
sensitive information.
Piggybacking attacks are relatively easy to carry out and are often very hard to detect.
However, there are several steps that organizations can take in order to protect
themselves against this type of attack.
For example, they can limit access to sensitive areas only to authorized individuals with
proper credentials or set up a system for detecting unauthorized access attempts.
Overall, piggybacking is a serious security threat that can have serious consequences
for organizations. Therefore, it is important for organizations to be aware of this type
of attack and take measures to protect themselves against it.
In contrast, piggybacking is a social engineering attack in which an attacker uses
another person’s legitimate access to a physical or electronic location to gain
unauthorized access themselves. This type of attack can occur in both physical and
digital spaces and often requires some level of technical knowledge.
Overall, piggybacking is more serious threat than tailgating because it can be used to
gain unauthorized access to sensitive information or locations, while tailgating is
typically used only for physical access.