Docsity

Network Security: Understanding IPsec and Authentication Headers, Study notes of Computer Science

Partial preview of the text

Download Network Security: Understanding IPsec and Authentication Headers and more Study notes Computer Science in PDF only on Docsity!

CSE 543 - Computer Security

(Fall 2006)

Lecture 17 - Network Security

November 2, 2005

URL: http://www.cse.psu.edu/~tjaeger/cse543-f06/

Communications Security

Harden the communication against mal-intent ...

IPsec (not IPSec!)

Host level protection service

IP-layer security (below TCP/UDP)

De-facto standard for host level security

Developed by the IETF (over many years)

Now available in most operating systems

• E.g., Available in XP, OS X, Linux, BSD*, …

Implements a wide range of protocols and cryptographic algorithms

Provides ….

Confidentiality, integrity, authenticity, replay protection, DOS protection

IPsec Protocols and the stack

IPsec puts the two main protocols in between IP and the other protocols

AH - authentication header

ESP - encapsulating security payload

Tunnel vs. transport?

Key management/authentication

Policy

Other function provided by external protocols and architectures FTP SMTP TCP HTTP AH ESP IP

UDP

IPsec Protocol Suite

(IKE)

Internet Key Exchange

(AH)

Authentication Header

(ESP)

Encapsulating Security Payload

(SPS)

Security Policy System Manual Policy/ Configuration Managent Key Management Packet Processing

Internet Key Exchange (IKE)

Built on of ISAKMP framework

Two phase protocol used to establish parameters and keys for session

Phase 1: negotiate parameters, authenticate peers, establish secure channel

Phase 2: Establish a security association (SA)

The details are unimaginably complex

The SA defines algorithms, keys, and policy used to secure the session

CSE543 Computer and Network Security - Fall 2006 - Professor Jaeger Page

Authentication Header (AH)

  • Authenticity and integrity
    • via HMAC
    • over IP headers and data
  • Advantage: the authenticity of data and IP header information is protected - it gets a little complicated with mutable fields, which are supposed to be altered by network as packet traverses the network - some fields a immutable , and are protected
  • Confidentiality of data is not preserved
  • Replay protection via AH sequence numbers
    • note that this replicates some features of TCP (good?) 10

IPsec AH Packet Format

IPv4 Header IPv4 AH Packet Format Next Header Length Reserved Security Parameter Index Authentication Data (variable number of 32-bit words) AH Header Format Authentication Header Higher Level Protocol Data

IPsec Authentication

  • SPI: (spy) identifies the security association for this packet
    • Type of crypto checksum, how large it is, and how it is computed
    • Really the policy for the packet
  • Authentication data
    • Hash of packet contents include IP header as as specified by SPI
    • Treat transient fields (TTL, header checksum) as zero
  • Keyed MD5 Hash is default Key Headers and data being sent Key Secret Key MD5 Hash

CSE543 Computer and Network Security - Fall 2006 - Professor Jaeger Page

Encapsulating Security Payload (ESP)

  • Confidentiality, authenticity and integrity
    • via encryption and HMAC
    • over IP payload (data)
  • Advantage: the security manipulations are done solely on user data - TCP packet is fully secured - simplifies processing
  • Use “null” encryption to get authenticity/integrity only
  • Note that the TCP ports are hidden when encrypted
    • good: better security, less is known about traffic
    • bad: impossible for FW to filter/traffic based on port
  • Cost: can require many more resources than AH 14

CSE543 Computer and Network Security - Fall 2006 - Professor Jaeger Page

Encapsulating Security Payload (ESP)

  • Modifications to packet format 16 IP Header ESP Header Payload ESP Trailer MAC ESP Packet Encrypted Authenticated IP Header Payload

Practical Issues and Limitations

IPsec implementations

Often not compatible (ungh.)

Large footprint

• resource poor devices are in trouble

• New standards to simplify (e.g, JFK, IKE2)

Slow to adopt new technologies

Issues

IPsec tries to be “everything for everybody at all times”

• Massive, complicated, and unwieldy

Policy infrastructure has not emerged

Large-scale management tools are limited (e.g., CISCO)

Often not used securely (common pre-shared keys)

Network Isolation: VPNs

Idea: I want to create a collection of hosts which operate in a coordinated way

E.g., a virtual security perimeter over physical network

Hosts work as if they are isolated from malicious hosts

Solution: Virtual Private Networks

Create virtual network topology over physical network

Use communications security protocol suites to secure virtual links “tunneling”

Manage networks as if they are physically separate

Hosts can route traffic to regular networks (split-tunneling)

VPN Example: RW/Telecommuter

Internet LAN (network edge) Physical Link Logical Link (IPsec)