Lecture Nov. 21 st 2006 Dan Wendlandt ISP D ISP B ISP C ISP A. Bob. Alice. Denial-of-Service. Password Cracking. Traffic.

Similar documents
Security With slides from: Debabrata Dash, Nick Feamster, Vyas Sekar, and others

UNIT - IV Cryptographic Hash Function 31.1

Computer Security. 08r. Pre-exam 2 Last-minute Review Cryptography. Paul Krzyzanowski. Rutgers University. Spring 2018

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Data Security and Privacy. Topic 14: Authentication and Key Establishment

CSE 127: Computer Security Cryptography. Kirill Levchenko

Lecture 9a: Secure Sockets Layer (SSL) March, 2004

Information Security CS 526

Encryption. INST 346, Section 0201 April 3, 2018

Kurose & Ross, Chapters (5 th ed.)

Overview. SSL Cryptography Overview CHAPTER 1

L13. Reviews. Rocky K. C. Chang, April 10, 2015

CSE 3461/5461: Introduction to Computer Networking and Internet Technologies. Network Security. Presentation L

Securing Internet Communication: TLS

David Wetherall, with some slides from Radia Perlman s security lectures.

CS Computer Networks 1: Authentication

Computer Security. 10r. Recitation assignment & concept review. Paul Krzyzanowski. Rutgers University. Spring 2018

1.264 Lecture 27. Security protocols Symmetric cryptography. Next class: Anderson chapter 10. Exercise due after class

Cryptography & Key Exchange Protocols. Faculty of Computer Science & Engineering HCMC University of Technology

ח'/סיון/תשע "א. RSA: getting ready. Public Key Cryptography. Public key cryptography. Public key encryption algorithms

Introduction and Overview. Why CSCI 454/554?

2.1 Basic Cryptography Concepts

Lecture 30. Cryptography. Symmetric Key Cryptography. Key Exchange. Advanced Encryption Standard (AES) DES. Security April 11, 2005

CSC 8560 Computer Networks: Network Security

Cryptography III. Public-Key Cryptography Digital Signatures. 2/1/18 Cryptography III

Digital Certificates Demystified

14. Internet Security (J. Kurose)

CPSC 467b: Cryptography and Computer Security

(2½ hours) Total Marks: 75

Lecture 7 - Applied Cryptography

Cryptography SSL/TLS. Network Security Workshop. 3-5 October 2017 Port Moresby, Papua New Guinea

Computer Networking. What is network security? Chapter 7: Network security. Symmetric key cryptography. The language of cryptography

CSC 774 Network Security

Network Security Chapter 8

Overview of SSL/TLS. Luke Anderson. 12 th May University Of Sydney.

0/41. Alice Who? Authentication Protocols. Andreas Zeller/Stephan Neuhaus. Lehrstuhl Softwaretechnik Universität des Saarlandes, Saarbrücken

Lecture 5: Protocols - Authentication and Key Exchange* CS 392/6813: Computer Security Fall Nitesh Saxena

SEEM4540 Open Systems for E-Commerce Lecture 03 Internet Security

9/30/2016. Cryptography Basics. Outline. Encryption/Decryption. Cryptanalysis. Caesar Cipher. Mono-Alphabetic Ciphers

Security & Privacy. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents. Erik Wilde, UC Berkeley School of

Cryptography Basics. IT443 Network Security Administration Slides courtesy of Bo Sheng

Lecture 1 Applied Cryptography (Part 1)

The question paper contains 40 multiple choice questions with four choices and students will have to pick the correct one (each carrying ½ marks.).

Protecting Information Assets - Week 11 - Cryptography, Public Key Encryption and Digital Signatures. MIS 5206 Protecting Information Assets

Chapter 8 Web Security

Internet and Intranet Protocols and Applications

1.264 Lecture 28. Cryptography: Asymmetric keys

Cryptography MIS

APNIC elearning: Cryptography Basics

CS 332 Computer Networks Security

Summary on Crypto Primitives and Protocols

CCNA Security 1.1 Instructional Resource

Introduction to Cryptography. Ramki Thurimella

Security: Cryptography

