SlideShare una empresa de Scribd logo
1 de 60
Descargar para leer sin conexión
1
An Introduction to Kerberos
Shumon Huque
ISC Networking & Telecommunications
University of Pennsylvania
March 19th 2003
2
What this talk is about
!  A high-level view of how Kerberos works
!  How Kerberos differs from some other
authentication systems
  SSH password auth, SSH public key auth, SSL
!  Target audience:
  LSPs, computing staff, others?
3
What this talk is not about
!  Details of Penn’s Kerberos deployment plans
  How to get PennKeys, which Kerberos enabled
applications do I need to use
!  Writing Kerberized applications
!  In-depth protocol details and packet formats
!  Number Theory & Cryptography
4
What is Kerberos?
!  Developed at M.I.T.
!  A secret key based service for providing
authentication in open networks
!  Authentication mediated by a trusted 3rd
party on the network:
  Key Distribution Center (KDC)
5
Kerberos: etymology
!  The 3-headed dog
that guards the
entrance to Hades
!  Originally, the 3
heads represented
the 3 A’s
!  But one A was work
enough!
6
7
Fluffy, the 3 headed dog, from
“Harry Potter and the Sorcerers Stone”
8
Some Kerberos benefits
!   Standards based strong authentication system
!   Wide support in various operating systems
!   Make strong authentication readily available for use
with campus computer systems
!   Prevents transmission of passwords over the network
!   Provides “single-sign-on” capability
  Only 1 password to remember
  Only need to enter it once per day (typically)
9
So, what is Authentication?
!  The act of verifying someone’s identity
!  The process by which users prove their
identity to a service
!  Doesn’t specify what a user is allowed or not
allowed to do (Authorization)
10
Password based Authentication
!  Transmit password in clear over the network
to the server
!  Main Problem
  Eavesdropping/Interception
11
Cryptographic Authentication
!  No password or secret is transferred over the
network
!  Users prove their identity to a service by
performing a cryptographic operation,usually
on a quantity supplied by the server
!  Crypto operation based on user’s secret key
12
Encryption and Decryption
!  Encryption
  Process of scrambling data using a cipher and a
key in such a way, that it’s intelligible only to the
recipient
!  Decryption
  Process of unscambling encrypted data using a
cipher and key (possibly the same key used to
encrypt the data)
13
Symmetric Key Cryptography
!  Aka, Secret Key cryptography
!  The same key is used for both encryption and
decryption operations (symmetry)
!  Examples: DES, 3-DES, AES
14
Asymmetric Key Cryptography
!   Aka Public key cryptography
!   A pair of related keys are used:
  Public and Private keys
  Private key can’t be calculated from Public key
!   Data encrypted with one can only be decrypted with
the other
!   Usually, a user publishes his public key widely
  Others use it to encrypt data intended for the user
  User decrypts using the private key (known only to him)
!   Examples: RSA
15
Communicating Parties
!  Alice and Bob
  Alice: initiator of the communication
  Think of her as the “client” or “user”
  Bob: correspondent or 2nd participant
  Think of him as the “server”
  “Alice” wants to access service “Bob”
!  Baddies:
  Eve, Trudy, Mallory
16
Simple shared-secret based
cryptographic authentication
17
Add mutual authentication
18
Problems with this scheme
!  Poor scaling properties
!  Generalizing the model for m users and n
services, requires a priori distribution of m x n
shared keys
!  Possible improvement:
  Use trusted 3rd party, with which each user and
service shares a secret key: m + n keys
  Also has important security advantages
19
Mediated Authentication
!  A trusted third party mediates the
authentication process
!  Called the Key Distribution Center (KDC)
!  Each user and service shares a secret key
with the KDC
!  KDC generates a session key, and securely
distributes it to communicating parties
!  Communicating parties prove to each other
that they know the session key
20
Mediated Authentication
!  Nomenclature:
  Ka = Master key for “alice”, shared by alice and the
KDC
  Kab = Session key shared by “alice” and “bob”
  Tb = Ticket to use “bob”
  K{data} = “data” encrypted with key “K”
21
22
Mediated Authentication
23
Mediated Authentication
24
Kerberos uses timestamps
!  Timestamps as nonce’s are used in the
mutual authentication phase of the protocol
!  This reduces the number of total messages in
the protocol
!  But it means that Kerberos requires
reasonably synchronized clocks amongst the
users of the system
25
Kerberos (almost)
26
Kerberos (roughly)
27
Needham-Schroeder Protocol
28
Kerberos (detailed)
!  Each user and service registers a secret key
with the KDC
!  Everyone trusts the KDC
  “Put all your eggs in one basket, and then watch
