CS 6401 Security Outline Encryption Algorithms Authentication Protocols Message Integrity Protocols Key Distribution Firewalls.

Slides:



Advertisements
Similar presentations
Chapter 3 Public Key Cryptography and Message authentication.
Advertisements

Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Spring 2000CS 4611 Security Outline Encryption Algorithms Authentication Protocols Message Integrity Protocols Key Distribution Firewalls.
Internet and Intranet Protocols and Applications Lecture 9a: Secure Sockets Layer (SSL) March, 2004 Arthur Goldberg Computer Science Department New York.
SSL CS772 Fall Secure Socket layer Design Goals: SSLv2) SSL should work well with the main web protocols such as HTTP. Confidentiality is the top.
1 Network Security Outline Encryption Algorithms Authentication Protocols Message Integrity Protocols Key Distribution Firewalls.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
1 Supplement III: Security Controls What security services should network systems provide? Confidentiality Access Control Integrity Non-repudiation Authentication.
Chapter 14 From Cryptography and Network Security Fourth Edition written by William Stallings, and Lecture slides by Lawrie Brown, the Australian Defence.
Lesson Title: Introduction to Cryptography Dale R. Thompson Computer Science and Computer Engineering Dept. University of Arkansas
EEC 693/793 Special Topics in Electrical Engineering Secure and Dependable Computing Lecture 6 Wenbing Zhao Department of Electrical and Computer Engineering.
ECOMMERCE TECHNOLOGY SUMMER 2002 COPYRIGHT © 2002 MICHAEL I. SHAMOS Cryptographic Security.
Dr Alejandra Flores-Mosri Message Authentication Internet Management & Security 06 Learning outcomes At the end of this session, you should be able to:
Spring 2002CS 4611 Security Outline Encryption Algorithms Authentication Protocols Message Integrity Protocols Key Distribution Firewalls.
BY MUKTADIUR RAHMAN MAY 06, 2010 INTERODUCTION TO CRYPTOGRAPHY.
ECOMMERCE TECHNOLOGY FALL 2003 COPYRIGHT © 2003 MICHAEL I. SHAMOS Cryptography.
Cryptographic Technologies
Henric Johnson1 Chapter3 Public-Key Cryptography and Message Authentication Henric Johnson Blekinge Institute of Technology, Sweden
McGraw-Hill©The McGraw-Hill Companies, Inc., Security PART VII.
How cryptography is used to secure web services Josh Benaloh Cryptographer Microsoft Research.
EECC694 - Shaaban #1 lec #16 Spring Properties of Secure Network Communication Secrecy: Only the sender and intended receiver should be able.
Spring 2003CS 4611 Security Outline Encryption Algorithms Authentication Protocols Message Integrity Protocols Key Distribution Firewalls.
Security Outline Encryption Algorithms Authentication Protocols Message Integrity Protocols Key Distribution Firewalls.
Cryptography April 20, 2010 MIS 4600 – MBA © Abdou Illia.
Katz, Stoica F04 EE 122: (More) Network Security November 5, 2003.
1 CS 194: Distributed Systems Security Scott Shenker and Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences.
Chapter 8.  Cryptography is the science of keeping information secure in terms of confidentiality and integrity.  Cryptography is also referred to as.
1 Fluency with Information Technology Lawrence Snyder Chapter 17 Privacy & Digital Security Encryption.
CS5204 – Fall Cryptographic Security Presenter: Hamid Al-Hamadi October 13, 2009.
1 Public-Key Cryptography and Message Authentication Ola Flygt Växjö University, Sweden
INE1020: Introduction to Internet Engineering 6: Privacy and Security Issues1 Lecture 9: E-commerce & Business r E-Commerce r Security Issues m Secure.
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 23 – April 6, 2010.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Network Security (A Very Brief Introduction)
5-Sep-154/598N: Computer Networks Recap UDP: IP with port abstraction TCP: Reliable, in order, at most once semantics –Sliding Windows –Flow control: ensure.
CSS432 Network Security Textbook Ch8
Network Security. Cryptography Cryptography functions Secret key (e.g., DES) Public key (e.g., RSA) Message digest (e.g., MD5) Security services Privacy:
 This Class  Chapter 8. 2 What is network security?  Confidentiality  only sender, intended receiver should “understand” message contents.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Dr. L. Christofi1 Local & Metropolitan Area Networks ACOE322 Lecture 8 Network Security.
