Network Security Fundamentals
Security Fundamentals
Purpose of Security: The CIA Triad
The CIA triad is a foundational framework for understanding the goals of information and system security. It consists of confidentiality, integrity, and availability. Security measures aim to protect all three, although a particular attack may threaten one or more of them.
Confidentiality
Confidentiality means that data is accessible only to authorized users. Some information is intended to be public, such as content on a company website. Other information is private and should be restricted to specific people. The level of access required can vary depending on how sensitive the information is.
Integrity
Integrity means that data remains correct and authentic. It should not be modified or tampered with by unauthorized users. If an attacker changes information without permission, the data’s integrity has been compromised.
Availability
Availability means that systems and services remain operational and accessible to authorized users. Employees need access to the resources required for their work, while customers may need access to a company’s website or services.
Confidentiality controls who can access data, integrity protects data from unauthorized changes, and availability ensures authorized users can access working systems.
Attacks can target one or more parts of the triad. For example, a denial-of-service attack primarily threatens availability, while a man-in-the-middle attack can threaten confidentiality and integrity.
Foundational Security Concepts
Vulnerability
A vulnerability is a potential weakness that could compromise the confidentiality, integrity, or availability of a system or its information. A vulnerability is not necessarily harmful by itself: it becomes a concern when a threat can take advantage of it.
For example, a house window is a potential weakness because it could be broken to gain entry. The window alone does not mean that a break-in has occurred.
Exploit
An exploit is a method or means that can be used to take advantage of a vulnerability. In the house example, a rock could be used to break the window. The rock is not itself a threat; it is something that could be used to exploit the weakness.
Threat
A threat is the possibility that a vulnerability will be exploited. It connects a weakness with the potential for an attack. In the house example, a robber intending to use a rock to break a window represents a threat. In a network, a hacker attempting to exploit a system vulnerability is a threat.
Mitigation Technique
A mitigation technique is a measure used to reduce the likelihood or impact of a threat. Appropriate mitigations depend on the vulnerabilities and threats involved. They may be applied to client devices, servers, switches, routers, and firewalls.
Mitigation can also include physical safeguards. For example, equipment can be kept in a secure rack inside a locked room to prevent unauthorized physical access.
No system can be made perfectly secure. Security measures can make a system more secure, but they cannot guarantee that attacks will never succeed.
Common Attacks
Attacks are methods that may exploit vulnerabilities to compromise an organization’s systems or information. Some attack categories overlap: an attack may use spoofing and also cause a denial of service.
Denial-of-Service Attacks
A denial-of-service (DoS) attack targets the availability of a system. It attempts to prevent legitimate users from accessing a service or resource.
TCP SYN Flood
A TCP connection is normally established through a three-way handshake:
A client sends a
SYNmessage.The server responds with
SYN-ACK.The client sends
ACK, completing the connection.
In a TCP SYN flood, an attacker sends a large number of SYN messages to a target. The target responds to each with a SYN-ACK and reserves space in its TCP connection table while waiting for the final ACK. The attacker does not send that final acknowledgment.
The incomplete connections eventually time out, but the attacker continues sending new SYN messages. If the connection table fills with incomplete connections, the target may be unable to establish connections for legitimate users. An attacker may spoof source IP addresses, causing the target’s SYN-ACK responses to be sent to addresses that do not belong to the attacker.
Distributed Denial-of-Service
A distributed denial-of-service (DDoS) attack uses many systems to overwhelm a target. The attacker infects multiple computers with malware and directs them to generate attack traffic, such as TCP SYN messages.
The group of compromised computers used in the attack is called a botnet. Because traffic comes from many devices, a DDoS can generate more traffic than an attack launched from a single system.
Spoofing Attacks
Spoofing means using a false source address, such as a fake IP or MAC address. It is a technique used in different attacks rather than a single attack category. Spoofing may contribute to a denial of service or support attacks on confidentiality and integrity.
DHCP Exhaustion
A DHCP exhaustion attack uses many spoofed MAC addresses to send DHCP Discover messages to a DHCP server. The server responds with DHCP Offer messages and reserves addresses from its available pool.
If the attacker consumes the available addresses, legitimate devices may be unable to obtain an IP address. The result is a denial of service for those devices. This attack uses spoofing and also affects availability.
Reflection and Amplification Attacks
In a reflection attack, the attacker sends traffic to an intermediary system, called a reflector, while spoofing the packet’s source address as the target’s IP address. The reflector sends its response to the target rather than to the attacker.
An amplification attack is a more powerful form of reflection attack. A small amount of traffic from the attacker triggers a much larger response from the reflector. The resulting volume of traffic sent to the target can cause a denial of service. DNS and NTP services have had vulnerabilities that could be exploited for amplification attacks.
Man-in-the-Middle Attacks
A man-in-the-middle (MitM) attack occurs when an attacker positions themselves between two communicating parties. The attacker may eavesdrop on their communications, modify messages, or do both.
ARP Spoofing (ARP Poisoning)
In an ARP spoofing attack, an attacker sends a false ARP reply to a device, claiming that the attacker’s MAC address belongs to another device’s IP address.
For example:
A computer broadcasts an ARP request asking for the MAC address associated with a server’s IP address.
The legitimate server replies with its MAC address.
The attacker sends a false ARP reply that associates the server’s IP address with the attacker’s MAC address.
If the false entry overwrites the legitimate one in the computer’s ARP table, traffic intended for the server is sent to the attacker.
The attacker can inspect the traffic before forwarding it to the real server, compromising confidentiality. If the attacker changes the traffic before forwarding it, integrity is compromised as well.
Reconnaissance
Reconnaissance is the gathering of information about a target that may help prepare a later attack. It is generally not an attack by itself, because the information being collected may be publicly available.
Examples include:
Using
NSLOOKUPto learn a website’s IP address.Probing for open ports that might expose vulnerable services.
Performing a WHOIS query to find contact details such as email addresses, phone numbers, or physical addresses.
Information gathered through reconnaissance can help an attacker select targets, identify potential weaknesses, or conduct social engineering.
Malware
Malware means malicious software: programs designed to harm a computer or its data. Malware types are often distinguished by how they infect systems or spread, rather than by the exact harm they cause.
Viruses
A virus infects other software, called a host program. It may spread when users share infected software or download it from a malicious source. Once active, a virus can perform harmful actions such as corrupting or modifying files.
Worms
A worm is standalone malware that does not require a host program. Worms can spread from device to device without user interaction. Their spread can congest a network. A worm may also contain a payload—additional malicious code that causes further harm.
Trojan Horses
A trojan horse is harmful software disguised as legitimate software. It commonly spreads through user actions, such as opening an email attachment or downloading a file.
Viruses, worms, and trojan horses can be used to threaten any part of the CIA triad, depending on what the malware does after infection.
Social Engineering
Social engineering uses psychological manipulation to make people reveal confidential information or perform actions that benefit an attacker. It targets people rather than directly exploiting an organization’s IT systems. Employees remain a potential vulnerability even when technical protections are in place.
Phishing
Phishing uses fraudulent messages that appear to come from a legitimate organization. The message may direct the recipient to a fake website resembling a real login page. If the recipient enters their credentials, the attacker can obtain them.
Spear Phishing and Whaling
Spear phishing is phishing targeted at a specific person or group, such as employees of a particular company.
Whaling is phishing targeted at a high-profile person, such as a company president.
Vishing and Smishing
Vishing is voice phishing conducted over the phone. An attacker may impersonate someone from a bank or an organization’s IT department.
Smishing is phishing conducted through SMS text messages.
Watering Hole Attacks
In a watering hole attack, an attacker compromises a website frequently visited by the intended target. Because the target trusts the site, they may be more likely to click a malicious link placed there.
Tailgating
A tailgating attack involves entering a restricted area by following an authorized person through a secured entrance. An authorized person may hold the door open out of politeness, unintentionally allowing the attacker to enter.
Password-Related Attacks
Many systems authenticate users with a username and password. Usernames may be easy to discover or guess, so password strength and secrecy are important.
Common methods of attempting to obtain a password include:
Guessing: Trying likely passwords directly.
Dictionary attack: Using a program to test words and common passwords from a prepared list.
Brute-force attack: Trying every possible combination of letters, numbers, and special characters.
A brute-force attack can require substantial computing power and time. A sufficiently long and complex password makes the number of combinations much larger and reduces the likelihood that the attack will succeed quickly.
Strong passwords should be:
At least eight characters long, and preferably longer.
Made up of a mixture of uppercase and lowercase letters.
A mixture of letters and numbers.
Supplemented with one or more special characters.
The source material also recommends changing passwords regularly. Enterprises may enforce password rules for employees, and similar strength principles can be applied to personal passwords.
Multi-Factor Authentication
Multi-factor authentication (MFA) requires more than a username and password to verify a user’s identity. Two-factor authentication is a form of MFA that uses two distinct categories of authentication evidence.
The three categories are:
Something the User Knows
This is information known by the user, such as:
A password.
A personal identification number (PIN).
Something the User Has
This is an item or device possessed by the user, such as:
A phone that receives or displays an approval notification in an authenticator app.
A badge that is scanned.
Something the User Is
This is a characteristic of the user, commonly verified through biometrics such as:
A face scan.
A palm scan.
A fingerprint scan.
A retina scan.
MFA requires factors from at least two different categories. Using a retina scan and a fingerprint scan involves two checks, but both belong to the “something the user is” category. Therefore, those two checks alone do not constitute MFA.
MFA increases security because an attacker who learns a user’s password may still lack the additional factor required to log in.
Digital Certificates
A digital certificate helps establish the identity of the entity that holds it. Certificates are commonly used by websites so that browsers can verify that a site is legitimate rather than an imitation.
A company or other entity seeking a certificate sends a certificate signing request (CSR) to a certificate authority (CA). The CA generates and signs the certificate. When a user accesses a website, a modern browser can indicate whether the site has a valid certificate and allow the certificate to be inspected.
AAA: Authentication, Authorization, and Accounting
AAA is a framework for controlling and monitoring users of a computer system, including a network. Enterprises commonly use a AAA server to provide these services. Cisco’s Identity Services Engine (ISE) is an example of a AAA server.
Authentication
Authentication is the process of verifying a user’s identity. A user logging in—ideally with MFA—is being authenticated.
Authorization
Authorization is the process of determining what an authenticated user is permitted to access or do. For example, an organization may grant a user access to certain files and services while restricting access to others.
Accounting
Accounting is the recording of a user’s activities on a system. It may include recording when a user logs in or out, or when the user changes a file.
Authentication verifies identity; authorization controls permitted access; accounting records activity.
AAA Protocols
AAA servers commonly support the following protocols:
RADIUS: An open-standard protocol that uses UDP ports 1812 and 1813.
TACACS+: A Cisco proprietary protocol that uses TCP port 49.
Security Program Elements
A security program is an enterprise’s set of security policies and procedures. It includes measures that inform employees, develop their security skills, and protect facilities and equipment.
User Awareness Programs
User awareness programs help employees recognize potential security threats and risks. Not every employee is a cybersecurity specialist, so awareness programs help staff understand threats relevant to their work.
One example is a simulated phishing email. If an employee clicks the link or enters credentials, the company can explain that the message was a test and provide guidance on recognizing phishing attempts.
User Training Programs
User training programs provide more formal instruction than awareness programs. Training may cover:
Corporate security policies.
Creating strong passwords.
Recognizing and avoiding potential threats.
Training should occur when employees join the company and at regular intervals afterward.
Physical Access Control
Physical access control protects equipment and data by restricting entry to secure areas, such as network closets and data center floors. Access should be limited to authorized people who need it, including when the person seeking access is already an employee.
A restricted door may require multiple forms of evidence, such as a badge and fingerprint scan. This combines:
Something the user has: the badge.
Something the user is: the fingerprint.
Badge systems also allow organizations to centrally manage access permissions. For example, permissions can be removed when an employee leaves, whether or not the employee returns the badge.
Key Distinctions to Remember
A vulnerability is a potential weakness; an exploit is a means of taking advantage of it; a threat is the possibility of that exploitation; a mitigation reduces the likelihood or impact.
DoS and DDoS attacks threaten availability. A DDoS uses multiple compromised systems, often organized as a botnet.
Spoofing uses a false source address and can appear as part of different attacks.
ARP spoofing can redirect traffic through an attacker, threatening confidentiality and integrity.
Social engineering exploits people through manipulation rather than directly exploiting IT systems.
MFA requires at least two different categories: something known, something possessed, and something the user is.
In AAA, authentication verifies identity, authorization controls permissions, and accounting records actions.

Ask anything
We've read this whole study set, so questions about it get the best answers.