that basket very carefully” - Anonymous Mark
Twain
!  The user’s key is derived from a password, by
applying a hash function
!  The service key is a large random number,
and stored on the server
29
Kerberos “principal”
!  A client of the Kerberos authentication service
!  A user or a service
!  Format:
  name/instance@REALM
!  Examples:
  peggy@UPENN.EDU
  ftp/pobox.upenn.edu@UPENN.EDU
30
Kerberos without TGS
!  A simplified description of Kerberos without
the concept of a TGS (Ticket Granting
Service)
31
32
33
34
Combining 2 previous diags
!  …
35
36
Review: Kerberos Credentials
!   Ticket
  Allows user to use a service (actually authenticate to it)
  Used to securely pass the identity of the user to which the
ticket is issued between the KDC and the application server
  Kb{“alice”, Kab, lifetime}
!   Authenticator
  Proves that the user presenting the ticket is the user to
which the ticket was issued
  Proof that user knows the session key
  Prevents ticket theft from being useful
  Prevents replay attacks (timestamp encrypted with the
session key): Kab{timestamp}, in combination with a replay
cache on the server
37
Ticket Granting Service (TGS)
!  Motivation
38
39
40
Kerberos with TGS
!   Ticket Granting Service (TGS):
  A Kerberos authenticated service, that allows user to obtain
tickets for other services
  Co-located at the KDC
!   Ticket Granting Ticket (TGT):
  Ticket used to access the TGS and obtain service tickets
!   Limited-lifetime session key: TGS sessionkey
  Shared by user and the TGS
!   TGT and TGS session-key cached on Alice’s
workstation
41
TGS Benefits
!  Single Sign-on (SSO) capability
!  Limits exposure of user’s password
  Alice’s workstation can forget the password
immediately after using it in the early stages of the
protocol
  Less data encrypted with the user’s secret key
travels over the network, limiting attacker’s access
to data that could be used in an offline dictionary
attack
42
43
44
45
46
Levels of Session Protection
!   Initial Authentication only
!   Safe messages:
  Authentication of every message
  Keyed hashing with session key
!   Private messages:
  + Encryption of every message
  With session key, or mutually negotiated subsession keys
!   Note: Application can choose other methods
47
Pre-authentication
!  Kerberos 5 added pre-authentication
  Client is required to prove it’s identity to the
Kerberos AS in the first step
  By supplying an encrypted timestamp (encrypted
with users secret key)
  This prevents an active attacker being able to
easily obtain data from the KDC encrypted with
any user’s key
  Then able to mount an offline dictionary attack
48
49
Kerberos & Two-factor auth
!  In addition to a secret password, user is
required to present a physical item:
  A small electronic device: h/w authentication token
  Generates non-reusable numeric responses
!  Called 2-factor authentication, because it
requires 2 things:
  Something the user knows (password)
  Something the user has (hardware token)
50
Cross Realm Authentication
51
Hierarchy/Chain of Realms
52
Kerberos and PubKey Crypto
!  Proposed enhancements
  Public key crypto for Initial Authentication
 “PKINIT”
  Public key crypto for Cross-realm Authentication
 “PKCROSS”
53
Kerberos: summary
!  Authentication method:
  User’s enter password on local machine only
  Authenticated via central KDC once per day
  No passwords travel over the network
!  Single Sign-on (via TGS):
  KDC gives you a special “ticket”, the TGT, usually
good for rest of the day
  TGT can be used to get other service tickets
allowing user to access them (when presented
along with authenticators)
54
Advantages of Kerberos (1)
!   Passwords aren’t exposed to eavesdropping
!   Password is only typed to the local workstation
  It never travels over the network
  It is never transmitted to a remote server
!   Password guessing more difficult
!   Single Sign-on
  More convenient: only one password, entered once
  Users may be less likely to store passwords
!   Stolen tickets hard to reuse
  Need authenticator as well, which can’t be reused
!   Much easier to effectively secure a small set of
limited access machines (the KDC’s)
55
Advantages of Kerberos (2)
!   Easier to recover from host compromises
!   Centralized user account administration
56
Kerberos caveats
!   Kerberos server can impersonate anyone
!   KDC is a single point of failure
  Can have replicated KDC’s
!   KDC could be a performance bottleneck
  Everyone needs to communicate with it frequently
  Not a practical concern these days
  Having multiple KDC’s alleviates the problem
!   If local workstation is compromised, user’s password
could be stolen by a trojan horse
  Only use a desktop machine or laptop that you trust
  Use hardware token pre-authentication
57
Kerberos caveats (2)
!   Kerberos vulnerable to password guessing attacks
  Choose good passwords!
  Use hardware pre-authentication
  Hardware tokens, Smart cards etc
