Network Security Fundamentals


Network Security Fundamentals

Anna
Welcome to our introduction to security fundamentals for the CCNA. This isn’t a cybersecurity certification, but network professionals do need to understand basic security concepts, common attacks, passwords, authentication, and the parts of an enterprise security program.

Hope
There’s a lot of vocabulary here, so let’s build it in a logical order. We’ll start with the purpose of security, then look at how attacks threaten systems, and finish with authentication and the policies organizations use to reduce risk.

Anna
The foundation is the CIA triad. In this context, CIA does not mean the Central Intelligence Agency. It stands for confidentiality, integrity, and availability—the three principles security is intended to protect.

Hope
Confidentiality means that only authorized users can access data. Some information is public, such as what a company puts on its website, while other information should be accessible only to specific people. There can also be levels of sensitivity between those extremes.

Anna
Integrity means data should be correct and authentic, and unauthorized users should not tamper with or modify it. Availability means systems and networks are operational and accessible to authorized users—for example, employees can reach the resources they need, and customers can access the company website.

Hope
So when we examine an attack, a useful first question is: which part of the CIA triad is threatened? Some attacks mainly disrupt availability; others expose confidential information or let an attacker change data.

Anna
A few related terms help describe security risks. A vulnerability is a potential weakness that could compromise confidentiality, integrity, or availability. A weakness by itself doesn’t necessarily cause harm: a house window is a vulnerability, but the window alone isn’t an attack.

Hope
An exploit is something that can potentially be used to take advantage of a vulnerability. In the house analogy, a rock could be used to break a window, but a rock on its own isn’t the problem. A threat is the possibility that a vulnerability will actually be exploited—like a robber intending to use the rock to enter the house.

Anna
A mitigation technique is a measure that protects against threats. The appropriate measure depends on the threat, and it should be considered wherever a weakness could be exploited: on client devices, servers, switches, routers, and firewalls, as well as in the physical spaces that contain them.

Hope
Physical protection can include keeping equipment in a secure rack behind a secure door. And it’s important to be realistic: no system is perfectly secure. Malware detection and antivirus software can improve protection, but they cannot make the chance of infection zero.

Anna
Let’s turn to common attacks. A denial-of-service, or DoS, attack targets availability. One example is a TCP SYN flood, which abuses the TCP three-way handshake: SYN, SYN-ACK, and ACK.

Hope
The attacker sends many SYN messages. The target replies to each with a SYN-ACK and waits for the final ACK, but that acknowledgment never arrives. The target’s TCP connection table fills with incomplete connections, so eventually it can’t maintain connections for legitimate users.

Anna
Those incomplete entries time out and are removed after a period of time, but the attacker keeps sending SYNs to fill the table again. The attacker may spoof the source IP address, meaning it uses a fake address, so the SYN-ACK replies don’t return to the attacker.

Hope
A distributed denial-of-service, or DDoS, attack uses many infected computers to launch an attack together. That collection of infected computers is called a botnet. For example, they might all send SYN messages to one server, preventing it from responding to legitimate connection requests.

Anna
Spoofing means using a fake source address, such as a fake IP or MAC address. It isn’t just one kind of attack, and it can appear as part of other attacks. The TCP SYN flood we just discussed can use IP spoofing.

Hope
Another example is DHCP exhaustion. The attacker sends DHCP Discover messages using many spoofed MAC addresses. The server responds with DHCP Offers, and its available address pool can be used up, leaving legitimate devices unable to get an IP address.

Anna
That example is both a spoofing attack and a denial-of-service attack: spoofing describes the fake MAC addresses, while denial of service describes the effect on legitimate clients’ availability. Attack categories can overlap, and not every spoofing attack is a DoS.

Hope
Reflection attacks use a similar idea with a different traffic pattern. The attacker sends traffic to a reflector, such as a DNS server, but spoofs the packet’s source address so the reflector sends its reply to the target instead.

Anna
If enough traffic reaches the target, the reflection can cause a denial of service. Amplification is a more powerful form: the attacker sends a small amount of traffic that triggers a much larger amount of traffic from the reflector to the target. DNS and NTP vulnerabilities are examples that can be exploited this way.

Hope
A man-in-the-middle attack places an attacker between a source and destination. The attacker may eavesdrop on the communication, modify it before it reaches its destination, or do both.

Anna
One example is ARP spoofing, also called ARP poisoning. Suppose a PC broadcasts an ARP request asking for the MAC address of a server. The server replies with its real address, but an attacker can send a forged ARP reply shortly afterward.

Hope
If the attacker’s reply arrives last, it can overwrite the correct entry in the PC’s ARP table. The PC then sends traffic intended for the server to the attacker’s MAC address instead. The attacker can inspect the messages and forward them to the server, or modify them before forwarding.

Anna
That threatens confidentiality because the attacker gains access to communications, and integrity because the attacker can change the data. In this example, the main threat is to the C and I of the CIA triad, rather than availability.

Hope
Reconnaissance is different: it’s gathering information about a target that might help with a future attack, rather than necessarily attacking the target directly. Some information may be publicly available. For example, NSLOOKUP can reveal a site’s IP address, which can then be probed for open ports.

Anna
A WHOIS query can reveal contact information such as email addresses, phone numbers, and physical addresses. That information could help an attacker plan a later attack, including social engineering.

Hope
Malware means malicious software: harmful programs that infect computers. Viruses, worms, and trojan horses are common categories, and the distinction is largely about how they infect a system and spread—not necessarily what damage they do afterward.

Anna
A virus infects other software, called a host program. It can spread when that software is shared or downloaded, and it may corrupt or modify files. A worm doesn’t need a host program; it’s standalone malware that can spread on its own without user interaction.

