OSI Model
That's a great approach to studying for your ISC2 certification! The Open Systems Interconnection (OSI) Model is a fundamental concept in networking and security. It's a conceptual framework that divides network communication into seven distinct layers, which helps in understanding, troubleshooting, and securing network protocols.
7 Layers of the OSI Model
Here are the seven layers, from Layer 7 (closest to the user) down to Layer 1 (closest to the physical medium):
Layer | Name | Function | Protocol Data Unit (PDU) | Key Protocols |
7 | Application | Provides the interface for the applications users work with. | Data | HTTP, HTTPS, FTP, DNS, SMTP, POP3 |
6 | Presentation | Handles data formatting, encryption, decryption, and compression to ensure the application layer can process the data. | Data | SSL, TLS, JPEG, GIF, MPEG |
5 | Session | Establishes, manages, and terminates connections (sessions) between applications. | Data | NFS, SMB, NetBIOS |
4 | Transport | Provides reliable (TCP) or unreliable (UDP) end-to-end communication and error/flow control. | Segments (TCP) or Datagrams (UDP) | TCP, UDP |
3 | Network | Handles logical addressing (IP) and routing data packets across different networks. | Packets | IP (IPv4, IPv6), ICMP, IPsec |
2 | Data Link | Provides node-to-node data transfer, error detection, and physical addressing (MAC addresses). It is split into Logical Link Control (LLC) and Media Access Control (MAC) sublayers. | Frames | Ethernet, PPP, ARP |
1 | Physical | Transmits raw binary data (bits) over the physical medium (cables, radio waves). | Bits | Cables, Radio waves, Hubs, Repeaters |
The OSI Model and Network Security (ISC2 Relevance)
A clear understanding of the OSI model is essential for the ISC2 exams (like CC or CISSP) because it helps categorize security vulnerabilities, threats, and corresponding controls in the Communication and Network Security domain. Security should be implemented as a defense-in-depth strategy, meaning controls are applied at every layer.
Hereโs how security relates to each layer:
Layer 1: Physical Layer ๐
Security Focus: Protecting the physical infrastructure and transmission medium.
Key Threats: Eavesdropping via cable tapping, physical theft or tampering of devices (servers, routers, switches), power interruption, and environmental hazards.
Security Controls:
Physical Security: Locked server rooms, surveillance (CCTV), controlled access (biometrics, badge systems). This directly relates to the Physical Controls topic in the ISC2 curriculum.
Environmental Controls: HVAC, fire suppression, and redundant power supplies.
Layer 2: Data Link Layer ๐ก
Security Focus: Securing local network communication and MAC addresses.
Key Threats: MAC Spoofing (impersonating a device by changing the MAC address), ARP Poisoning/ARP Cache Poisoning (associating the attacker's MAC address with the gateway's IP address to intercept traffic), and VLAN hopping/circumvention.
Security Controls:
Port Security: Restricting which MAC addresses can connect to a switch port.
Network Segmentation with VLANs (Virtual Local Area Networks) to separate traffic and limit the scope of an attack.
Dynamic ARP Inspection (DAI) to prevent ARP spoofing.
Layer 3: Network Layer ๐
Security Focus: Securing routing and logical addressing (IP).
Key Threats: IP Spoofing (using a fake source IP address to hide identity or bypass filters), Denial-of-Service (DoS) attacks (flooding a network with packets), and exploits of insecure routing protocols.
Security Controls:
Firewalls and Access Control Lists (ACLs): Filtering traffic based on source/destination IP addresses.
Intrusion Detection/Prevention Systems (IDS/IPS): Monitoring for malicious traffic patterns.
IPsec (Internet Protocol Security): A suite of protocols to secure IP communications, providing confidentiality (encryption) and integrity/authenticity (hashing/digital signatures).
Layer 4: Transport Layer ๐
Security Focus: Securing end-to-end communication and managing ports.
Key Threats: Port Scanning (identifying open ports to find vulnerable services), TCP SYN Flood attacks (a type of DoS attack that overwhelms a server with half-open connections), and attacks exploiting weaknesses in TCP/UDP headers.
Security Controls:
Firewall Rules: Blocking unnecessary ports to limit the attack surface.
TLS/SSL Inspection: Monitoring and securing traffic that uses Transport Layer Security (TLS) or its predecessor, Secure Sockets Layer (SSL).
Rate Limiting: Protecting against DoS/DDoS attacks by limiting the number of requests a host will accept.
Layer 5, 6, and 7 (Upper Layers) ๐ป
Layers 5, 6, and 7 are often grouped together in the more practical TCP/IP Model's Application Layer and share security concerns related to the applications themselves.
Layer | Security Focus | Key Threats | Security Controls |
5 (Session) | Session management and control. | Session Hijacking (taking over an active user session by stealing or predicting session tokens). | Secure session management (e.g., strong token generation, time-based session timeouts, encrypting session data). |
6 (Presentation) | Data formatting and encryption. | Using weak or outdated encryption standards, or vulnerabilities in data encoding/decoding. | Enforcing strong encryption (e.g., AES) and using modern protocols like TLS 1.3. |
7 (Application) | Application and user interface. | Web application attacks like SQL Injection, Cross-Site Scripting (XSS), buffer overflows, and insecure application design. | Web Application Firewalls (WAFs), input validation/sanitization, secure coding practices (part of Software Development Security), and strong authentication protocols (e.g., Kerberos). |
Understanding the layers allows you to accurately map vulnerabilities to the correct part of the network stack, which is a core skill tested in the ISC2 exams, particularly in the Network Security and Security Architecture and Engineering domains.
Would you like me to elaborate on a specific security control, threat, or protocol from one of these layers?