58
References
!   Kerberos: An Authentication Service for Open Network
Systems
  Steiner, Neuman, Schiller, 1988, Winter USENIX
!   Kerberos: An Authentication Service for Computer
Networks
  Neuman and Ts’o, IEEE Communications, Sep 1994
!   A Moron’s guide to Kerberos - Brian Tung
  http://www.isi.edu/gost/brian/security/kerberos.html
!   Designing an Authentication System: A Dialogue in
Four Scenes
  Bill Bryant, 1988
  http://web.mit.edu/kerberos/www/dialogue.html
59
References (cont)
!   RFC 1510: The Kerberos Network Authentication
Service (v5)
  Kohl and Neuman, September 1993
!   draft-ietf-krb-wg-kerberos-clarifications-03.txt
  IETF Kerberos Working Group: rfc1510 revision
!   Using Encryption for Authentication in Large Networks
of Computers
  Roger Needham, Michael D. Schroeder
  CACM, Volume 21, December 1978, pp 993-999
60
Questions or comments?
!  Shumon Huque
!  E-mail: <shuque@isc.upenn.edu>

Más contenido relacionado

La actualidad más candente

Ssl in a nutshell
Ssl in a nutshellSsl in a nutshell
Ssl in a nutshellFrank Kelly
 
Triple Data Encryption Standard (t-DES)
Triple Data Encryption Standard (t-DES) Triple Data Encryption Standard (t-DES)
Triple Data Encryption Standard (t-DES) Hardik Manocha
 
Kerberos authentication
Kerberos authenticationKerberos authentication
Kerberos authenticationSuraj Singh
 
What is SSL ? The Secure Sockets Layer (SSL) Protocol
What is SSL ? The Secure Sockets Layer (SSL) ProtocolWhat is SSL ? The Secure Sockets Layer (SSL) Protocol
What is SSL ? The Secure Sockets Layer (SSL) ProtocolMohammed Adam
 
X.509 Certificates
X.509 CertificatesX.509 Certificates
X.509 CertificatesSou Jana
 
Transport layer security (tls)
Transport layer security (tls)Transport layer security (tls)
Transport layer security (tls)Kalpesh Kalekar
 
Elliptic Curve Cryptography
Elliptic Curve CryptographyElliptic Curve Cryptography
Elliptic Curve CryptographyJorgeVillamarin5
 
Information and network security 13 playfair cipher
Information and network security 13 playfair cipherInformation and network security 13 playfair cipher
Information and network security 13 playfair cipherVaibhav Khanna
 
DomainKeys Identified Mail (DKIM).pptx
DomainKeys Identified Mail (DKIM).pptxDomainKeys Identified Mail (DKIM).pptx
DomainKeys Identified Mail (DKIM).pptxSrijanKumarShetty
 
CRYPTOGRAPHY AND NETWORK SECURITY
CRYPTOGRAPHY AND NETWORK SECURITYCRYPTOGRAPHY AND NETWORK SECURITY
CRYPTOGRAPHY AND NETWORK SECURITYKathirvel Ayyaswamy
 
An introduction to X.509 certificates
An introduction to X.509 certificatesAn introduction to X.509 certificates
An introduction to X.509 certificatesStephane Potier
 

La actualidad más candente (20)

Ssl in a nutshell
Ssl in a nutshellSsl in a nutshell
Ssl in a nutshell
 
Triple Data Encryption Standard (t-DES)
Triple Data Encryption Standard (t-DES) Triple Data Encryption Standard (t-DES)
Triple Data Encryption Standard (t-DES)
 
Kerberos authentication
Kerberos authenticationKerberos authentication
Kerberos authentication
 
What is SSL ? The Secure Sockets Layer (SSL) Protocol
What is SSL ? The Secure Sockets Layer (SSL) ProtocolWhat is SSL ? The Secure Sockets Layer (SSL) Protocol
What is SSL ? The Secure Sockets Layer (SSL) Protocol
 
Introduction to Cryptography
Introduction to CryptographyIntroduction to Cryptography
Introduction to Cryptography
 
hill cipher
hill cipherhill cipher
hill cipher
 
Kerberos
KerberosKerberos
Kerberos
 
X.509 Certificates
X.509 CertificatesX.509 Certificates
X.509 Certificates
 
Transport layer security (tls)
Transport layer security (tls)Transport layer security (tls)
Transport layer security (tls)
 
Elliptic Curve Cryptography
Elliptic Curve CryptographyElliptic Curve Cryptography
Elliptic Curve Cryptography
 
Digital signature
Digital signatureDigital signature
Digital signature
 
Public private key
Public private keyPublic private key
Public private key
 
