An Introduction to Distributed Security Concepts and Public Key Infrastructure (PKI) Mary Thompson, Oleg Kolesnikov Berkeley National Laboratory, 1 Cyclotron.

Slides:



Advertisements
Similar presentations
Chapter 14 – Authentication Applications
Advertisements

Authentication Applications. will consider authentication functions will consider authentication functions developed to support application-level authentication.
An Introduction to Distributed Security Concepts and Public Key Infrastructure (PKI) Mary Thompson.
Public Key Infrastructure A Quick Look Inside PKI Technology Investigation Center 3/27/2002.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Grid Computing, B. Wilkinson, 20045a.1 Security Continued.
Internet and Intranet Protocols and Applications Lecture 9a: Secure Sockets Layer (SSL) March, 2004 Arthur Goldberg Computer Science Department New York.
1 Lecture 17: SSL/TLS history, architecture basic handshake session initiation/resumption key computation negotiating cipher suites application: SET.
Cryptography and Network Security
Kerberized Credential Translation Olga Kornievskaia Peter Honeyman Bill Doster Kevin Coffman Center for Information Technology Integration University of.
Socket Layer Security. In this Presentation: need for web security SSL/TLS transport layer security protocols HTTPS secure shell (SSH)
An Introduction to Secure Sockets Layer (SSL). Overview Types of encryption SSL History Design Goals Protocol Problems Competing Technologies.
COMP043-Cryptology Week 4 – Certs and Sigs. Digital Signatures Digital signatures provide –Integrity –Authenticity and –Non-repudiation How do they work?
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
Computer Security: Principles and Practice EECS710: Information Security Professor Hossein Saiedian Fall 2014 Chapter 23: Internet Authentication Applications.
Chapter 14 From Cryptography and Network Security Fourth Edition written by William Stallings, and Lecture slides by Lawrie Brown, the Australian Defence.
Web Security CS-431. HTTP Authentication Protect web content from those who don’t have a “need to know” Require users to authenticate using a userid/password.
Lecture 23 Internet Authentication Applications
1 Pertemuan 12 Authentication, Encryption, Digital Payments, and Digital Money Matakuliah: M0284/Teknologi & Infrastruktur E-Business Tahun: 2005 Versi:
Public Key Infrastructure (PKI) Providing secure communications and authentication over an open network.
Mar 12, 2002Mårten Trolin1 This lecture Diffie-Hellman key agreement Authentication Certificates Certificate Authorities SSL/TLS.
An Introduction to Distributed Security Concepts and Public Key Infrastructure (PKI) Mary Thompson Oleg Kolesnikov.
An Introduction to Security Concepts and Public Key Infrastructure (PKI) Mary Thompson.
Cryptography and Network Security Chapter 17
Introduction to PKI Seminar What is PKI? Robert Brentrup July 13, 2004.
Copyright © Clifford Neuman - UNIVERSITY OF SOUTHERN CALIFORNIA - INFORMATION SCIENCES INSTITUTE CSci530: Computer Security Systems Authentication.
Topic 11: Key Distribution and Agreement 1 Information Security CS 526 Topic 11: Key Distribution & Agreement, Secure Communication.
Introduction to Public Key Infrastructure (PKI) Office of Information Security The University of Texas at Brownsville & Texas Southmost College.
Chapter 8 Web Security.
TrustPort Public Key Infrastructure. Keep It Secure Table of contents  Security of electronic communications  Using asymmetric cryptography.
Digital Signature Xiaoyan Guo/ Xiaohang Luo/
JSSE API University of Palestine Eng. Wisam Zaqoot April 2010.
CSCI 6962: Server-side Design and Programming
Part Two Network Security Applications Chapter 4 Key Distribution and User Authentication.
SYSTEM ADMINISTRATION Chapter 13 Security Protocols.
Principles of Computer Security: CompTIA Security + ® and Beyond, Third Edition © 2012 Principles of Computer Security: CompTIA Security+ ® and Beyond,
Secure Socket Layer (SSL)
SSL / TLS in ITDS Arun Vishwanathan 23 rd Dec 2003.
Lecture 23 Internet Authentication Applications modified from slides of Lawrie Brown.
Behzad Akbari Spring 2012 (These slides are based on lecture slides by Lawrie Brown)
Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 22 – Internet Authentication.
Introduction to Secure Sockets Layer (SSL) Protocol Based on:
Unit 1: Protection and Security for Grid Computing Part 2
Chapter 23 Internet Authentication Applications Kerberos Overview Initially developed at MIT Software utility available in both the public domain and.
Cryptography and Network Security (CS435) Part Fourteen (Web Security)
Certificate-Based Operations. Module Objectives By the end of this module participants will be able to: Define how cryptography is used to secure information.
Web Security : Secure Socket Layer Secure Electronic Transaction.
Chapter 21 Distributed System Security Copyright © 2008.
1 SSL - Secure Sockets Layer The Internet Engineering Task Force (IETF) standard called Transport Layer Security (TLS) is based on SSL.
Authentication 3: On The Internet. 2 Readings URL attacks
X.509 Topics PGP S/MIME Kerberos. Directory Authentication Framework X.509 is part of the ISO X.500 directory standard. used by S/MIME, SSL, IPSec, and.
Washington System Center © 2005 IBM Corporation August 25, 2005 RDS Training Secure Socket Layer (SSL) Overview z/Series Security (Mary Sweat, Greg Boyd)
Cryptography and Network Security Chapter 14 Fourth Edition by William Stallings Lecture slides by Lawrie Brown.
Security fundamentals Topic 5 Using a Public Key Infrastructure.
CPS Computer Security Tutorial on Creating Certificates SSH Kerberos CPS 290Page 1.
Pertemuan #8 Key Management Kuliah Pengaman Jaringan.
Cryptography CSS 329 Lecture 13:SSL.
Web Security CS-431.
Computer Communication & Networks
Cryptography and Network Security
Secure Sockets Layer (SSL)
Tutorial on Creating Certificates SSH Kerberos
The Secure Sockets Layer (SSL) Protocol
Cryptography and Network Security
Presentation transcript:

