L-24 Security 1. Today's Lecture Internet security weaknesses Establishing secure channels (Crypto 101) Key distribution 2.

Slides:



Advertisements
Similar presentations
MAC Raushan. DES simple fiestel network 3131 PlainText Blocks 2*4=8bits 31 f f =0011 xor 0011=0000 = 0 f(r,k)=(2*r+k^2)%8 f(1,5)=(2*1+5^2)%8=3 xor 3 3.
Advertisements

Internet and Intranet Protocols and Applications Lecture 9a: Secure Sockets Layer (SSL) March, 2004 Arthur Goldberg Computer Science Department New York.
NS-H /11041 Attacks. NS-H /11042 The Definition Security is a state of well-being of information and infrastructures in which the possibility.
More on SSL/TLS. Internet security: TLS TLS is one of the more prominent internet security protocols. TLS is one of the more prominent internet security.
1 Introduction CSE 5351: Introduction to cryptography Reading assignment: Chapter 1 of Katz & Lindell.
1 Cryptography and Network Security Third Edition by William Stallings Lecturer: Dr. Saleem Al_Zoubi.
6/9/2015Madhumita. Chatterjee1 Overview of Computer Security.
Chapter 5 Cryptography Protecting principals communication in systems.
Wireless Security In wireless networks. Security and Assurance - Goals Integrity Modified only in acceptable ways Modified only by authorized people Modified.
BY MUKTADIUR RAHMAN MAY 06, 2010 INTERODUCTION TO CRYPTOGRAPHY.
Security in Wireless LAN Layla Pezeshkmehr CS 265 Fall 2003-SJSU Dr.Mark Stamp.
8-1 What is network security? Confidentiality: only sender, intended receiver should “understand” message contents m sender encrypts message m receiver.
بسم الله الرحمن الرحيم NETWORK SECURITY Done By: Saad Al-Shahrani Saeed Al-Smazarkah May 2006.
Cryptography (continued). Enabling Alice and Bob to Communicate Securely m m m Alice Eve Bob m.
L-13 Security 1. Schedule up to Midterm 2/26 No class (work on project 1, hw3) Review 3/2 Monday 4:30 pm NSH 3002 HW 3 due Midterm 3/3 Tuesday in class.
How cryptography is used to secure web services Josh Benaloh Cryptographer Microsoft Research.
Cryptography April 20, 2010 MIS 4600 – MBA © Abdou Illia.
Overview of Cryptography and Its Applications Dr. Monther Aldwairi New York Institute of Technology- Amman Campus INCS741: Cryptography.
1 CS 194: Distributed Systems Security Scott Shenker and Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences.
Network Security. Contents Security Requirements and Attacks Confidentiality with Conventional Encryption Message Authentication and Hash Functions Public-Key.
University of Calgary – CPSC 441.  The field of network security is about:  how bad guys can attack computer networks  how we can defend networks against.
Chapter 8.  Cryptography is the science of keeping information secure in terms of confidentiality and integrity.  Cryptography is also referred to as.
CPSC 441 TUTORIAL TA: FANG WANG NETWORK SECURITY.
Secure Communication with an Insecure Internet Infrastructure.
Alexander Potapov.  Authentication definition  Protocol architectures  Cryptographic properties  Freshness  Types of attack on protocols  Two-way.
Secure Communication with an Insecure Internet Infrastructure Lecture Nov. 21 st 2006 Dan Wendlandt.
Practical Techniques for Searches on Encrypted Data Yongdae Kim Written by Song, Wagner, Perrig.
Chapter 31 Network Security
CS5204 – Fall Cryptographic Security Presenter: Hamid Al-Hamadi October 13, 2009.
Tonga Institute of Higher Education Design and Analysis of Algorithms IT 254 Lecture 9: Cryptography.
CSE 486/586 CSE 486/586 Distributed Systems Security Steve Ko Computer Sciences and Engineering University at Buffalo.
L-24 Security 1. Today's Lecture Internet security weaknesses Establishing secure channels (Crypto 101) Key distribution 2.
Computer Security Tran, Van Hoai Department of Systems & Networking Faculty of Computer Science & Engineering HCMC University of Technology.
Cryptography COS 461: Computer Networks Princeton University 1.
I-4 security.
Cryptography, Authentication and Digital Signatures
How cryptography is used to secure web services Josh Benaloh Cryptographer Microsoft Research.
Security: An Overview of Cryptographic Techniques /440 With slides from: Debabrata Dash, Nick Feamster, Gregory Kesden, Vyas Sekar and others.
CS526: Information Security Prof. Sam Wagstaff September 16, 2003 Cryptography Basics.
4 th lecture.  Message to be encrypted: HELLO  Key: XMCKL H E L L O message 7 (H) 4 (E) 11 (L) 11 (L) 14 (O) message + 23 (X) 12 (M) 2 (C) 10 (K) 11.
Module 3 – Cryptography Cryptography basics Ciphers Symmetric Key Algorithms Public Key Algorithms Message Digests Digital Signatures.
Basic Cryptography 1. What is cryptography? Cryptography is a mathematical method of protecting information –Cryptography is part of, but not equal to,
Cryptography Wei Wu. Internet Threat Model Client Network Not trusted!!
Network Security David Lazăr.
Welcome to Introduction to Computer Security. Why Computer Security The past decade has seen an explosion in the concern for the security of information.
1 Security and Cryptography: basic aspects Ortal Arazi College of Engineering Dept. of Electrical & Computer Engineering The University of Tennessee.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Advanced Database Course (ESED5204) Eng. Hanan Alyazji University of Palestine Software Engineering Department.
Lecture 16: Security CDK4: Chapter 7 CDK5: Chapter 11 TvS: Chapter 9.
Introduction1-1 Data Communications and Computer Networks Chapter 6 CS 3830 Lecture 28 Omar Meqdadi Department of Computer Science and Software Engineering.
Lecture 2: Introduction to Cryptography
Cryptography 1 Crypto Cryptography 2 Crypto  Cryptology  The art and science of making and breaking “secret codes”  Cryptography  making “secret.
31.1 Chapter 31 Network Security Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Cryptography COS 461: Computer Networks Precept: 04/20/2012 Princeton University 1.
+ Security. + What is network security? confidentiality: only sender, intended receiver should “understand” message contents sender encrypts message receiver.
CPSC 441 TUTORIAL – APRIL 4, 2012 TA: MARYAM ELAHI NETWORK SECURITY.
INTRODUCTION TO COMPUTER & NETWORK SECURITY INSTRUCTOR: DANIA ALOMAR.
Network Security Celia Li Computer Science and Engineering York University.
Wired Equivalent Privacy (WEP) Chris Overcash. Contents What is WEP? What is WEP? How is it implemented? How is it implemented? Why is it insecure? Why.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Cryptographic Hash Function. A hash function H accepts a variable-length block of data as input and produces a fixed-size hash value h = H(M). The principal.
Distributed Systems Fall 2016
Distributed Systems Fall 2016
Secure Sockets Layer (SSL)
Distributed Systems Final Review (part 2) Fall 2017
Secure Communication with an Insecure Internet Infrastructure
Security through Encryption
Lecture 10: Network Security.
Presentation transcript:

L-24 Security 1

Today's Lecture Internet security weaknesses Establishing secure channels (Crypto 101) Key distribution 2

What is “Internet Security” ? Worms & Viruses Denial-of-Service DNS Poisoning Phishing Trojan Horse Traffic Eavesdropping Route Hijacks Password Cracking IP Spoofing Spam Spyware Traffic modification End-host impersonation Internet Security: Prevent bad things from happening on the internet!

Internet Design Decisions: (ie: how did we get here? ) 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)

Internet Design Decisions: (ie: how did we get here? ) 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…)

Our “Narrow” Focus Yes: 1) Creating a “secure channel” for communication Some: 2) Protecting resources and limiting connectivity No: 1) Preventing software vulnerabilities & malware, or “social engineering”.

Secure Communication with an Untrusted Infrastructure ISP A ISP D ISP C ISP B Alice Bob

What do we need for a secure communication channel? Authentication (Who am I talking to?) Confidentiality (Is my data hidden?) Integrity (Has my data been modified?) Availability (Can I reach the destination?)

Example: Eavesdropping - Message Interception (Attack on Confidentiality) ISP A ISP D ISP C ISP B Alice Bob Mallory

Example: Eavesdropping - Message Interception (Attack on Confidentiality) — Unauthorized access to information — Packet sniffers and wiretappers — Illicit copying of files and programs A B Eavesdropper slide derived from original by Nick Feamster

Eavesdropping Attack: Example tcpdump with promiscuous network interface –On a switched network, what can you see? What might the following traffic types reveal about communications? –Full IP packets with unencrypted data –Full IP packets with encrypted payloads –Just DNS lookups (and replies) slide derived from original by Nick Feamster

Authenticity Attack - Fabrication ISP A ISP D ISP C ISP B Alice Hello, I’m “Bob”

Authenticity Attack - Fabrication — Unauthorized assumption of other’s identity — Generate and distribute objects under this identity A B Masquerader: from A slide derived from original by Nick Feamster

Integrity Attack - Tampering Stop the flow of the message Delay and optionally modify the message Release the message again Alice Bob Perpetrator slide derived from original by Nick Feamster

Attack on Availability Destroy hardware (cutting fiber) or software Modify software in a subtle way Corrupt packets in transit Blatant denial of service (DoS):  Crashing the server  Overwhelm the server (use up its resource) Alice Bob slide derived from original by Nick Feamster

Example: Web access Alice wants to connect to her bank to transfer some money... Alice wants to know...  that she’s really connected to her bank.  That nobody can observe her financial data  That nobody can modify her request  That nobody can steal her money! The bank wants to know...  That Alice is really Alice (or is authorized to act for Alice)  The same privacy things that Alice wants so they don’t get sued or fined by the government. 16 Authentication Confidentiality (A mix) Integrity

Today's Lecture Internet security weaknesses Crypto 101 Key distribution 17

Cryptography As a Tool 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 )

Well... What tools do we have at hand? Hashing  e.g., SHA-1 Secret-key cryptography, aka symmetric key.  e.g., AES Public-key cryptography  e.g., RSA 19