Ch13
Ch13Ch13
Ch13
 
Information and network security 13 playfair cipher
Information and network security 13 playfair cipherInformation and network security 13 playfair cipher
Information and network security 13 playfair cipher
 
DomainKeys Identified Mail (DKIM).pptx
DomainKeys Identified Mail (DKIM).pptxDomainKeys Identified Mail (DKIM).pptx
DomainKeys Identified Mail (DKIM).pptx
 
CRYPTOGRAPHY AND NETWORK SECURITY
CRYPTOGRAPHY AND NETWORK SECURITYCRYPTOGRAPHY AND NETWORK SECURITY
CRYPTOGRAPHY AND NETWORK SECURITY
 
An introduction to X.509 certificates
An introduction to X.509 certificatesAn introduction to X.509 certificates
An introduction to X.509 certificates
 
Diffie-hellman algorithm
Diffie-hellman algorithmDiffie-hellman algorithm
Diffie-hellman algorithm
 
Elliptic curve cryptography
Elliptic curve cryptographyElliptic curve cryptography
Elliptic curve cryptography
 
Secure socket layer
Secure socket layerSecure socket layer
Secure socket layer
 

Similar a An Introduction to Kerberos

Kerberos Protocol
Kerberos ProtocolKerberos Protocol
Kerberos ProtocolNetwax Lab
 
Current standard implementations for security/authorization in distributed c...
Current standard implementations for security/authorization in distributed c...Current standard implementations for security/authorization in distributed c...
Current standard implementations for security/authorization in distributed c...Michele Orru'
 
kerb.ppt
kerb.pptkerb.ppt
kerb.pptJdQi
 
BAIT1103 Chapter 3
BAIT1103 Chapter 3BAIT1103 Chapter 3
BAIT1103 Chapter 3limsh
 
Kerberos case study
Kerberos case studyKerberos case study
Kerberos case studyMayuri Patil
 
Kerberos using public key cryptography
Kerberos using public key cryptographyKerberos using public key cryptography
Kerberos using public key cryptographyishmecse13
 
Kerberos Authentication Process In Windows
Kerberos Authentication Process In WindowsKerberos Authentication Process In Windows
Kerberos Authentication Process In Windowsniteshitimpulse
 
Towards Securing Computer Network Environment By Using Kerberos-based Network...
Towards Securing Computer Network Environment By Using Kerberos-based Network...Towards Securing Computer Network Environment By Using Kerberos-based Network...
Towards Securing Computer Network Environment By Using Kerberos-based Network...FATIN FAZAIN MOHD AFFANDI
 
Kerberos Security in Distributed Systems
Kerberos Security in Distributed SystemsKerberos Security in Distributed Systems
Kerberos Security in Distributed SystemsIRJET Journal
 
TLS/SSL - Study of Secured Communications
TLS/SSL - Study of Secured  CommunicationsTLS/SSL - Study of Secured  Communications
TLS/SSL - Study of Secured CommunicationsNitin Ramesh
 
IJSRED-V2I1P29
IJSRED-V2I1P29IJSRED-V2I1P29
IJSRED-V2I1P29IJSRED
 

Similar a An Introduction to Kerberos (20)

Kerberos Protocol
Kerberos ProtocolKerberos Protocol
Kerberos Protocol
 
Rakesh
RakeshRakesh
Rakesh
 
Rakesh
RakeshRakesh
Rakesh
 
Current standard implementations for security/authorization in distributed c...
Current standard implementations for security/authorization in distributed c...Current standard implementations for security/authorization in distributed c...
Current standard implementations for security/authorization in distributed c...
 
14 577
14 57714 577
14 577
 
CISSPills #1.02
CISSPills #1.02CISSPills #1.02
CISSPills #1.02
 
kerb.ppt
kerb.pptkerb.ppt
kerb.ppt
 
Kerberos Architecture.pptx
Kerberos Architecture.pptxKerberos Architecture.pptx
Kerberos Architecture.pptx
 
BAIT1103 Chapter 3
BAIT1103 Chapter 3BAIT1103 Chapter 3
BAIT1103 Chapter 3
 
Kerberos
KerberosKerberos
Kerberos
 
Kerberos Architecture.pptx
Kerberos Architecture.pptxKerberos Architecture.pptx
Kerberos Architecture.pptx
 
Kerberos case study
Kerberos case studyKerberos case study
Kerberos case study
 
Kerberos using public key cryptography
Kerberos using public key cryptographyKerberos using public key cryptography
Kerberos using public key cryptography
 
Kerberos Authentication Process In Windows
Kerberos Authentication Process In WindowsKerberos Authentication Process In Windows
Kerberos Authentication Process In Windows
 
