Docsity

Augmented EKE Protocol: Analysis and Improvements - Prof. A.U. Shankar, Assignments of Computer Science

Toggle sidebar
bg1
udaya shankar Page 1 of 3 December 10, 2007
CMSC 414: HW 5
___________________________________________________________
1. Show a protocol for an augmented form of EKE.
Solution (one way to get EKE augmented):
A B
A stores password pw
๎˜ W and Wโ€™ are two keys obtained from pw (e.g., different hashes)
B stores ( A, Wโ€™, T
A
โ€™) where T
A
โ€™ = g
W
mod-p
Public g and p (prime)
๎˜ choose rn a
๎˜ T
A
๎˜ g
a
mod-p
๎˜ send [A, B, Wโ€™{T
A
}]
๎˜ receive msg
๎˜ extract T
A
from Wโ€™{T
A
} using Wโ€™
๎˜ choose rn b
๎˜ T
B
๎˜ g
b
mod-p
๎˜ K
B
๎˜ (T
A
)
b
mod-p
๎˜ K
B
โ€™ ๎˜ (T
A
โ€™)
b
mod-p
๎˜ H ๎˜ hash( K
B
, K
B
โ€™ )
๎˜ send [B, A, Wโ€™{T
B
}, H]
๎˜ receive msg
๎˜ extract T
B
from Wโ€™{T
B
} using Wโ€™
๎˜ K
A
๎˜ (T
B
)
a
mod-p
๎˜ K
A
โ€™ ๎˜ (T
B
)
W
mod-p
๎˜ verify H = hash(K
A
, K
A
โ€™) to authenticate B
๎˜ Hโ€™ ๎˜ hashโ€™(K
A
, K
A
โ€™ ), where hashโ€™ is another hash function
๎˜ send [A, B, Hโ€™]
๎˜ receive msg
๎˜ verify Hโ€™ = hashโ€™(K
B
, K
B
โ€™) to authenticate A
A and B are mutually authenticated and share strong key K = g
ab
mod p
pf3

Partial preview of the text

Download Augmented EKE Protocol: Analysis and Improvements - Prof. A.U. Shankar and more Assignments Computer Science in PDF only on Docsity!

CMSC 414: HW 5

___________________________________________________________

  1. Show a protocol for an augmented form of EKE.

Solution (one way to get EKE augmented):

A B

A stores password pw  W and Wโ€™ are two keys obtained from pw (e.g., different hashes)

B stores ( A, Wโ€™, TAโ€™) where TAโ€™ = gW^ mod-p

Public g and p (prime)

 choose rn a  TA  ga^ mod-p  send [A, B, Wโ€™{TA}]  receive msg  extract TA from Wโ€™{TA} using Wโ€™  choose rn b  TB  gb^ mod-p  KB  (TA)b^ mod-p  KBโ€™  (TAโ€™)b^ mod-p  H  hash( KB , KBโ€™ )  send [B, A, Wโ€™{TB}, H]  receive msg  extract TB from Wโ€™{TB} using Wโ€™  KA  (TB)a^ mod-p  KAโ€™  (TB)W^ mod-p  verify H = hash(KA , KAโ€™) to authenticate B  Hโ€™  hashโ€™(KA , KAโ€™ ), where hashโ€™ is another hash function  send [A, B, Hโ€™]  receive msg  verify Hโ€™ = hashโ€™(KB, KBโ€™) to authenticate A

A and B are mutually authenticated and share strong key K = gab^ mod p

___________________________________________________________

  1. (text 12.14) Why is the EKE-based Protocol 12-7 (also shown below) insecure? (Hint: someone impersonating Bob can do a dictionary attack, but show how.) How can you make it secure while still having Bob transmit gb^ mod-p unencrypted?

A (pw, public g, p ) // Alice B (A: W, public g, p) // Bob

 generate random a  generate W from pw  TA  ga^ mod-p  send [A, B, W{TA}]  receive msg  extract TA from W{TA} using W  generate random b, challenge CB  TB  gb^ mod-p  KB  (TA)b^ mod-p  send [B, A, TB, CB]  receive msg  KA  (TB)a^ mod-p  generate challenge CA  send [A, B, KA{CB}, CA]  receive msg  decrypt KA{CB} with KB; if it equals CB then A authenticated  send [B, A, KB{CA}]  receive msg  decrypt KB{CA} with KA; if it equals CA then B authenticated

Solution Attacker: receive msg 1; generate b, CB, TB; send msg 2; receive msg 3. Do following with W{TA}, b, TB, CB, K{CB} where K = gab^ mod-p : for cPw in dictionary do { cW  key from cPw; cTA  decrypt W{TA} using cW; cK  (cTA)b^ mod-p; cCB  decrypt K{CB} using cK; if cCB = CB then cPw equals pw }

Fix: have B send evidence of K in msg 2, for example:

  • B can send hash(K, CB), or
  • B can send K{CB} instead of CB, and the response can be K{CB+1}.