Other Uses of Cryptography. Cryptography Goals. Basic Problem and Terminology. Other Uses of Cryptography. What Can Go Wrong? Why Do We Need a Key?

Cryptography (Overview)

Cryptography Functions

Computer Security. 10. Exam 2 Review. Paul Krzyzanowski. Rutgers University. Spring 2017

Information Security. message M. fingerprint f = H(M) one-way hash. 4/19/2006 Information Security 1

Security. Communication security. System Security

COSC4377. Chapter 8 roadmap

Public-key Cryptography: Theory and Practice

CS 161 Computer Security

Basic Concepts and Definitions. CSC/ECE 574 Computer and Network Security. Outline

Key Management and Distribution

Security in ECE Systems

Verteilte Systeme (Distributed Systems)

Refresher: Applied Cryptography

CSCI 454/554 Computer and Network Security. Topic 2. Introduction to Cryptography

CS Paul Krzyzanowski

Computer Security Exam 2 Review. Paul Krzyzanowski. Rutgers University. Spring 2018

CSC/ECE 774 Advanced Network Security

CSCI 454/554 Computer and Network Security. Topic 5.2 Public Key Cryptography

Cryptographic Protocols 1

What did we talk about last time? Public key cryptography A little number theory

Security+ Guide to Network Security Fundamentals, Third Edition. Chapter 11 Basic Cryptography

Outline. Cryptography. Encryption/Decryption. Basic Concepts and Definitions. Cryptography vs. Steganography. Cryptography: the art of secret writing

CIS 4360 Secure Computer Systems Symmetric Cryptography

Distributed Systems. 26. Cryptographic Systems: An Introduction. Paul Krzyzanowski. Rutgers University. Fall 2015

BCA III Network security and Cryptography Examination-2016 Model Paper 1

Public Key Infrastructure. What can it do for you?

CS 161 Computer Security

Ref:

Security Handshake Pitfalls

CS155. Cryptography Overview

Outline. CSCI 454/554 Computer and Network Security. Introduction. Topic 5.2 Public Key Cryptography. 1. Introduction 2. RSA

Authentication Handshakes

PROTECTING CONVERSATIONS

Unit 8 Review. Secure your network! CS144, Stanford University

Cristina Nita-Rotaru. CS355: Cryptography. Lecture 17: X509. PGP. Authentication protocols. Key establishment.

Practical Aspects of Modern Cryptography

Lecture 6 - Cryptography

Security Handshake Pitfalls

Cryptographic Checksums

Security issues: Encryption algorithms. Threats Methods of attack. Secret-key Public-key Hybrid protocols. CS550: Distributed OS.

Spring 2010: CS419 Computer Security

CSC 580 Cryptography and Computer Security

Network Security. Computer Networking: A Top Down Approach Featuring the Internet, 2 nd edition. Jim Kurose, Keith Ross Addison-Wesley, July 2002.

Outline. Public Key Cryptography. Applications of Public Key Crypto. Applications (Cont d)

CS 470 Spring Security. Mike Lam, Professor. a.k.a. Why on earth do Alice and Bob need to share so many secrets?!?

Transcription:

15-441 Lecture Nov. 21 st 2006 Dan Wendlandt Worms & Viruses Phishing End-host impersonation Denial-of-Service Route Hijacks Traffic modification Spyware Trojan Horse Password Cracking IP Spoofing DNS Poisoning Traffic Eavesdropping Spam Origin as a small and cooperative network (=> largely trusted infrastructure) Global Addressing (=> every sociopath is your next-door neighbor*) Connection-less datagram service (=> can t verify source, hard to protect bandwidth) Anyone can connect (=> ANYONE can connect) Millions of hosts run nearly identical software (=> single exploit can create epidemic) Most Internet users know about as much as Senator Stevens aka the tubes guy (=> God help us all ) * Dan Geer Yes: 1) Creating a secure channel for communication (today) 2) Protecting network resources and limiting connectivity (next Tuesday) No: 1) Preventing software vulnerabilities & malware, or social engineering.! ISP A ISP B ISP C ISP D Bob 1