Towards Securing Computer Network Environment By Using Kerberos-based Network...
Towards Securing Computer Network Environment By Using Kerberos-based Network...Towards Securing Computer Network Environment By Using Kerberos-based Network...
Towards Securing Computer Network Environment By Using Kerberos-based Network...
 
Kerberos Security in Distributed Systems
Kerberos Security in Distributed SystemsKerberos Security in Distributed Systems
Kerberos Security in Distributed Systems
 
authentication.ppt
authentication.pptauthentication.ppt
authentication.ppt
 
Kerberos IV inductive analisys
Kerberos IV inductive analisysKerberos IV inductive analisys
Kerberos IV inductive analisys
 
TLS/SSL - Study of Secured Communications
TLS/SSL - Study of Secured  CommunicationsTLS/SSL - Study of Secured  Communications
TLS/SSL - Study of Secured Communications
 
IJSRED-V2I1P29
IJSRED-V2I1P29IJSRED-V2I1P29
IJSRED-V2I1P29
 

Más de Shumon Huque

DANE and DNSSEC Authentication Chain Extension for TLS
DANE and DNSSEC Authentication Chain Extension for TLSDANE and DNSSEC Authentication Chain Extension for TLS
DANE and DNSSEC Authentication Chain Extension for TLSShumon Huque
 
Client Certificates in DANE TLSA Records
Client Certificates in DANE TLSA RecordsClient Certificates in DANE TLSA Records
Client Certificates in DANE TLSA RecordsShumon Huque
 
Query-name Minimization and Authoritative Server Behavior
Query-name Minimization and Authoritative Server BehaviorQuery-name Minimization and Authoritative Server Behavior
Query-name Minimization and Authoritative Server BehaviorShumon Huque
 
DANE and Application Uses of DNSSEC
DANE and Application Uses of DNSSECDANE and Application Uses of DNSSEC
DANE and Application Uses of DNSSECShumon Huque
 
Hands-on getdns Tutorial
Hands-on getdns TutorialHands-on getdns Tutorial
Hands-on getdns TutorialShumon Huque
 
DANE and Application Uses of DNSSEC
DANE and Application Uses of DNSSECDANE and Application Uses of DNSSEC
DANE and Application Uses of DNSSECShumon Huque
 
IPv6 Tutorial; USENIX LISA 2013
IPv6 Tutorial; USENIX LISA 2013IPv6 Tutorial; USENIX LISA 2013
IPv6 Tutorial; USENIX LISA 2013Shumon Huque
 
DNSSEC Tutorial; USENIX LISA 2013
DNSSEC Tutorial; USENIX LISA 2013DNSSEC Tutorial; USENIX LISA 2013
DNSSEC Tutorial; USENIX LISA 2013Shumon Huque
 
IPv6 Transition in Research & Education
IPv6 Transition in Research & EducationIPv6 Transition in Research & Education
IPv6 Transition in Research & EducationShumon Huque
 
Authorization at Penn
Authorization at PennAuthorization at Penn
Authorization at PennShumon Huque
 
IPv6 Deployment Panel
IPv6 Deployment PanelIPv6 Deployment Panel
IPv6 Deployment PanelShumon Huque
 
A survey of DNSSEC Deployment in the US R&E Community
A survey of DNSSEC Deployment in the US R&E CommunityA survey of DNSSEC Deployment in the US R&E Community
A survey of DNSSEC Deployment in the US R&E CommunityShumon Huque
 
World IPv6 Launch at Penn
World IPv6 Launch at PennWorld IPv6 Launch at Penn
World IPv6 Launch at PennShumon Huque
 
IPv6 Security Panel (U of Penn)
IPv6 Security Panel (U of Penn)IPv6 Security Panel (U of Penn)
IPv6 Security Panel (U of Penn)Shumon Huque
 
Open Source VoIP at Penn
Open Source VoIP at PennOpen Source VoIP at Penn
Open Source VoIP at PennShumon Huque
 
Kerberos at Penn (MIT Kerberos Consortium)
Kerberos at Penn (MIT Kerberos Consortium)Kerberos at Penn (MIT Kerberos Consortium)
Kerberos at Penn (MIT Kerberos Consortium)Shumon Huque
 
.EDU DNSSEC Testbed - Lessons Learned
.EDU DNSSEC Testbed - Lessons Learned.EDU DNSSEC Testbed - Lessons Learned
.EDU DNSSEC Testbed - Lessons LearnedShumon Huque
 
IPv6 Campus Deployment Panel
IPv6 Campus Deployment PanelIPv6 Campus Deployment Panel
IPv6 Campus Deployment PanelShumon Huque
 
