Key Exchange With Public Key Cryptography

Slides:



Advertisements
Similar presentations
CMSC 414 Computer (and Network) Security Lecture 22 Jonathan Katz.
Advertisements

Key Management. Shared Key Exchange Problem How do Alice and Bob exchange a shared secret? Offline – Doesnt scale Using public key cryptography (possible)
Key distribution and certification In the case of public key encryption model the authenticity of the public key of each partner in the communication must.
CSC 474 Information Systems Security
Last Class: The Problem BobAlice Eve Private Message Eavesdropping.
CIS 725 Key Exchange Protocols. Alice ( PB Bob (M, PR Alice (hash(M))) PB Alice Confidentiality, Integrity and Authenication PR Bob M, hash(M) M, PR Alice.
 Authorization via symmetric crypto  Key exchange o Using asymmetric crypto o Using symmetric crypto with KDC  KDC shares a key with every participant.
Symmetric Key Distribution Protocol with Hybrid Crypto Systems Tony Nguyen.
EEC 693/793 Special Topics in Electrical Engineering Secure and Dependable Computing Lecture 7 Wenbing Zhao Department of Electrical and Computer Engineering.
EEC 688/788 Secure and Dependable Computing Lecture 7 Wenbing Zhao Department of Electrical and Computer Engineering Cleveland State University
Chapter 9 Cryptographic Protocol Cryptography-Principles and Practice Harbin Institute of Technology School of Computer Science and Technology Zhijun Li.
Diffie-Hellman Key Exchange
Alexander Potapov.  Authentication definition  Protocol architectures  Cryptographic properties  Freshness  Types of attack on protocols  Two-way.
Lecture 19 Page 1 CS 111 Online Symmetric Cryptosystems C = E(K,P) P = D(K,C) E() and D() are not necessarily the same operations.
Symmetric versus Asymmetric Cryptography. Why is it worth presenting cryptography? Top concern in security Fundamental knowledge in computer security.
Chapter 3: Basic Protocols Dulal C. Kar. Key Exchange with Symmetric Cryptography Session key –A separate key for one particular communication session.
Using Cryptography for Network Security Common problems: –Authentication - A and B want to prove their identities to one another –Key-distribution - A.
Software Security Seminar - 1 Chapter 5. Advanced Protocols 조미성 Applied Cryptography.
Week 4 - Wednesday.  What did we talk about last time?  RSA algorithm.
Advanced Database Course (ESED5204) Eng. Hanan Alyazji University of Palestine Software Engineering Department.
Digital Signatures, Message Digest and Authentication Week-9.
1 Needham-Schroeder A --> S: A,B, N A S --> A: {N A,B,K AB,{K AB,A} KBS } KAS A --> B:{K AB,A} KBS B --> A:{N B } KAB A --> B:{N B -1} KAB.
Using Cryptography for Network Security Common problems: –Authentication - A and B want to prove their identities to one another –Key-distribution - A.
The School of Electrical Engineering and Computer Science (EECS) CS/ECE Network Security Dr. Attila Altay Yavuz Authentication Protocols (I): Secure Handshake.
14-1 Last time Internet Application Security and Privacy Basics of cryptography Symmetric-key encryption.
1 Authenticated Key Exchange Rocky K. C. Chang 20 March 2007.
Lesson 2-18 AP Computer Science Principles
Cryptography CS 555 Topic 34: SSL/TLS.
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Cryptography Much of computer security is about keeping secrets
Outline Designing secure protocols Key exchange protocols
Topics In a confidential communication the authenticity needs to be carefully established for:
Public Key Encryption Systems
CS480 Cryptography and Information Security
Outline Designing secure protocols Basic protocols Key exchange
Handshake Protocols COEN 150.
Security Protocols Computer Security Peter Reiher April 14, 2016
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Man in the Middle Attacks
刘振 上海交通大学 计算机科学与工程系 电信群楼3-509
IT IS 6200/8200.
CS Introduction to Operating Systems
CDK4: Chapter 7 CDK5: Chapter 11 TvS: Chapter 9
Protocol ap1.0: Alice says “I am Alice”
CS2911 Week 9, Class 1 Today Discussion on RSA Video Eavesdropping
Chapter 4 Cryptography / Encryption
Protocol ap1.0: Alice says “I am Alice”
Homework #4 Solutions Brian A. LaMacchia
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
EEC 688/788 Secure and Dependable Computing
KERBEROS.
CDK: Chapter 7 TvS: Chapter 9
Secure How do you do it? Need to worry about sniffing, modifying, end-user masquerading, replaying. If sender and receiver have shared secret keys,
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Lecture 6.1: Protocols - Authentication and Key Exchange I
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Diffie/Hellman Key Exchange
Public – Private Key Cryptography
Public Key Encryption Systems
刘振 上海交通大学 计算机科学与工程系 电信群楼3-509
Security: Integrity, Authentication, Non-repudiation
Public Key Encryption Systems
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Outline Designing secure protocols Basic protocols Key exchange
Chapter 8 roadmap 8.1 What is network security?
Secure Diffie-Hellman Algorithm
Review of Cryptography: Symmetric and Asymmetric Crypto Advanced Network Security Peter Reiher August, 2014.
AIT 682: Network and Systems Security
Lecture 6.2: Protocols - Authentication and Key Exchange II
“You have zero privacy anyway, get over it”
Presentation transcript:

Key Exchange With Public Key Cryptography With no trusted arbitrator Alice sends Bob her public key Bob sends Alice his public key Alice generates a session key and sends it to Bob encrypted with his public key, signed with her private key Bob decrypts Alice’s message with his private key Encrypt session with shared session key

Basic Key Exchange Using PK KEA , KDA KEB , KDB Alice’s PK is KDA Bob’s PK is KDB EKEA(EKDB(KS)) Bob Alice EKDB(KS) KS KS Bob verifies the message came from Alice Bob extracts the key from the message

Man-in-the-Middle With Public Keys KEA , KDA KEM , KDM KEB , KDB Mallory Alice’s PK is KDA Alice’s PK is KDM Alice Bob Now Mallory can pose as Alice to Bob

And Bob Sends His Public Key KEA , KDA KEM , KDM KEB , KDB Mallory Bob’s PK is KDM Bob’s PK is KDB Alice Bob Now Mallory can pose as Bob to Alice

Alice Chooses a Session Key KEA , KDA KEM , KDM KEB , KDB EKEA (EKDM(KS)) Mallory EKEM (EKDB(KS)) KS KS KS Alice Bob Bob and Alice are sharing a session key Unfortunately, they’re also sharing it with Mallory

Combined Key Distribution and Authentication Usually the first requires the second Not much good to be sure the key is a secret if you don’t know who you’re sharing it with How can we achieve both goals? In a single protocol With relatively few messages

Needham-Schroeder Key Exchange Uses symmetric cryptography Requires a trusted authority Who takes care of generating the new key More complicated than some protocols we’ve seen

Needham-Schroeder, Step 1 KA KB RA Alice,Bob,RA Alice Bob Trent KA KB

What’s the Point of RA? RA is random number chosen by Alice for this invocation of the protocol Not used as a key, so quality of Alice’s random number generator not too important Helps defend against replay attacks This kind of random number is sometimes called a nonce

Needham-Schroeder, Step 2 KA Including RA prevents replay KB Including Bob prevents attacker from replacing Bob’s identity RA EKA(RA,Bob,KS, EKB(KS,Alice)) Alice Bob Including the encrypted message for Bob ensures Bob’s message can’t be replaced What’s all this stuff for? Trent RA KS KA KB

Needham-Schroeder, Step 3 EKB(KS,Alice) KA KB KS Alice So we’re done, right? Bob KS Wrong! Trent KA KB

Needham-Schroeder, Step 4 EKS(RB) KB KA KS KS Alice Bob RB RB Trent KA KB

Needham-Schroeder, Step 5 EKS(RB-1) KB KA KS KS Alice Bob RB RB Now we’re done! RB-1 Trent KA KB

What’s All This Extra Stuff For? Alice knows she’s talking to Bob KA KB EKA(RA,Bob,KS, EKB(KS,Alice)) Alice Bob Trent said she was Can Mallory jump in later? No, only Bob could read the key package Trent created Trent KS KA KB

What’s All This Extra Stuff For? Bob knows he’s talking to Alice EKB(KS,Alice) KA KB Trent said he was KS Alice Bob Can Mallory jump in later? What about those random numbers? No, all later messages will use KS, which Mallory doesn’t know Trent KA KB

Mallory Causes Problems Alice and Bob do something Mallory likes Mallory watches the messages they send to do so Mallory wants to make them do it again Can Mallory replay the conversation? Let’s try it without the random numbers

Mallory Waits For His Chance EKA(Bob,KS, EKB(KS,Alice)) KB KA Alice,Bob Alice Bob Mallory Trent KA KB

What Will Alice Do Now? The message could only have been created by Trent It properly indicates she wants to talk to Bob It contains a perfectly plausible key Alice will probably go ahead with the protocol

The Protocol Continues EKB(KS,Alice) KB KA Mallory KS KS Alice Bob Mallory steps aside for a bit With no nonces, we’re done Trent KA KB

So What’s the Problem? Alice and Bob agree KS is their key They both know the key Trent definitely created the key for them Nobody else has the key But . . .

Mallory Steps Back Into the Picture EKS(Old message 1) EKS(Old message 2) KB KA Mallory KS KS Alice Bob Mallory can replay Alice and Bob’s old conversation It’s using the current key, so Alice and Bob will accept it Trent KA KB

How Do the Random Numbers Help? Alice’s random number assures her that the reply from Trent is fresh But why does Bob need another random number?

Why Bob Also Needs a Random Number KB KA Mallory EKB(KS,Alice) KS Alice Bob Let’s say Alice doesn’t want to talk to Bob But Mallory wants Bob to think Alice wants to talk Trent KA KB

So What? KB KS Bob Mallory EKS(Old message 1) KS Bob Mallory can now play back an old message from Alice to Bob And Bob will have no reason to be suspicious Bob’s random number exchange assures him that Alice really wanted to talk

So, Everything’s Fine, Right? Not if any key KS ever gets divulged Once KS is divulged, Mallory can forge Alice’s response to Bob’s challenge And convince Bob that he’s talking to Alice when he’s really talking to Mallory

Mallory Cracks an Old Key EKS(RB) KB KS Mallory EKB(KS,Alice) EKS(RB - 1) RB KS Bob RB - 1 Mallory compromises 10,000 computers belonging to 10,000 grandmothers to crack KS Unfortunately, Mallory knows KS So Mallory can answer Bob’s challenge