Docsity

IPSec Protocol: Understanding IKE Phase 1 and Its Complexities, Slides of Computer Science

Partial preview of the text

Download IPSec Protocol: Understanding IKE Phase 1 and Its Complexities and more Slides Computer Science in PDF only on Docsity!

Part 3  Protocols 1

IPSec

Part 3  Protocols 2

IPSec and SSL

 IPSec lives at

the network

layer

 IPSec is

transparent to

applications

application

transport

network

link

physical

SSL

OS

User

NIC

IPSec

Part 3  Protocols 4

IKE and ESP/AH

 Two parts to IPSec

 IKE: Internet Key Exchange

o Mutual authentication o Establish shared symmetric key

o Two “phases”  like SSL session/connection

 ESP/AH

o ESP: Encapsulating Security Payload  for

encryption and/or integrity of IP packets

o AH: Authentication Header  integrity only

Part 3  Protocols 5

IKE

Part 3  Protocols 7

IKE Phase 1

 Four different “key” options

o Public key encryption (original version) o Public key encryption (improved version) o Public key signature o Symmetric key

 For each of these, two different “modes”

o Main mode o Aggressive mode

 There are 8 versions of IKE Phase 1!

 Evidence that IPSec is over-engineered?

Part 3  Protocols 8

IKE Phase 1

 We’ll discuss 6 of 8 phase 1 variants

o Public key signatures (main and aggressive modes) o Symmetric key (main and aggressive modes) o Public key encryption (main and aggressive)

 Why public key encryption and public key

signatures?

o Always know your own private key o May not (initially) know other side’s public key

Part 3  Protocols 10

IKE Phase 1: Digital Signature

(Main Mode)

 CP = crypto proposed, CS = crypto selected

 IC = initiator “cookie”, RC = responder “cookie”

 K = h(IC,RC,gab^ mod p,RA,RB)

 SKEYID = h(RA, RB, gab^ mod p)

 proofA = [h(SKEYID,ga,gb,IC,RC,CP,“Alice”)]Alice

Alice Bob

IC, CP

IC,RC, CS

IC,RC, ga^ mod p, RA

IC,RC, E(“Alice”, proofA, K)

IC,RC, gb^ mod p, RB

IC,RC, E(“Bob”, proofB, K)

Part 3  Protocols 11

IKE Phase 1: Public Key

Signature (Aggressive Mode)

 Main difference from main mode

o Not trying to protect identities o Cannot negotiate g or p

Alice Bob

IC, “Alice”, ga^ mod p, RA, CP

IC,RC, “Bob”, RB, gb^ mod p, CS, proofB

IC,RC, proofA

Part 3  Protocols 13

IKE Phase 1: Symmetric Key

(Main Mode)

 Same as signature mode except o KAB = symmetric key shared in advance o K = h(IC,RC,gab^ mod p,RA,RB,KAB) o SKEYID = h(K, gab^ mod p) o proofA = h(SKEYID,ga,gb,IC,RC,CP,“Alice”)

Alice Bob

IC, CP

IC,RC, CS

IC,RC, ga^ mod p, RA

IC,RC, E(“Alice”, proofA, K)

IC,RC, gb^ mod p, RB

IC,RC, E(“Bob”, proofB, K)

Part 3  Protocols 14

Problems with Symmetric

Key (Main Mode)

 Catch-

o Alice sends her ID in message 5 o Alice’s ID encrypted with K o To find K Bob must know KAB o To get KAB Bob must know he’s talking to Alice!

 Result: Alice’s ID must be IP address!

 Useless mode for the “road warrior”

 Why go to all of the trouble of trying to

hide identities in 6 message protocol?

Part 3  Protocols 16

IKE Phase 1: Public Key

Encryption (Main Mode)

 CP = crypto proposed, CS = crypto selected

 IC = initiator “cookie”, RC = responder “cookie”

 K = h(IC,RC,gab^ mod p,RA,RB)

 SKEYID = h(RA, RB, gab^ mod p)

 proofA = h(SKEYID,ga,gb,IC,RC,CP,“Alice”)

Alice Bob

IC, CP

IC,RC, CS

IC,RC, ga^ mod p, {RA}Bob, {“Alice”}Bob

IC,RC, E(proofA, K)

IC,RC, gb^ mod p, {RB}Alice, {“Bob”}Alice

IC,RC, E(proofB, K)

Part 3  Protocols 17

IKE Phase 1: Public Key

Encryption (Aggressive Mode)

 K, proofA, proofB computed as in main mode

 Note that identities are hidden

o The only aggressive mode to hide identities o Then why have main mode?

Alice Bob

IC, CP, ga^ mod p, {“Alice”}Bob, {RA}Bob IC,RC, CS, gb^ mod p, {“Bob”}Alice, {RB}Alice, proofB

IC,RC, proofA

Part 3  Protocols 19

Public Key Encryption Issue?

Trudy as Alice

Trudy as Bob

 Trudy can create exchange that appears to

be between Alice and Bob

 Appears valid to any observer, including

Alice and Bob!

IC,RC, CS, gb^ mod p, {“Bob”}Alice, {RB}Alice, proofB

IC,RC, proofA

IC, CP, ga^ mod p, {“Alice”}Bob, {RA}Bob

Part 3  Protocols 20

Plausible Deniability

 Trudy can create “conversation” that

appears to be between Alice and Bob

 Appears valid, even to Alice and Bob!

 A security failure?

 In this mode of IPSec, it is a feature

o Plausible deniability: Alice and Bob can deny that any conversation took place!

 In some cases it might be a security failure

o If Alice makes a purchase from Bob, she could later repudiate it (unless she had signed)