.EDU DNSSEC Testbed
.EDU DNSSEC Testbed.EDU DNSSEC Testbed
.EDU DNSSEC TestbedShumon Huque
 

Más de Shumon Huque (20)

DANE and DNSSEC Authentication Chain Extension for TLS
DANE and DNSSEC Authentication Chain Extension for TLSDANE and DNSSEC Authentication Chain Extension for TLS
DANE and DNSSEC Authentication Chain Extension for TLS
 
Client Certificates in DANE TLSA Records
Client Certificates in DANE TLSA RecordsClient Certificates in DANE TLSA Records
Client Certificates in DANE TLSA Records
 
Query-name Minimization and Authoritative Server Behavior
Query-name Minimization and Authoritative Server BehaviorQuery-name Minimization and Authoritative Server Behavior
Query-name Minimization and Authoritative Server Behavior
 
DANE and Application Uses of DNSSEC
DANE and Application Uses of DNSSECDANE and Application Uses of DNSSEC
DANE and Application Uses of DNSSEC
 
Hands-on getdns Tutorial
Hands-on getdns TutorialHands-on getdns Tutorial
Hands-on getdns Tutorial
 
DANE and Application Uses of DNSSEC
DANE and Application Uses of DNSSECDANE and Application Uses of DNSSEC
DANE and Application Uses of DNSSEC
 
IPv6 Tutorial; USENIX LISA 2013
IPv6 Tutorial; USENIX LISA 2013IPv6 Tutorial; USENIX LISA 2013
IPv6 Tutorial; USENIX LISA 2013
 
DNSSEC Tutorial; USENIX LISA 2013
DNSSEC Tutorial; USENIX LISA 2013DNSSEC Tutorial; USENIX LISA 2013
DNSSEC Tutorial; USENIX LISA 2013
 
IPv6 Transition in Research & Education
IPv6 Transition in Research & EducationIPv6 Transition in Research & Education
IPv6 Transition in Research & Education
 
Authorization at Penn
Authorization at PennAuthorization at Penn
Authorization at Penn
 
IPv6 Deployment Panel
IPv6 Deployment PanelIPv6 Deployment Panel
IPv6 Deployment Panel
 
A survey of DNSSEC Deployment in the US R&E Community
A survey of DNSSEC Deployment in the US R&E CommunityA survey of DNSSEC Deployment in the US R&E Community
A survey of DNSSEC Deployment in the US R&E Community
 
World IPv6 Launch at Penn
World IPv6 Launch at PennWorld IPv6 Launch at Penn
World IPv6 Launch at Penn
 
IPv6 Security Panel (U of Penn)
IPv6 Security Panel (U of Penn)IPv6 Security Panel (U of Penn)
IPv6 Security Panel (U of Penn)
 
Open Source VoIP at Penn
Open Source VoIP at PennOpen Source VoIP at Penn
Open Source VoIP at Penn
 
Kerberos at Penn (MIT Kerberos Consortium)
Kerberos at Penn (MIT Kerberos Consortium)Kerberos at Penn (MIT Kerberos Consortium)
Kerberos at Penn (MIT Kerberos Consortium)
 
.EDU DNSSEC Testbed - Lessons Learned
.EDU DNSSEC Testbed - Lessons Learned.EDU DNSSEC Testbed - Lessons Learned
.EDU DNSSEC Testbed - Lessons Learned
 
IPv6 Campus Deployment Panel
IPv6 Campus Deployment PanelIPv6 Campus Deployment Panel
IPv6 Campus Deployment Panel
 
.EDU DNSSEC Testbed
.EDU DNSSEC Testbed.EDU DNSSEC Testbed
.EDU DNSSEC Testbed
 
DNSSEC at Penn
DNSSEC at PennDNSSEC at Penn
DNSSEC at Penn
 

Último

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Último (20)

Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