! Mallory Bob! ISP B ISP D ISP B ISP D ISP A ISP C ISP A ISP C Hello, I m Bob " Authentication (Who am I talking to?) Confidentiality (Is my data hidden?) Integrity (Has my data been modified?) Availability (Can I reach the destination?) ## "cryptography is about communication in the presence of adversaries." - Ron Rivest cryptography is using math and other crazy tricks to approximate magic - Unknown 441 TA ## ##$%" Tools to help us build secure communication channels that provide: 1) Authentication 2) Integrity 3) Confidentiality Using cryptography securely is not simple Designing cryptographic schemes correctly is near impossible. Today we want to give you an idea of what can be done with cryptography. Take a security course if you think you may use it in the future (e.g. 18-487) 2

%&' Requires a preshared secret between communicating parties? Symmetric Crypto: (Private key) Example: AES Yes Asymmetric Crypto: (Public key) Example: RSA No (" Motivating Example: You and a friend share a key K of L random bits, and a message M also L bits long. Scheme: You send her the xor(m,k) and then they decrypt using xor(m,k) again. Overall speed of cryptographic operations Fast Slow 1) Do you get the right message to your friend? 2) Can an adversary recover the message M? (" One-time Pad (OTP) is secure but usually impactical Key is as long at the message Keys cannot be reused (why?) Stream Ciphers: Ex: RC4, A5 In practice, two types of ciphers are used that require only constant key length: Block Ciphers: Ex: DES, AES, Blowfish (" Stream Ciphers (ex: RC4) : PRNG Pseudo-Random stream of L bits XOR Message of Length L bits = Encrypted Ciphertext Bob uses as PRNG seed, and XORs encrypted text to get the message back (just like OTP). (" Block Ciphers (ex: AES) : Block 1 Block 2 Block 3 Block 4 Round #1 Round #2 Round #n (fixed block size, e.g. 128 bits) ( Background: Hash Function Properties Consistent hash(x) always yields same result One-way given X, can t find Y s.t. hash(y) = X Collision resistant given hash(w) = Z, can t find X such that hash(x) = Z Block 1 Block 2 Block 3 Block 4 Bob breaks the ciphertext into blocks, feeds it through decryption engine using to recover the message. Message of arbitrary length Hash Fn Fixed Size Hash 3