©The McGraw-Hill Companies, Inc., 2000© Adapted for use at JMU by Mohamed Aboutabl, 2003Mohamed Aboutabl1 1 Chapter 29 Internet Security.
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.
Cryptography Wei Wu. Internet Threat Model Client Network Not trusted!!
11-Basic Cryptography Dr. John P. Abraham Professor UTPA.
4-Jun-164/598N: Computer Networks Differentiated Services Problem with IntServ: scalability Idea: segregate packets into a small number of classes –e.g.,
Chapter 8 – Network Security Two main topics Cryptographic algorithms and mechanisms Firewalls Chapter may be hard to understand if you don’t have some.
Encryption No. 1  Seattle Pacific University Encryption: Protecting Your Data While in Transit Kevin Bolding Electrical Engineering Seattle Pacific University.
Lecture 2: Introduction to Cryptography
Security Many secure IT systems are like a house with a locked front door but with a side window open -somebody.
Lecture 18: Security Reading: Chapter 8 (Some material thanks to William Perrizo) ? CMSC 23300/33300 Computer Networks
Encryption CS110: Computer Science and the Internet.
INFORMATION SECURITY MANAGEMENT P ROTECTION M ECHANISMS - C RYPTOGRAPHY.
Group 9 Chapter 8.3 – 8.6. Public Key Algorithms  Symmetric Key Algorithms face an inherent problem  Keys must be distributed to all parties but kept.
1 Some Backgrounds on Network Security Rocky K. C. Chang 12 February 2003.
ClientServer ClientID, E(x, CHK) E(x+1, SHK), E(y, SHK) E(y+1, CHK) E(SK, SHK) Three-way handshake Authentication Protocols CHK, SHK are keys known by.
EE 122: Lecture 24 (Security) Ion Stoica December 4, 2001.
INFORMATION SECURITY MANAGEMENT P ROTECTION M ECHANISMS - C RYPTOGRAPHY.
Department of Computer Science Chapter 5 Introduction to Cryptography Semester 1.
Basics of Cryptography
Security Outline Encryption Algorithms Authentication Protocols
Security Outline Encryption Algorithms Authentication Protocols
Advanced Computer Networks
Message Digest Cryptographic checksum One-way function Relevance
Security Outline Homework 1, selected solutions Encryption Algorithms
Taxonomy of real time applications
Public-Key, Digital Signatures, Management, Security
Security Outline Encryption Algorithms Authentication Protocols
Advanced Computer Networks
Presentation transcript:

CS 6401 Security Outline Encryption Algorithms Authentication Protocols Message Integrity Protocols Key Distribution Firewalls

CS 6402 Why do we care about Security? “Toto… I have a feeling we’re not in Kansas anymore.” Dorothy, The Wizard of Oz “The art of war teaches us to rely not on the likelihood of the enemy’s not coming, but on our own readiness to receive him; not on the chance of his not attacking, but rather on the fact that we have made our position unassailable.” The Art of War, Sun Tzu There are bad guys out there who can easily take advantage of you. Reference: Cryptography and Network Security, Principles and Practice, William Stallings, Prentice Hall

CS 6403 Overview Security services in networks –Privacy: preventing unauthorized release of information –Authentication: verifying identity of the remote participant –Integrity: making sure message has not been altered Cryptography functions – building blocks for security –Privacy/Authentication Secret key (e.g., Data Encryption Standard (DES)) Public key (e.g., Rivest, Shamir and Adleman (RSA)) –Integrity Message digest/hash (e.g., Message Digest version 5 (MD5)) Security Cryptography algorithms Public key (e.g., RSA) Secret key (e.g., DES) Message digest (e.g., MD5) Security services AuthenticationPrivacyMessage integrity

CS 6404 Issues in Security Threat models –How are bad guys trying to do bad things to you? Key distribution –How do folks get their keys? Implementation and verification –How can we be sure systems are secure? Non-goal = details of crypto algorithms –We are not going to focus on proving anything about crypto algorithms See Prof. Bach

CS 6405 Crypto 101 Cryptographic algorithms determine how to generate encoded text (ciphertext) from plaintext using keys (string of bits) –Can only be decrypted by key holders Algorithms –Published and stable –Keys must be kept secret –Keys cannot be deduced –Large keys make breaking code VERY hard –Computational efficiency

CS 6406 Secret Key (DES) Plaintext Encrypt with secret key Ciphertext Plaintext Decrypt with secret key Approach: Make algorithm so complicated that none of the original structure of plaintext exists in ciphertext