An Introduction to Kerberos

  • 1. 1 An Introduction to Kerberos Shumon Huque ISC Networking & Telecommunications University of Pennsylvania March 19th 2003
  • 2. 2 What this talk is about !  A high-level view of how Kerberos works !  How Kerberos differs from some other authentication systems   SSH password auth, SSH public key auth, SSL !  Target audience:   LSPs, computing staff, others?
  • 3. 3 What this talk is not about !  Details of Penn’s Kerberos deployment plans   How to get PennKeys, which Kerberos enabled applications do I need to use !  Writing Kerberized applications !  In-depth protocol details and packet formats !  Number Theory & Cryptography
  • 4. 4 What is Kerberos? !  Developed at M.I.T. !  A secret key based service for providing authentication in open networks !  Authentication mediated by a trusted 3rd party on the network:   Key Distribution Center (KDC)
  • 5. 5 Kerberos: etymology !  The 3-headed dog that guards the entrance to Hades !  Originally, the 3 heads represented the 3 A’s !  But one A was work enough!
  • 6. 6
  • 7. 7 Fluffy, the 3 headed dog, from “Harry Potter and the Sorcerers Stone”
  • 8. 8 Some Kerberos benefits !   Standards based strong authentication system !   Wide support in various operating systems !   Make strong authentication readily available for use with campus computer systems !   Prevents transmission of passwords over the network !   Provides “single-sign-on” capability   Only 1 password to remember   Only need to enter it once per day (typically)
  • 9. 9 So, what is Authentication? !  The act of verifying someone’s identity !  The process by which users prove their identity to a service !  Doesn’t specify what a user is allowed or not allowed to do (Authorization)
  • 10. 10 Password based Authentication !  Transmit password in clear over the network to the server !  Main Problem   Eavesdropping/Interception
  • 11. 11 Cryptographic Authentication !  No password or secret is transferred over the network !  Users prove their identity to a service by performing a cryptographic operation,usually on a quantity supplied by the server !  Crypto operation based on user’s secret key
  • 12. 12 Encryption and Decryption !  Encryption   Process of scrambling data using a cipher and a key in such a way, that it’s intelligible only to the recipient !  Decryption   Process of unscambling encrypted data using a cipher and key (possibly the same key used to encrypt the data)
  • 13. 13 Symmetric Key Cryptography !  Aka, Secret Key cryptography !  The same key is used for both encryption and decryption operations (symmetry) !  Examples: DES, 3-DES, AES
  • 14. 14 Asymmetric Key Cryptography !   Aka Public key cryptography !   A pair of related keys are used:   Public and Private keys   Private key can’t be calculated from Public key !   Data encrypted with one can only be decrypted with the other !   Usually, a user publishes his public key widely   Others use it to encrypt data intended for the user   User decrypts using the private key (known only to him) !   Examples: RSA
  • 15. 15 Communicating Parties !  Alice and Bob   Alice: initiator of the communication   Think of her as the “client” or “user”   Bob: correspondent or 2nd participant   Think of him as the “server”   “Alice” wants to access service “Bob” !  Baddies:   Eve, Trudy, Mallory
  • 18. 18 Problems with this scheme !  Poor scaling properties !  Generalizing the model for m users and n services, requires a priori distribution of m x n shared keys !  Possible improvement:   Use trusted 3rd party, with which each user and service shares a secret key: m + n keys   Also has important security advantages
  • 19. 19 Mediated Authentication !  A trusted third party mediates the authentication process !  Called the Key Distribution Center (KDC) !  Each user and service shares a secret key with the KDC !  KDC generates a session key, and securely distributes it to communicating parties !  Communicating parties prove to each other that they know the session key
  • 20. 20 Mediated Authentication !  Nomenclature:   Ka = Master key for “alice”, shared by alice and the KDC   Kab = Session key shared by “alice” and “bob”   Tb = Ticket to use “bob”   K{data} = “data” encrypted with key “K”
  • 21. 21
  • 24. 24 Kerberos uses timestamps !  Timestamps as nonce’s are used in the mutual authentication phase of the protocol !  This reduces the number of total messages in the protocol !  But it means that Kerberos requires reasonably synchronized clocks amongst the users of the system
  • 28. 28 Kerberos (detailed) !  Each user and service registers a secret key with the KDC !  Everyone trusts the KDC   “Put all your eggs in one basket, and then watch that basket very carefully” - Anonymous Mark Twain !  The user’s key is derived from a password, by applying a hash function !  The service key is a large random number, and stored on the server
  • 29. 29 Kerberos “principal” !  A client of the Kerberos authentication service !  A user or a service !  Format:   name/instance@REALM !  Examples:   peggy@UPENN.EDU   ftp/pobox.upenn.edu@UPENN.EDU
  • 30. 30 Kerberos without TGS !  A simplified description of Kerberos without the concept of a TGS (Ticket Granting Service)
  • 31. 31
  • 32. 32
  • 33. 33
  • 34. 34 Combining 2 previous diags !  …
  • 35. 35
  • 36. 36 Review: Kerberos Credentials !   Ticket   Allows user to use a service (actually authenticate to it)   Used to securely pass the identity of the user to which the ticket is issued between the KDC and the application server   Kb{“alice”, Kab, lifetime} !   Authenticator   Proves that the user presenting the ticket is the user to which the ticket was issued   Proof that user knows the session key   Prevents ticket theft from being useful   Prevents replay attacks (timestamp encrypted with the session key): Kab{timestamp}, in combination with a replay cache on the server
  • 37. 37 Ticket Granting Service (TGS) !  Motivation
  • 38. 38
  • 39. 39
  • 40. 40 Kerberos with TGS !   Ticket Granting Service (TGS):   A Kerberos authenticated service, that allows user to obtain tickets for other services   Co-located at the KDC !   Ticket Granting Ticket (TGT):   Ticket used to access the TGS and obtain service tickets !   Limited-lifetime session key: TGS sessionkey   Shared by user and the TGS !   TGT and TGS session-key cached on Alice’s workstation
  • 41. 41 TGS Benefits !  Single Sign-on (SSO) capability !  Limits exposure of user’s password   Alice’s workstation can forget the password immediately after using it in the early stages of the protocol   Less data encrypted with the user’s secret key travels over the network, limiting attacker’s access to data that could be used in an offline dictionary attack
  • 42. 42
  • 43. 43
  • 44. 44
  • 45. 45
  • 46. 46 Levels of Session Protection !   Initial Authentication only !   Safe messages:   Authentication of every message   Keyed hashing with session key !   Private messages:   + Encryption of every message   With session key, or mutually negotiated subsession keys !   Note: Application can choose other methods
  • 47. 47 Pre-authentication !  Kerberos 5 added pre-authentication   Client is required to prove it’s identity to the Kerberos AS in the first step   By supplying an encrypted timestamp (encrypted with users secret key)   This prevents an active attacker being able to easily obtain data from the KDC encrypted with any user’s key   Then able to mount an offline dictionary attack
  • 48. 48
  • 49. 49 Kerberos & Two-factor auth !  In addition to a secret password, user is required to present a physical item:   A small electronic device: h/w authentication token   Generates non-reusable numeric responses !  Called 2-factor authentication, because it requires 2 things:   Something the user knows (password)   Something the user has (hardware token)
  • 52. 52 Kerberos and PubKey Crypto !  Proposed enhancements   Public key crypto for Initial Authentication  “PKINIT”   Public key crypto for Cross-realm Authentication  “PKCROSS”
  • 53. 53 Kerberos: summary !  Authentication method:   User’s enter password on local machine only   Authenticated via central KDC once per day   No passwords travel over the network !  Single Sign-on (via TGS):   KDC gives you a special “ticket”, the TGT, usually good for rest of the day   TGT can be used to get other service tickets allowing user to access them (when presented along with authenticators)
  • 54. 54 Advantages of Kerberos (1) !   Passwords aren’t exposed to eavesdropping !   Password is only typed to the local workstation   It never travels over the network   It is never transmitted to a remote server !   Password guessing more difficult !   Single Sign-on   More convenient: only one password, entered once   Users may be less likely to store passwords !   Stolen tickets hard to reuse   Need authenticator as well, which can’t be reused !   Much easier to effectively secure a small set of limited access machines (the KDC’s)
  • 55. 55 Advantages of Kerberos (2) !   Easier to recover from host compromises !   Centralized user account administration
  • 56. 56 Kerberos caveats !   Kerberos server can impersonate anyone !   KDC is a single point of failure   Can have replicated KDC’s !   KDC could be a performance bottleneck   Everyone needs to communicate with it frequently   Not a practical concern these days   Having multiple KDC’s alleviates the problem !   If local workstation is compromised, user’s password could be stolen by a trojan horse   Only use a desktop machine or laptop that you trust   Use hardware token pre-authentication
  • 57. 57 Kerberos caveats (2) !   Kerberos vulnerable to password guessing attacks   Choose good passwords!   Use hardware pre-authentication   Hardware tokens, Smart cards etc
  • 58. 58 References !   Kerberos: An Authentication Service for Open Network Systems   Steiner, Neuman, Schiller, 1988, Winter USENIX !   Kerberos: An Authentication Service for Computer Networks   Neuman and Ts’o, IEEE Communications, Sep 1994 !   A Moron’s guide to Kerberos - Brian Tung   http://www.isi.edu/gost/brian/security/kerberos.html !   Designing an Authentication System: A Dialogue in Four Scenes   Bill Bryant, 1988   http://web.mit.edu/kerberos/www/dialogue.html
  • 59. 59 References (cont) !   RFC 1510: The Kerberos Network Authentication Service (v5)   Kohl and Neuman, September 1993 !   draft-ietf-krb-wg-kerberos-clarifications-03.txt   IETF Kerberos Working Group: rfc1510 revision !   Using Encryption for Authentication in Large Networks of Computers   Roger Needham, Michael D. Schroeder   CACM, Volume 21, December 1978, pp 993-999
  • 60. 60 Questions or comments? !  Shumon Huque !  E-mail: <shuque@isc.upenn.edu>