Internet Security Protocols, VPNs, and Firewalls Summary

Overview of Internet Security Protocols

  • Security protocols protect data by adding a Message Authentication Code (MAC) and encrypting payload data.
  • Parameter Exchange Mechanisms:
    • One-Step Version: Sends session keys and chosen algorithms along with the packet, encrypted using public-key cryptography (e.g., PGP).
    • Two-Step Version: Establishes security parameters prior to data transfer via key negotiation protocols (e.g., IPSec, SSL/TLS).

IP Security (IPSec)

  • Operates at the network layer to provide security for IP datagrams.
  • Modes of Operation:
    • Transport Mode: Protects the transport layer payload only; original IP header is not encrypted. Typically used for host-to-host communication.
    • Tunnel Mode: Encapsulates and protects the entire original IP datagram (header and payload) under a new IP header. Used between routers or host-to-router connections.
  • Core Security Protocols:
    • Authentication Header (AH): Provides source authentication and data integrity (IP Protocol value 5151); does not supply confidentiality.
    • Encapsulating Security Payload (ESP): Provides source authentication, data integrity, and confidentiality (IP Protocol value 5050).
  • Services Provided:IPSec Services Comparison
    • Both protocols provide access control, message authentication, entity authentication, and replay attack protection.
    • Replay protection uses a 32-bit sequence number (resets at 232−12^{32} - 1) and a sliding receiver window (default size 6464).
    • Confidentiality is exclusive to ESP.
  • Security Association (SA): Logical connection defining security parameters stored in the Security Association Database (SADB). Uniquely identified by the Security Parameter Index (SPI), protocol (AH/ESP), and destination/source IP address.
  • Internet Key Exchange (IKE): Protocol suite used to establish SAs, combining ISAKMP (message formats), Oakley (Diffie-Hellman based key creation), and SKEME (public-key based key exchange).

Virtual Private Networks (VPN)

  • Technology leveraging IPSec in tunnel mode to construct secure, private communication links over the public Internet.
  • Reserved Private IP Ranges:
    • 10/810/8: Range 10.0.0.010.0.0.0 to 10.255.255.25510.255.255.255 (2242^{24} host addresses).
    • 172.16/12172.16/12: Range 172.16.0.0172.16.0.0 to 172.31.255.255172.31.255.255 (2202^{20} host addresses).
    • 192.168/16192.168/16: Range 192.168.0.0192.168.0.0 to 192.168.255.255192.168.255.255 (2162^{16} host addresses).

SSL and TLS

  • Operates at the transport layer to secure TCP-based applications (e.g., HTTP).
  • Core Services:
    • Fragmentation: Divides payload into blocks of 2142^{14} bytes or less.
    • Compression: Optional lossless compression.
    • Integrity & Confidentiality: Uses keyed-hash MACs and symmetric encryption.
  • Security Parameters & Secrets:
    • Cipher Suite: Specifies algorithms for key exchange, encryption, and hashing (e.g., SSL_DHE_RSA_WITH_DES_CBC_SHA).
    • Cryptographic Secrets: Generates 6 parameters per session (client/server authentication keys, encryption keys, and IVs).
  • Sub-Protocols:
    • Handshake Protocol: Negotiates security capabilities, authenticates servers/clients, and establishes master secrets.
    • ChangeCipherSpec Protocol: Signals activation of negotiated cryptographic secrets.
    • Alert Protocol: Transmits warnings or fatal error notifications.
    • Record Protocol: Encapsulates, hashes, and encrypts application and SSL control data.
  • TLS Differences: IETF standardized version using HMAC and Pseudorandom Functions (PRF) for key generation.

Pretty Good Privacy (PGP)

  • Application layer protocol designed for securing e-mail communications.
  • Operates in a connectionless, one-time transmission model without live handshaking.
  • Features & Processing:
    • Generates a one-time session key to symmetrically encrypt message and digest.
    • Encrypts the session key using the recipient's public key.
    • Uses Radix 64 conversion for ASCII transfer and supports message segmentation.
  • Web of Trust Model:
    • Decentralized certificate trust scheme eliminating central Certificate Authorities (CAs).
    • Evaluates key legitimacy based on weighted introducer trust levels (e.g., full trust weight 11, partial trust weight 12\frac{1}{2}).
    • Key verification utilizes 16-byte MD5 or 20-byte SHA-1 fingerprints.

Firewalls

  • Security mechanism placed between an internal network and the Internet to filter unauthorized traffic.
  • Packet-Filter Firewall: Works at Network and Transport layers, evaluating packets using IP addresses, port numbers, and protocol types against a filtering table.
  • Proxy Firewall (Application Gateway): Operates at the Application layer, intercepting and inspecting specific application content (e.g., HTTP URLs) before forwarding requests to target servers.