( ($ Hash Message Authentication Code (HMAC) Step #1: creates MAC Message Hash Fn MAC You already know how to do this! (hint: think about how we showed integrity) Transmits Message & MAC Step #2 Step #3 I am Bob Hash Fn A43FF234 MAC Message Bob computes MAC with message and to verify. Why is this secure? How do properties of a hash function help us? receives the hash, computes Wrong! a hash with, and she knows the sender is Bob ($ What is Mallory overhears the hash sent by Bob, and then replays it later? ISP A ISP B ISP C ISP D A43FF234 Hello, I m Bob. Here s the hash to prove it ($ A Nonce A random bitstring used only once. sends nonce to Bob as a challenge. Bob Replies with fresh MAC result. Performs same hash with and compares results Nonce B4FE64 Nonce Hash Bob B4FE64 ($ (#)' A Nonce A random bitstring used only once. sends nonce to Bob as a challenge. Bob Replies with fresh MAC result. Nonce?!?! Confidentiality: Stream & Block Ciphers Integrity: HMAC Authentication: HMAC and Nonce Mallory If sends Mallory a nonce, she cannot compute the corresponding MAC without Questions?? Are we done? Not Really: 1) Number of keys scales as O(n 2 ) 2) How to securely share keys in the first place? 4

$ (# Instead of shared keys, each person has a key pair Bob s public key Bob s private key K B $ (# It is believed to be computationally unfeasible to derive from or to find any way to get M from (M) other than using. => can safely be made public. The keys are inverses, so: ( (m)) = m Note: We will not detail the computation that (m) entails, but rather treat these functions as black boxes with the desired properties. $ (" $ (*+ Bob s public key If we are given a message M, and a value S such that (S) = M, what can we conclude? Bob s private K B key The message must be from Bob, because it must be the case that S = (M), and only Bob has! encryption algorithm ciphertext (m) decryption algorithm plaintext message m = K B ( (m)) This gives us two primitives: Sign (M) = (M) = Signature S Verify (S, M) = test( (S) == M ) $ (* $ We can use Sign() and Verify() in a similar manner as our HMAC in symmetric schemes. Integrity: Authentication: S = Sign(M) Nonce Verify(Nonce, S) Message M Receiver must only check Verify(M, S) S = Sign(Nonce) $ ()' Confidentiality: Encrypt with Public Key of Receiver Integrity: Sign message with private key of the sender Authentication: Entity being authenticated signs a nonce with private key, signature is then verified with the public key But, these operations are computationally expensive* 5

"""", (- How do I get these keys in the first place?? Remember: Symmetric key primitives assumed and Bob had already shared a key. Asymmetric key primitives assumed knew Bob s public key. How does Andrew do this? Andrew Uses Kerberos, which relies on a Key Distribution Center (KDC) to establish shared symmetric keys. This may work with friends, but when was the last time you saw Amazon.com walking down the street? (-(, Bob need shared symmetric key. KDC: server shares different secret key with each registered user (many users), Bob know own symmetric keys, K A-KDC -KDC, for communicating with KDC. KDC K P-KDC -KDC K K P-KDC A-KDC K X-KDC K Y-KDC (-( Q: How does KDC allow Bob, to determine shared symmetric secret key to communicate with each other? knows R1 K A-KDC (A,B) KDC generates R1 K A-KDC (R1, -KDC (A,R1) ) -KDC (A,R1) Bob knows to use R1 to communicate with K A-KDC -KDC K Z-KDC and Bob communicate: using R1 as session key for shared symmetric encryption.!"( %/( Must always be online to support secure communication KDC can expose our session keys to others! Centralized trust and point of failure. In practice, the KDC model is mostly used within single organizations (e.g. Kerberos) but not more widely. Definition: Public Key Infrastructure (PKI) 1) A system in which roots of trust authoritatively bind public keys to real-world identities 2) A significant stumbling block in deploying many next generation secure Internet protocol or applications. 6

$ Certification authority (CA): binds public key to particular entity, E. An entity E registers its public key with CA. E provides proof of identity to CA. CA creates certificate binding E to its public key. Certificate contains E s public key AND the CA s signature of E s public key. Bob s identifying information Bob s public key CA generates S = Sign( ) CA private key K CA certificate = Bob s public key and signature by CA $ When wants Bob s public key: Gets Bob s certificate (Bob or elsewhere). Use CA s public key to verify the signature within Bob s certificate, then accepts public key Verify(S, ) CA public key K CA If signature is valid, use info algorithm and key value itself (not shown) Cert owner Cert issuer Valid dates Fingerprint of signature %#0%0 1 100 Used for protocols like HTTPS Special TLS socket layer between application and TCP (small changes to application). Handles confidentiality, integrity, and authentication. Uses hybrid cryptography. #"%0.1 Handshake Steps: 1) Clients and servers negotiate exact cryptographic protocols 2) Client s validate public key certificate with CA public key. 3) Client encrypt secret random value with servers key, and send it as a challenge. 4) Server decrypts, proving it has the corresponding private key. 5) This value is used to derive symmetric session keys for encryption & MACs..%0." 1) Data arrives as a stream from the application via the TLS Socket 2) The data is segmented by TLS into chunks 3) A session key is used to encrypt and MAC each chunk to form a TLS record, which includes a short header and data that is encrypted, as well as a MAC. 4) Records form a byte stream that is fed to a TCP socket for transmission. 7

1 ) Internet design and growth => security challenges Symmetric (pre-shared key, fast) and asymmetric (key pairs, slow) primitives provide: Confidentiality Integrity Authentication Hybrid Encryption leverages strengths of both. Great complexity exists in securely acquiring keys. Crypto is hard to get right, so use tools from others, don t design your own (e.g. TLS). Textbook: 8.1 8.3 Wikipedia for overview of Symmetric/Asymmetric primitives and Hash functions. OpenSSL (www.openssl.org): top-rate open source code for SSL and primitive functions. Handbook of Applied Cryptography available free online: www.cacr.math.uwaterloo.ca/hac/ 8