An Introduction to Distributed Security Concepts and Public Key Infrastructure (PKI) Mary Thompson, Oleg Kolesnikov Berkeley National Laboratory, 1 Cyclotron Rd, Berkeley, CA 94720

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Local Computing l User sits down in front of the computer l Responds to the login prompt with a user id and password. l Machine has a list of all the users and their encrypted passwords l Password never goes across the network l Passwords are encrypted with a one-way code l The crypt alogrithm of Unix has been around since mid 70’s. Uses a salt to keep identical passwords from having the same encryption. Uses only 8 characters, case sensitive. Uses 25 iterations of DES. l Typically broken by guessing and verifying guess or snooping the password.

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Remote Access Computing l User logs in to one or more remote machine(s) l Each machine has its own copy of userid and password for each user n Changing a password on one machine does not affect the other machines n Each time a user connects to a different machine, she must login again l In the standard Unix login or rsh commands, the user’s password is sent in clear text over the network or else hosts trust users on the basis of their IP addresses l Ssh n encrypts the password before sending it n or uses a user’s key pair for establishing her identity

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Single Domain Remote Access Computing l User gets access to many machines in a single administrative domain. l He has a single userid and password for all the machines l Can login just once to a central trusted server l Examples n Kerberos freeware from MIT Project Athena n NIS - Sun software with remote access comands

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Kerberos l User - password based authentication based on late-70’s Needham -Schroeder algorithms. l Kerberos Authentication Server aka KDC (Key Distribution Center) shares long-term secret (password) with each authorized user. l User logs in and established a short term session key with the AS which can be used to establish his identity with other entities, e.g. file system, other hosts or services each of which trusts the authority server. l The authorization mechanism needs to be integrated with the each function, e.g. file access, login, telnet, ftp,... l The central server is a single point of vulnerablity to attack and failure. l Been in use for 20 years. We are now at version 5.

M.Thompson, O.Kolesnikov, Berkeley National Laboratory NIS l Central server has all the user ids and passwords, don’t need to store passwords locally. l Facilitates the same user id and passwords on all machines on a network l Then rlogin and rsh allow the user to have access to all the hosts in the hosts.equiv and.rhost files l No real security, depends IP addresses l Integrated with NFS to allow access to NFS files from any host to which they are exported.

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Cross Domain Authentication l Holy Grail is to allow a user to login in once and get access to a ticket that will identify him to all machines on which he is allowed to run. l Kerberos supports cross realm authentication, but it is politically difficult to achieve. Used for multiple AFS/DFS cells within a single institution. CMU, DOE weapons labs l X.509 Identity certificates. An IETF standard. Contains a multi-part unique name and a public key. The legitimate owner of the certificate has the matching private key.

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Motivation for Universal Identity certificate l Distributed computing environments, collaborative research environments l Resources, stakeholders and users are all distributed l Spanning organizational as well as geographical boundaries, e.g., DOE Collaboratories l Requires a flexible but secure way to identify users l Requires a flexible and secure way to identify stakeholders

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Security Levels l Confidentiality n Protection from disclosure to unauthorized persons l Integrity n Maintaining data consistency l Authentication n Assurance of identity of person or originator of data l Non-repudiation n Originator of communications can't deny it later - requires long- term of keys l Authorization n Identity combined with an access policy grants the rights to perform some action

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Security Building Blocks l Encryption provides n confidentiality, can provide authentication and integrity protection l Checksums/hash algorithms provide n integrity protection, can provide authentication l Digital signatures provide n authentication, integrity protection, and non-repudiation

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Keys l Symetric Keys n Both parties share the same secret key n Problem is securely distributing the key n DES - 56 bit key considered unsafe for financial purposes since 1998 n 3 DES uses three DES keys l Public/Private keys n One key is the mathematical inverse of the other n Private keys are known only to the owner n Public key are stored in public servers, usually in a X.509 certificate. n RSA (patent expires Sept 2000), Diffie-Hellman, DSA

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Hash Algorithms l Reduce variable-length input to fixed-length (128 or 160bit) output l Requirements n Can't deduce input from output n Can't generate a given output n Can't find two inputs which produce the same output l Used to n Produce fixed-length fingerprint of arbitrary-length data n Produce data checksums to enable detection of modifications n Distill passwords down to fixed-length encryption keys l Also called message digests or fingerprints

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Message Authentication Code MAC l Hash algorithm + key to make hash value dependant on the key l Most common form is HMAC (hash MAC) n hash( key, hash( key, data )) l Key affects both start and end of hashing process l Naming: hash + key = HMAC-hash MD5 1 HMAC-MD5 SHA-1 1 HMAC-SHA (recommended)

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Digital Signatures l Combines a hash with a digital signature algorithm l To sign n hash the data n encrypt the hash with the sender's private key n send data signer’s name and signature l To verify n hash the data n find the sender’s public key n decrypt the signature with the sender's public key n the result of which should match the hash

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Elements of PKI l Certificate Authorities (CA) n OpenSSL, Netscape, Verisign, Entrust, RSA Keon l Public/Private Key Pairs - Key management l x.509 Identity Certificates - Certificate management l LDAP servers

