06 Network Security and Fundamentals
06 Network Security and Fundamentals
Fundamentals
Unit -5
Network Security
Network Security
Network security is any activity designed to protect the usability and integrity
of our network and data.
04/06/2024
Computer Networks 2
Network Security and Fundamentals
04/06/2024
Computer Networks 3
Security Threats and Vulnerabilities
Security threats and vulnerabilities
Types of Threats
Attacks on a network can be devastating and can result in a loss of time and
money due to damage, or theft of important information or assets. Intruders can
gain access to a network through software vulnerabilities, hardware attacks, or
through guessing someone's username and password. Intruders who gain access
by modifying software or exploiting software vulnerabilities are called threat
actors.
After the threat actor gains access to the network, four types of threats may arise:
•Information Theft
•Data Loss and manipulation
•Identity Theft
•Disruption of Service
04/06/2024
Computer Networks 5
Security threats and vulnerabilities
Types of Vulnerabilities
Physical Security
If network resources can be physically compromised, a threat actor can deny the use
of network resources. The four classes of physical threats are as follows:
•Hardware threats - This includes physical damage to servers, routers, switches, cabling
plant, and workstations.
•Environmental threats - This includes temperature extremes (too hot or too cold)
or humidity extremes (too wet or too dry).
•Electrical threats - This includes voltage spikes, insufficient supply voltage (brownouts),
unconditioned power (noise), and total power loss.
•Maintenance threats - This includes poor handling of key electrical components (electrostatic
discharge), lack of critical spare parts, poor cabling, and poor labeling.
A good plan for physical security must be created and implemented to address these issues.
04/06/2024
Computer Networks 7
Network Attacks
Network Attacks
Types of Malware
Malware is short for malicious software. It is code or software specifically designed
to damage, disrupt, steal, or inflict “bad” or illegitimate action on data, hosts, or networks.
The following are types of malware:
•Viruses - A computer virus is a type of malware that propagates by inserting a copy of itself
into, and becoming part of, another program. It spreads from one computer to another,
leaving infections as it travels.
•Worms - Computer worms are similar to viruses in that they replicate functional copies of
themselves and can cause the same type of damage. In contrast to viruses, which require the
spreading of an infected host file, worms are standalone software and do not require a host
program or human help to propagate.
•Trojan Horses - It is a harmful piece of software that looks legitimate. Unlike viruses and
worms, Trojan horses do not reproduce by infecting other files. They self-replicate. Trojan
horses must spread through user interaction such as opening an email attachment or
downloading and running a file from the internet.
•Spyware:- Spyware is intended to gather collect the information about a computer user
without user’s permission and knowledge. It can take more personal information 04/06/2024
from our
internet history such as credit card numbers, passwords.
Computer Networks 9
Network Attacks
Reconnaissance Attacks
In addition to malicious code attacks, it is also possible for networks to fall prey to
various network attacks. Network attacks can be classified into three major categories:
•Access attacks - The unauthorized manipulation of data, system access, or user privileges.
04/06/2024
Computer Networks 10
Network Attacks
Access Attacks
Access attacks exploit known vulnerabilities in authentication services, FTP services,
and web services to gain entry to web accounts, confidential databases, and other
sensitive information.
Access attacks can be classified into four types:
•Password attacks - Implemented using brute force, trojan horse, and packet sniffers
•Trust exploitation - A threat actor uses unauthorized privileges to gain access to a system,
possibly compromising the target.
•Port redirection: - A threat actor uses a compromised system as a base for attacks against
other targets. For example, a threat actor using SSH (port 22) to connect to a compromised
host A. Host A is trusted by host B and, therefore, the threat actor can use Telnet (port 23) to
access it.
•Man-in-the middle - The threat actor is positioned in between two legitimate entities in
order to read or modify the data that passes between the two parties.
04/06/2024
Computer Networks 11
Network Attacks
•DoS attacks take many forms. Ultimately, they prevent authorized people from using
a service by consuming system resources. To help prevent DoS attacks it is important to stay
up to date with the latest security updates for operating systems and applications.
•DoS attacks are a major risk because they interrupt communication and cause significant
loss of time and money. These attacks are relatively simple to conduct, even by an unskilled
threat actor.
•A DDoS is similar to a DoS attack, but it originates from multiple, coordinated sources. For
example, a threat actor builds a network of infected hosts, known as zombies. A network of
zombies is called a botnet. The threat actor uses a command and control (CnC) program to
instruct the botnet of zombies to carry out a DDoS attack.
04/06/2024
Computer Networks 12
Network Attacks Mitigations
Network Attacks Mitigations
The Defense-in-Depth Approach
To mitigate network attacks, you must
first secure devices including routers,
switches, servers, and hosts. Most
organizations employ a defense-in-depth
approach (also known as a layered approach)
to security. This requires a combination of
networking devices and services working in
tandem.
Several security devices and services
are implemented to protect an organization’s
users and assets against TCP/IP threats:
•VPN
•ASA Firewall
•IPS
•ESA/WSA
•AAA Server
04/06/2024
Computer Networks 14
Network Attacks Mitigations
Keeps Backup
Backing up device configurations and data is one of the most effective ways of
protecting against data loss. Backups should be performed on a regular basis as identified in
the security policy. Data backups are usually stored offsite to protect the backup media if
anything happens to the main facility.
The table shows backup considerations and their descriptions.
Consideration Description
•Perform backups on a regular basis as identified in the security policy.
Frequency •Full backups can be time-consuming, therefore perform monthly or weekly backups
with frequent partial backups of changed files.
•Always validate backups to ensure the integrity of the data and validate the file
Storage
restoration procedures.
•Backups should be transported to an approved offsite storage location on a daily,
Security
weekly, or monthly rotation, as required by the security policy.
•Backups should be protected using strong passwords. The password is required to
Validation
restore the data. 04/06/2024
Computer Networks 15
Network Attacks Mitigations
Computer Networks 16
Network Attacks Mitigations
Computer Networks 17
Network Attacks Mitigations
Firewalls
Network firewalls reside between
two or more networks, control the
traffic between them, and help
prevent unauthorized access.
A firewall could allow outside users
controlled access to specific services.
For example, servers accessible to
outside users are usually located on a
special network referred to as
the demilitarized zone (DMZ).
Computer Networks 18
Network Attack Mitigations
Types of Firewall
Firewall products come packaged in various forms. These products use
different techniques for determining what will be permitted or denied access to a
network. They include the following:
Computer Networks 19
Network Attack Mitigations
04/06/2024
Computer Networks 20
Device Security
Device Security
CISCO AutoSecure
The security settings are set to the default values when a new operating system
is installed on a device. In most cases, this level of security is inadequate. For Cisco
routers, the Cisco AutoSecure feature can be used to assist securing the system.
In addition, there are some simple steps that should be taken that apply to most
operating systems:
Computer Networks 22
Device Security
Password
To protect network devices, it is important to use strong passwords. Here are standard
guidelines to follow:
•Use a password length of at least eight characters, preferably 10 or more characters.
•Make passwords complex. Include a mix of uppercase and lowercase letters, numbers,
symbols, and spaces, if allowed.
•Avoid passwords based on repetition, common dictionary words, letter or number
sequences, usernames, relative or pet names, biographical information, such as
birthdates, ID numbers, ancestor names, or other easily identifiable pieces of information.
•Deliberately misspell a password. For example, Smith = Smyth = 5mYth or Security =
5ecur1ty.
•Change passwords often. If a password is unknowingly compromised, the window of
opportunity for the threat actor to use the password is limited.
•Do not write passwords down and leave them in obvious places such as on the desk or
monitor.
On Cisco routers, leading spaces are ignored for passwords, but spaces after the first
character are not. Therefore, one method to create a strong password is to use the space
bar and create a phrase made of many words. This is called a passphrase. A passphrase is
often easier to remember than a simple password. It is also longer and harder to guess.
04/06/2024
Computer Networks 23
Device Security
• Computer Networks 24
Device Security
Enable SSH
It is possible to configure a Cisco device to support SSH using the following steps:
1.Configure a unique device hostname. A device must have a unique hostname other than the
default.
2.Configure the IP domain name. Configure the IP domain name of the network by using the
global configuration mode command ip-domain name.
3.Generate a key to encrypt SSH traffic. SSH encrypts traffic between source and destination.
However, to do so, a unique authentication key must be generated by using the global
configuration command crypto key generate rsa general-keys modulus bits. The
modulus bits determines the size of the key and can be configured from 360 bits to 2048 bits.
The larger the bit value, the more secure the key. However, larger bit values also take longer
to encrypt and decrypt information. The minimum recommended modulus length is 1024
bits.
4.Verify or create a local database entry. Create a local database username entry
using the username global configuration command.
5.Authenticate against the local database. Use the login local line configuration command
to authenticate the vty line against the local database.
6.Enable vty inbound SSH sessions. By default, no input session is allowed on vty lines. You
can specify multiple input protocols including Telnet and SSH using the transport input [ssh
| telnet] command. 04/06/2024
•
Computer Networks 25
Device Security
Cisco routers and switches start with a list of active services that may or may
not be required in your network. Disable any unused services to preserve
system resources, such as CPU cycles and RAM, and prevent threat actors from
exploiting these services.
•The type of services that are on by default will vary depending on the
IOS version. For example, IOS-XE typically will have only HTTPS and DHCP
ports open. You can verify this with the show ip ports all command.
•IOS versions prior to IOS-XE use the show control-plane host open-
ports command.
04/06/2024
Computer Networks 26
Device Security
•The network administrator has asked you to prepare RTA and SW1 for
deployment. Before they can be connected to the network, security
measures must be enabled.
04/06/2024
Computer Networks 27
Network Security Fundamentals
References