Secret Key Cryptography Given a key k and a message m –Two functions: Encryption (E), decryption (D) –ciphertext c = E(k, m) –plaintext m = D(k, c) –Both use the same key k. 20 Bob.com Alice Hello,Bob “secure” channel knows K But... how does that help with authentication? They both have to know a pre-shared key K before they start!

Symmetric Key: Confidentiality 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. 1)Do you get the right message to your friend? 2)Can an adversary recover the message M?

Symmetric Key: Confidentiality One-time Pad (OTP) is secure but usually impractical  Key is as long at the message  Keys cannot be reused (why?) Stream Ciphers: Ex: RC4, A5 Block Ciphers: Ex: DES, AES, Blowfish In practice, two types of ciphers are used that require only constant key length:

Symmetric Key: Confidentiality Stream Ciphers (ex: RC4) PRNG Pseudo-Random stream of L bits Message of Length L bits XOR = Encrypted Ciphertext K A-B Bob uses K A-B as PRNG seed, and XORs encrypted text to get the message back (just like OTP). Alice:

Symmetric Key: Confidentiality Block 4Block 3Block 2Block 1 Round #1 Round #2 Round #n Block 1 Block Ciphers (ex: AES) K A-B Alice: Bob breaks the ciphertext into blocks, feeds it through decryption engine using K A-B to recover the message. Block 2Block 3Block 4 (fixed block size, e.g. 128 bits)

Symmetric Key: Integrity 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 Hash Fn Message of arbitrary length Fixed Size Hash

Symmetric Key: Integrity Hash Message Authentication Code (HMAC) Hash Fn Message MACMessage Alice Transmits Message & MAC Why is this secure? How do properties of a hash function help us? MAC Step #1: Alice creates MAC Step #2 Step #3 Bob computes MAC with message and K A-B to verify. K A-B

Symmetric Key: Authentication You already know how to do this! (hint: think about how we showed integrity) Hash Fn I am Bob A43FF234 Alice receives the hash, computes a hash with K A-B, and she knows the sender is Bob Wrong! K A-B

Symmetric Key: Authentication What if Mallory overhears the hash sent by Bob, and then “replays” it later? ISP A ISP D ISP C ISP B Hello, I’m Bob. Here’s the hash to “prove” it A43FF234

Symmetric Key: Authentication A “Nonce”  A random bitstring used only once. Alice sends nonce to Bob as a “challenge”. Bob Replies with “fresh” MAC result. Hash Nonce B4FE64 Bob K A-B Nonce B4FE64 Alice Performs same hash with K A-B and compares results

Symmetric Key: Authentication A “Nonce”  A random bitstring used only once. Alice sends nonce to Bob as a “challenge”. Bob Replies with “fresh” MAC result. Nonce Alice ?!?! If Alice sends Mallory a nonce, she cannot compute the corresponding MAC without K A-B Mallory

Symmetric Key Crypto Review Confidentiality: Stream & Block Ciphers Integrity: HMAC Authentication: HMAC and Nonce 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?

Asymmetric Key Crypto: Instead of shared keys, each person has a “key pair” Bob’s public key Bob’s private key KBKB K B -1 K B -1 ( K B (m) ) = m The keys are inverses, so:

Asymmetric/Public Key Crypto: Given a key k and a message m –Two functions: Encryption (E), decryption (D) –ciphertext c = E(K B, m) –plaintext m = D(K B -1, c) –Encryption and decryption use different keys! 33 Bob.com Alice Hello,Bob “secure” channel Knows K B Knows K B, K B -1 But how does Alice know that K B means “Bob”?

Asymmetric Key Crypto: It is believed to be computationally unfeasible to derive K B -1 from K B or to find any way to get M from K B (M) other than using K B -1.  K B can safely be made public. Note: We will not detail the computation that K B (m) entails, but rather treat these functions as black boxes with the desired properties. (more details in the book).

Asymmetric Key: Confidentiality ciphertext encryption algorithm decryption algorithm Bob’s public key plaintext message K B (m) Bob’s private key m = K B -1 ( K B (m) ) KBKB K B -1

Asymmetric Key: Sign & Verify The message must be from Bob, because it must be the case that S = K B -1 (M), and only Bob has K B -1 ! If we are given a message M, and a value S such that K B (S) = M, what can we conclude? This gives us two primitives: Sign (M) = K B -1 (M) = Signature S Verify (S, M) = test( K B (S) == M )

Asymmetric Key: Integrity & Authentication We can use Sign() and Verify() in a similar manner as our HMAC in symmetric schemes. Integrity: S = Sign(M)Message M Receiver must only check Verify(M, S) Authentication: Nonce S = Sign(Nonce) Verify(Nonce, S)

Asymmetric Key Review: 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*

The Great Divide Symmetric Crypto: (Private key) Example: AES Asymmetric Crypto: (Public key) Example: RSA Requires a pre- shared secret between communicating parties? Yes Overall speed of cryptographic operations Slow No Fast

Today's Lecture Internet security weaknesses Crypto 101 Key distribution (cover on Tuesday) 40