M.Thompson, O.Kolesnikov, Berkeley National Laboratory X.509 Identity Certificates l Distinguished Name of user n C=US, O=Lawrence Berkely National Laboratory, OU=DSD, CN=Mary R. Thompson l DN of Issuer n C=US, O=Lawrence Berkely National Laboratory, CN=LBNL-CA l Validity dates: n Not before, Not after l User's public key l V3- extensions l Signed by CA l Defined in ANS1 notation - language independent

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Certificate Authority l A trusted third party - must be a secure server l Signs and publishes X.509 Identity certificates l Revokes certificates and publishes a Certification Revocation List (CRL) l Many vendors n OpenSSL - open source, very simple n Netscape - free for limited number of certificates n Entrust - Can be run by enterprise or by Entrust n Verisign - Run by Verisign under contract to enterprise n RSA Security - Keon servers

M.Thompson, O.Kolesnikov, Berkeley National Laboratory LDAP server l Lightweight Directory Access Protocol (IETF standard) n Evolved from DAP and X.500 Identities l Used by CA's to store user's Identity Certificate l Open source implementations l Standard protocol for lookup, entry, etc. l Access control is implemented by user, password.

M.Thompson, O.Kolesnikov, Berkeley National Laboratory SSL / TLS l SSLv3.1 = TLS v1.0; NB: WTLS -- TLS for Wireless Links l Works over TCP; Application Independent. SSL/TLS allows client/server apps to communicate via a protected channel. l Common example -- HTTP over SSL/TLS, e.g.

M.Thompson, O.Kolesnikov, Berkeley National Laboratory SSL Handshake l When you type browser initiates a new SSL/TLS connection. l For the new connection SSL Handshake must be performed which will: : Negotiate the cipher suite : Authenticate the server to the client [optional] : Use public-key algorithms to establish a shared session key : Authenticate the client to the server [optional]

M.Thompson, O.Kolesnikov, Berkeley National Laboratory SSL Handshake details l Client hello: : Client’s challenge, client’s nonce : Available cipher suites (e.g. DSA/RSA; Triple-DES/IDEA; SHA-1/MD5 et al.) l Server hello: : Server’s certificate, server’s nonce : Session ID : Selected cipher suite l Server adapts to client capabilities l Optional certificate exchange to authenticate server/client : Usually only server authentication is used

M.Thompson, O.Kolesnikov, Berkeley National Laboratory SSL Handshake completed l After the Handshake is completed, SSL session begins l Application Data can be transmitted using the established SSL connection / session l Example of Application Data: HEAD /index.html HTTP/1.1 HTTP/ OK Date: Wed, 11 Jul :15:47 GMT […] Content-Type: text/html

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Status l Single purpose CA’s e.g. Globus (SSLeay) Collaboratory, DOE-Grid (Netscape) l Enterprises slow to run CA’s n Many different Vendors - Verisign, Entrust, Netscape, RSA Security Keon n Incompatible Key and Certificate management between vendors n Certificates are not integrated with existing applications that need authorization n Large amount of corporate overhead in running a CA n Uncertain legal implications of issuing certificates l Lab is currently looking at the RSA Keon server as it has integration with ssh and NIS authorization

M.Thompson, O.Kolesnikov, Berkeley National Laboratory Public Key Cryptography Standards - PKCS l PKCS 7 n Cryptographic Message Syntax Standard l PKCS 10 n Certification Request Syntax Standard - used by Netscape browser, IE, and SSL libraries l PKCS 11 n Cryptographic Token Interface Standard - An API for signing and verifying data by a device that holds the key l PKCS 12 n Personal Information Exchange Syntax Standard - file format for storing certificate and private key - used to move private information between browsers

M.Thompson, O.Kolesnikov, Berkeley National Laboratory References l Peter Guttman's tutorial n about 500 slides covering cryptography, secure connection protocols, PKI, politics and more. l RSA Laboratories PKCS specifications n l SSL/TLS n TLS v 1.0 RFC - n SSL-v3 n OpenSSL