protocols part 1 - symmetric key Flashcards
(16 cards)
what does A -> b: ‘Im alice’ mean
alice is sending a message ‘im Alice’ to bob
what type of attack can happen to a simple protocol
impersonation attack
E(A) -> B : ‘im Alice’
what is an impersonation attack
adversary is impersonating one of the people that is is the messaging
to trick the other person
how to get pass an impersonation attack
use encryption
e.g symmteric key encryption
notation for symmetric key encyption in protocols
{}k_ab
k_ab -> shared symmetric key
what attack could happen to simple symmetric key encryption protocol
replay attack
what is a replay attack
a sends message to b
A -> B : {msg}kab
adversary hears message and then sends the same message to b
E(A) -> B : {msg}kab
replay attack notation
E(A) -> B : {msg}kab
how can we stop a replay attack
use a nonce
what is a nonce
randomly generated number that ia only used once
when is a nonce often used
for a challenge response protocol in a challenge response setting
protocol steps for nonce symmetric key protocol
- A →B : A
a sends message/identity to b - B →A : {Na}Kab
b sends encrypted nonce -> challenge response protocol - A →B : {Na +1}Kab , {Pay Elvis 5}Kab
a decrypts nonce to prove it is them , modifies nonce by doing something arithmetic , sends modified nonce back encrypted and also encrypted message
what attack is nonce protocol susceptible to
man in the middle attack
describe man in the middle attack to nonce protocol
(also known as reflection attack?)
1. A →B : A
2. B →A : {Na1}Kab
3. A →B : {Na1 +1}Kab , {Pay Elvis
5}Kab
4. A →B : A
5. B →A : {Na2}Kab
6. E →B : {Na2 +1}Kab , {Pay Elvis 5}Kab
elvis listens , tajes new nonce, joins with previous message and sends it to bob
how to stop man in the middle attack in nonce protocol
merge nonce and message together into one encryption
1. A →B : A
2. B →A : {Na}K_ab
3. A →B : {Na, Pay Elvis 5}K_ab
therefore adversary cannot edit the message
- A →B : A
- B →A : {Na}K_ab
- A →B : {Na, Pay Elvis 5}K_ab
through this what can bob be sure of ?
he is talking to alice
A wants to send elvise £5
a messages are fresh