Security Fundamentals
Core Security Concepts
- Concept: The foundation of enterprise security is built on the CIA Triad, alongside understanding how vulnerabilities are exploited and mitigated. No system is perfectly secure; systems can only be made more or less secure.
- Details:
- Confidentiality: Only authorized users can access data.
- Integrity: Data is not tampered with or modified by unauthorized users; it remains correct and authentic.
- Availability: Systems and networks are operational and accessible to authorized users.
| Security Term | Definition | Analogy / Example |
|---|---|---|
| Vulnerability | A potential weakness that can compromise the CIA of a system. | An open window on a house. |
| Exploit | A tool or method used to take advantage of a vulnerability. | A rock used to break the window. |
| Threat | The real possibility that a vulnerability will be exploited. | A robber wanting to use the rock to break the window. |
| Mitigation | Techniques implemented to protect against threats and reduce risk. | Installing window locks or security cameras. |
Things to note: A vulnerability or exploit on its own is not an active problem until a threat actor utilizes it. Mitigation must be applied everywhere (clients, servers, switches, routers, firewalls, and physical locations).
Common Network Attacks
Network attacks directly target the infrastructure to compromise the CIA triad.
Denial of Service (DoS) & Distributed DoS (DDoS)
- Concept: Attacks designed to overwhelm a system, threatening Availability.
- Details:
- TCP SYN Flood: Exploits the TCP 3-way handshake. The attacker sends countless
SYNpackets, often spoofing the source IP. The target replies withSYN-ACK(sent to the spoofed IP) and waits for the finalACK. The incomplete connections fill the target’s TCP connection table, preventing legitimate connections. - DDoS: Uses a botnet (a group of malware-infected computers) to launch a massive DoS attack from multiple sources simultaneously.
- TCP SYN Flood: Exploits the TCP 3-way handshake. The attacker sends countless
sequenceDiagram
participant Attacker
participant FakeIP as Spoofed IP
participant Target
Attacker->>Target: TCP SYN (Source IP = FakeIP)
Target->>FakeIP: TCP SYN-ACK
Note over Target: Waits for ACK, connection table fills up -> DoS
Spoofing & Exhaustion Attacks
- Concept: Falsifying data to masquerade as a trusted entity or device.
- Details:
- DHCP Exhaustion (Starvation): The attacker sends
DHCP Discovermessages with thousands of spoofed source MAC addresses. The DHCP server replies withDHCP Offerand reserves the IPs, quickly filling the DHCP pool and causing a DoS for legitimate clients.
- DHCP Exhaustion (Starvation): The attacker sends
Reflection & Amplification Attacks
- Concept: Bouncing traffic off a third party to hide the attacker’s identity and magnify the attack size. Threatens Availability.
- Details:
- Reflection: Attacker sends traffic to a reflector (e.g., a server) while spoofing the source IP to be the target’s IP. The reflector sends the reply to the target.
- Amplification: A reflection attack where a small request triggers a massive response from the reflector. Commonly exploits DNS and NTP vulnerabilities.
sequenceDiagram
participant Attacker
participant Reflector as Reflector (DNS/NTP)
participant Target
Attacker->>Reflector: Small Request (Source IP = Target IP)
Reflector->>Target: Large Reply (Amplified Traffic)
Note over Target: Denial of Service via Amplification
Man-in-the-Middle (MitM) & ARP Spoofing
- Concept: The attacker positions themselves between the source and destination to eavesdrop or modify traffic. Threatens Confidentiality and Integrity.
- Details:
- ARP Spoofing (Poisoning): A host broadcasts an ARP Request for an IP (e.g.,
10.0.0.1). The legitimate server replies, but the attacker waits briefly and sends a malicious ARP Reply mapping10.0.0.1to the attacker’s MAC address. Because it arrives last, it overwrites the legitimate entry in the victim’s ARP table.
- ARP Spoofing (Poisoning): A host broadcasts an ARP Request for an IP (e.g.,
sequenceDiagram
participant PC1
participant SRV1 as SRV1 (10.0.0.1)
participant Attacker
PC1->>SRV1: ARP Request: Who has 10.0.0.1?
SRV1->>PC1: ARP Reply: 10.0.0.1 is at MAC-SRV1
Attacker->>PC1: ARP Reply: 10.0.0.1 is at MAC-Attacker (Arrives last)
Note over PC1: ARP table overwritten. Traffic to SRV1 goes to Attacker.
Reconnaissance Attacks
- Concept: Information gathering (often using publicly available data) to map out vulnerabilities for a future attack. Not an active exploit itself.
- Details: Includes using
NSLOOKUPto find IP addresses, probing for open ports, and usingWHOISto find contact/physical information.
Malware & Social Engineering
These attacks target software vulnerabilities and human psychology.
Malware Types
| Malware Type | Characteristics |
|---|---|
| Virus | Infects a host program. Spreads when users share software or download files. Can corrupt/modify files. |
| Worm | Standalone malware (no host required). Self-replicates and spreads without user interaction, congesting networks. Can carry a malicious payload. |
| Trojan Horse | Disguised as legitimate software. Relies on user interaction (e.g., opening an email attachment) to execute. |
Social Engineering
- Concept: Psychological manipulation targeting the most vulnerable part of any system: people.
- Details:
- Phishing: Fraudulent emails appearing to be from legitimate businesses, linking to fake login pages.
- Spear Phishing: Targeted phishing aimed at a specific group (e.g., employees of a specific company).
- Whaling: Phishing targeted at high-profile individuals (e.g., company president/CEO).
- Vishing: Voice phishing performed over the phone.
- Smishing: SMS phishing performed via text messages.
- Watering Hole: Compromising a legitimate website that the target victim is known to frequently visit.
- Tailgating: Physically entering a restricted area by walking in closely behind an authorized person.
Password Attacks & Multi-Factor Authentication (MFA)
- Concept: Passwords are the primary line of defense, but they must be strong and supplemented by MFA.
- Details:
- Password Attacks:
- Dictionary Attack: Uses a list of common words/passwords.
- Brute Force: Tries every possible character combination. Requires immense computing power.
- Strong Password Rules: Minimum 8 characters, mix of upper/lowercase, numbers, special characters, and regular rotation.
- Multi-Factor Authentication (MFA): Requires at least two different categories of authentication:
- Something you know (Password, PIN)
- Something you have (Smartphone authenticator app, physical badge)
- Something you are (Biometrics: Retina scan, fingerprint, palm scan)
- Password Attacks:
Things to note: Using a retina scan AND a fingerprint scan is NOT Multi-Factor Authentication because both belong to the exact same category (“Something you are”). MFA requires factors from different categories.
Digital Certificates
- Concept: Used to prove the identity of a holder (commonly used for websites to ensure they are legitimate).
- Details: An entity sends a CSR (Certificate Signing Request) to a CA (Certificate Authority). The CA generates and signs the digital certificate. Browsers display a lock icon to indicate a valid certificate.
AAA Framework
- Concept: AAA is a framework for controlling and monitoring users accessing a network or system.
- Details:
- Authentication: Verifying a user’s identity (e.g., logging in with MFA).
- Authorization: Granting the user appropriate access and permissions (what they are allowed to do).
- Accounting: Recording and tracking the user’s activities (e.g., logging the date/time a user logged in or modified a file).
| AAA Protocol | Vendor / Standard | Transport Protocol & Ports |
|---|---|---|
| RADIUS | Open Standard | UDP 1812 (Authentication), UDP 1813 (Accounting) |
| TACACS+ | Cisco Proprietary | TCP 49 |
Things to note: Cisco’s enterprise AAA server implementation is called ISE (Identity Services Engine).
Security Program Elements
- Concept: Enterprises must implement policies and procedures to secure systems and educate staff.
- Details:
- User Awareness Programs: Informal efforts to make employees aware of threats (e.g., sending fake phishing emails to test and educate employees who click them).
- User Training Programs: Formal, dedicated training sessions on corporate security policies, password creation, and threat avoidance (done onboarding and at regular intervals).
- Physical Access Control: Restricting physical entry to sensitive areas (network closets, data centers). Often uses MFA (e.g., requiring a badge swipe [“something you have”] AND a fingerprint scan [“something you are”] to open a door). Permissions can be centrally revoked when an employee leaves.
Summary of Commands & Protocols
As this module focused on security theory, no IOS configuration commands were covered. However, here are the key reconnaissance commands and AAA protocols/ports to memorize for the exam:
# Reconnaissance Commands
nslookup <domain_name>
whois <domain_name>
# AAA Protocols & Ports (Memorize for Exam)
# RADIUS (Open Standard)
UDP port 1812 # Authentication
UDP port 1813 # Accounting
# TACACS+ (Cisco Proprietary)
TCP port 49 # Authentication, Authorization, and Accounting