Top Banner
Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2
33

Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Dec 17, 2015

Download

Documents

Lee Francis
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Kerberos Part 1

CNS 4650Fall 2004

Rev. 2

Page 2: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

The Name

• Greek Mythology• Cerberus

• Gatekeeper of Hates• Only allowed in dead• Prevented dead from

leaving

• Spelling different so there is no confusion

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 3: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Time Share Computing

• One large computer

• Account information in one location

• NO encryption (dumb terminals)

• No shared media for communication• Dedicated serial lines

• No need to trust (since admin owns everything)

Page 4: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Time Share Computing

Page 5: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Client/Server

• Shared medium (network)

• Nodes can be unknown

• Power shifted from administrators to users

• Trust no one, admin know only controls half

Page 6: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Client/Server

Page 7: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Project Athena

• May 1983• 5 year charter of a consortium of

computer vendors• Notable technologies from Athena

• Kerberos• X Windows• Hesiod name service• Moira distributed network administration

Page 8: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Basic of Kerberos

• Secure

• Single-sign-on

• Trusted third party

• Mutual authentication

Page 9: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

What happened to version 1, 2, 3?

• Used internally by MIT

• Never released into the wild

• Various limitations

• Mostly for testing

Page 10: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Three A’s

• Authentication

• Authorization

• Auditing

Page 11: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Authentication

• Process of verifying the identity of a user.• User is required to give information

• Factors of authentication• What the user knows• What the users has• What the user is

Page 12: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Example: Drivers License

• Authentication is that it is issued from an authoritative source• State• Country

• Your Picture

QuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.

Page 13: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

What the User Knows

• Most common

• Secret password• User defined password• Random password

Page 14: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

What the User Has

• Less common

• Some type of device• RSA SecurID

• Randomly generates key• Key matches key on authentication server

• Smart Cards

QuickTime™ and aTIFF (Uncompressed) decompressor

are needed to see this picture.

Page 15: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

What the User Is

• Less common

• Biometrics• Fingerprint scanning• Retina scanning• Voiceprint recognition• Face recognition

Page 16: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Authorization

• Granting or denying access to specific resources based on identity

• Access Control Lists• Authorization is dependent on solid

authentication!• NFS

• Server trusts client, user “authenticated” by UID• Easy to spoof, ACLs are almost worthless

Page 17: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Example: Drivers License

• Authorization is what you have rights to drive• Standard• Commercial • Motorcycle• Etc.

Page 18: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Auditing

• Records authentication and authorization

• Reactive system (does not stop attacks, just records them ;-)

Page 19: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Privacy and Integrity

• Encryption• Protect data from unwanted parties

• Message Integrity• Ensure the message was not tampered

• MD5• SHA1• CRC-32

Page 20: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Terminology

• Realms, Principles, Instances

• Keys, Salts, Passwords

• Key Distribution Center

• Tickets

Page 21: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Realms, Principles, Instances

• Realms• Administrative control unique to each

Kerberos installation• Convention is DNS domain in uppercase

• REALM.ORG• EXAMPLE.COM

• Realm names are case sensititive

Page 22: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Realms, Principles, Instances

• Principles• Every user and service has a principle• Every principle has a long term key associated

with it• Password or passphrase

• Global unique name• User or service name combined with realm name• Three components

• [username].[optional instance]@[realm] (Kerberos 4)• [component]/[component]/[component]/…@[realm]

(Kerberos 5)

Page 23: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Realms, Principles, Instances

• Principles• Kerberos 4 Examples

[email protected][email protected][email protected]

• Kerberos 5 Examples• [email protected]• dsinema/[email protected]• smb/[email protected]• smb/server.differentrealm.org/REALM.ORG

Page 24: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Realms, Principles, Instances

• Instances• Used in two situations

• Service principles• Special principles for administrative purposes

• Example• Admins can have two principles

• One for day to day ([email protected])• One for administrative tasks

(dsinema/[email protected])

Page 25: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Keys, Salts, Passwords

• Keys• Are shared between at least two parties

• End user, service, or KDC

• String2key converts password to encryption key

• Salt is added before password is hashed• Kerberos 5 default “salt” is realm name

Page 26: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

The Key Distribution Center (KDC)

• Three components• Principle database• Authentication server• Ticket Granting Server

Page 27: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

The Key Distribution Center (KDC)

• Principle Database• Stores principles and associated keys• Stores other information

• Password lifetimes• Last password change

• MIT stores in lightweight database

Page 28: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

The Key Distribution Center (KDC)

• Authentication Server• Issues Ticket Granting Ticket (TGT)

• Passwords never cross wire• TGT encrypted with users password• TGT can then be used to request service

tickets• TGT provides “single-sign-on”

Page 29: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

The Key Distribution Center (KDC)

Page 30: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

The Key Distribution Center (KDC)

• Ticket Granting Server (TGS)• Takes two pieces of data

• Principle name of service requested• Users Ticket Granting Ticket (TGT)

• TGS verifies TGT, then issues a service ticket to the user

Page 31: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Tickets

• Encrypted data structure• Requesting principle name• Service principle name• Ticket lifetime• IP Addresses the ticket can be used from• Session key (shared secret) for

user/service communication

Page 32: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Tickets

• Service Tickets• User requests from TGS• Session Key for communication• Data encrypted with service key, which

contains the Session key• All is encrypted with user key

Page 33: Kerberos Part 1 CNS 4650 Fall 2004 Rev. 2. The Name Greek Mythology Cerberus Gatekeeper of Hates Only allowed in dead Prevented dead from leaving Spelling.

Tickets