Hope
As worms spread from device to device, they can congest a network. A worm may also carry a payload—additional malicious code that causes harm. A trojan horse is harmful software disguised as legitimate software, and it spreads through user actions such as opening an email attachment or downloading a file.

Anna
Social engineering targets people rather than directly exploiting a company’s IT systems. It uses psychological manipulation to persuade someone to reveal confidential information or perform an action. Employees can remain a vulnerability even when routers, switches, firewalls, servers, and PCs have security features.

Hope
Phishing is a fraudulent message that appears to come from a legitimate organization. It may link to a fake website that looks like a real login page and ask the user to enter credentials. Spear phishing targets a more specific group, such as employees at one company, while whaling targets high-profile individuals, such as a company president.

Anna
Vishing is voice phishing over the phone. An attacker might pretend to be from a bank or from a company department and ask for a password. Smishing is phishing through SMS text messages.

Hope
A watering hole attack compromises a website the intended victim frequently visits. The idea is to take advantage of the user’s trust in that site, perhaps by placing a malicious link where the user may be less likely to hesitate before clicking.

Anna
Tailgating is a physical form of social engineering. Someone enters a restricted area by walking in behind an authorized person. The authorized person may hold the door open out of politeness, assuming the other person is allowed to enter.

Hope
Passwords are another major security concern. Many systems use a username and password to authenticate users, and usernames are often easy to guess—for example, an email address. That makes the strength and secrecy of the password especially important.

Anna
Attackers may guess a password directly, use a dictionary attack that tries common words and passwords, or use brute force. A brute-force attack tries every possible combination of letters, numbers, and special characters. It requires substantial computing power, and a sufficiently strong password makes success much less likely because the search takes so long.

Hope
A strong password should have at least eight characters, and preferably more. It should mix uppercase and lowercase letters, include letters and numbers, and use one or more special characters. The lesson recommends changing passwords regularly as well.

Anna
Even a strong password can still fall into an attacker’s hands, which is why multi-factor authentication is increasingly common. It requires more than a username and password to prove identity. Two-factor authentication is the case where two factors are used.

Hope
The factors come from three categories: something you know, such as a password or PIN; something you have, such as an authenticator-app notification or a badge; and something you are, such as a face, palm, fingerprint, or retina scan.

Anna
The key is using at least two different categories. A badge plus a PIN combines something you have with something you know. A retina scan followed by a fingerprint scan uses two things from the same category—something you are—so it isn’t multi-factor authentication under this framework.

Hope
Digital certificates provide another way to prove identity. They are used mainly, but not exclusively, by websites to help verify that the site being accessed is legitimate. An organization seeking a certificate, such as a company with a website, sends a certificate signing request, or CSR, to a certificate authority, or CA, which generates and signs the certificate.

Anna
Modern browsers display a symbol to indicate that a website has a valid certificate. Inspecting the certificate helps a user check that the site is the genuine website they intended to visit, rather than a fake site pretending to be it.

Hope
Now let’s connect authentication to AAA, a framework for controlling and monitoring users of a system such as a network. Authentication verifies a user’s identity; logging in is an example, ideally using multi-factor authentication.

Anna
Authorization determines what an authenticated user is allowed to access or do. A user might be granted access to some files and services while being restricted from others. Accounting records the user’s activities, such as logging in or out or making a change to a file.

Hope
Enterprises often use a AAA server to provide these services. Cisco’s Identity Services Engine, or ISE, is one example. Two AAA protocols to know are RADIUS and TACACS-plus.

Anna
RADIUS is an open-standard protocol and uses UDP ports 1812 and 1813. TACACS-plus is Cisco proprietary and uses TCP port 49. For this material, the important points are the protocol names, their ports, and the differences among authentication, authorization, and accounting.

Hope
The final topic is security program elements. A security program is an enterprise’s set of security policies and procedures. User awareness programs help employees recognize potential threats and risks, including employees who aren’t cybersecurity specialists.

Anna
One awareness exercise might send harmless false phishing emails. Employees who click and enter their credentials are then told it was an exercise and encouraged to be more careful. The goal is to help them recognize phishing attempts.

Hope
User training programs are more formal. They can include dedicated sessions on corporate security policies, creating strong passwords, and avoiding threats. Training should happen when employees join the company and at regular intervals afterward.

Anna
Physical access control protects equipment and data by allowing only authorized people into restricted areas, such as network closets or data center floors. Access should be limited even within the organization, to people who need it.

Hope
A restricted door might require a badge and a fingerprint scan. That combines something you have with something you are, and it’s both physical access control and multi-factor authentication. Badge permissions can be changed centrally and removed when an employee leaves, whether or not the badge is returned.

Anna
Let’s check the key ideas with a few quick questions. Which part of the CIA triad means systems are running and accessible? Availability. Which term describes the possibility that a vulnerability will be exploited? Threat.

Hope
And if a door requires a badge and a passcode, that’s physical access control and multi-factor authentication: the badge is something you have, and the passcode is something you know. But a retina scan plus a fingerprint scan is not multi-factor authentication in this model, because both are something you are.

Anna
Finally, in AAA, recording the date and time a user logged in is accounting. Authentication verifies identity, authorization controls what the user is allowed to do, and accounting keeps track of what the user does.

Hope
That gives us the full foundation: the CIA triad, vulnerabilities and threats, common attacks, password protections and authentication factors, certificates, AAA, and the people-focused and physical parts of a security program. The central idea is to recognize what is at risk and use appropriate safeguards, while remembering that no system can be guaranteed perfectly secure.

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