CS 6407 Encrypt 64 bit blocks of plaintext with 64-bit key (56-bits + 8-bit parity) 16 rounds Initial permutation Round 1 Round 2 Round bit key Final permutation … + F L i – 1 R i – 1 R i K i L i Each Round L,R = 32 bit halves of 64 bit block K = 48 bits of 64 bit key F = combiner function + = XOR

CS 6408 Encryption steps are the same as decryption Repeat for larger messages (cipher block chaining) –IV = initialization vector = random number generated by sender Block 1 IV DES Cipher 1 Block 2 DES Block 3 DES Block 4 DES + Cipher

CS 6409 Public Key (RSA) One of the coolest algorithms ever! Encryption –ciphertext = c = m e mod n ( = public key) Decryption –Message = m = c d mod n ( = private key) M < n –Larger messages treated as concatenation of multiple n sized blocks Plaintext Encrypt with public key Ciphertext Plaintext Decrypt with private key

CS RSA contd. Choose two large prime numbers p and q (each 256 bits) Multiply p and q together to get n Choose the encryption key e, such that e and (p - 1) x (q - 1) are relatively prime. Two numbers are relatively prime if they have no common factor greater than one Compute decryption key d such that d = e -1 mod ((p - 1) x (q - 1)) Construct public key as (e, n) Construct public key as (d, n) Discard (do not disclose) original primes p and q

CS RSA contd. See example in book for applying RSA –Many others as well Remember – always encrypt with public key and decrypt with private key Security based on premise that factoring is hard –The bigger the key the harder it is to factor –The bigger the key is more computationally expensive it is to encrypt/decrypt

CS Message Digest Cryptographic checksum –a fixed length sequence of bits which is used to protect the receiver from accidental changes to the message; a cryptographic checksum protects the receiver from malicious changes to the message. One-way function –given a cryptographic checksum for a message, it is virtually impossible to figure out what message produced that checksum; it is not computationally feasible to find two messages that hash to the same cryptographic checksum. Relevance –if you are given a checksum for a message and you are able to compute exactly the same checksum for that message, then it is highly likely this message produced the checksum you were given.

CS Authentication Protocols Three-way handshake (uses secret key - eg. password) –E(m,k) = encrypt message m with key k; C/SHK = client/server handshake key; x, y = random numbers; SK = session key Client authenticates server Server authenticates client CHK = SHK

CS Trusted third party (Kerberos) –A and B share secret keys (K A, K B ) with trusted third party S –A,B =ID’s; T = timestamp; L = lifetime, K = session key ASB E (( T, L, K, B ), K A E (( A, T ), K E (( T, L, K, A ), K B ) A, B E ( T + 1, K ) E (( T, L, K, A ), K B ) A authenticated to B B authenticated to A

CS Public key authentication (using eg. RSA) B authenticated to A

CS Message Integrity Protocols Digital signature using RSA –special case of a message integrity where the code can only have been generated by one participant –compute signature with private key and verify with public key Keyed MD5 (uses MD5 and RSA) –sender: m + MD5(m + k) + E(k, private) where k = random number –receiver recovers random key using the sender’s public key applies MD5 to the concatenation of this random key message MD5 with RSA signature –sender: m + E(MD5(m), private) –receiver decrypts signature with sender’s public key compares result with MD5 checksum sent with message

CS Key Distribution – a first step How can we be sure a key belongs to the entity that purports to own it? Solution = certificates –special type of digitally signed document: “I certify that the public key in this document belongs to the entity named in this document, signed X.” –X is the name of the entity doing the certification –Only useful to the entity which knows the public key for X –Certificates themselves do not solve key distribution problem but they are a first step Certified Authority (CA) –administrative entity that issues certificates –useful only to someone that already holds the CA’s public key.

CS Key Distribution (cont) Chain of Trust –if X certifies that a certain public key belongs to Y, and Y certifies that another public key belongs to Z, then there exists a chain of certificates from X to Z –someone that wants to verify Z’s public key has to know X’s public key and follow the chain –X.509 is a standard for certificates Certificate Revocation List –Means for removing certificates –Periodically updated by CA

CS Firewalls Filter-Based Solution –Apply a set of rules to packets Look at packet headers –example of rules –default: forward or not forward? –how dynamic? Rest of the InternetLocal siteFirewall actionourhostport theirhostcomment block allowOUR_GW25 ** * * *BLASTERWe don’t trust this system Connects to our SMTP srvr

CS Proxy-Based Firewalls Problem: complex policy Example: web server Solution: proxy Design: transparent vs. classical Limitations: attacks from within Company netFirewall Web server Random external user Remote company user Internet External client External HTTP/TCP connection Proxy Firewall Internal HTTP/TCP connection Local server