SlideShare a Scribd company logo
1 of 15
Download to read offline
Kerberos
Luis Belloch Gómez
SSD - Febrero 2010
Kerberos es un protocolo de Autenticación.


Creado por Miller, Neuman, Schiller y Saltzer
para el proyecto Athena del MIT, en los años
80.


Basado en el protocolo Needham-Schroeder.
The Kerberos Authentication System uses a
series of encrypted messages to prove to a
verifier that a client is running on behalf of a
particular user.
Kerberos is a distributed authentication
service that allows a process (a client) running
on behalf of a principal (a user) to prove its
identity to a verifier (an application server, or
just server) without sending data across the
network that might allow an attacker or the
verifier to subsequently impersonate the
principal.
exp
                 1.         Kerberos
            1         Kc (Kc,v , v, texp , n)
                                 c     client
    C           AS
                 1.
                 1.   c, (T
                                  as auth. server (kdc)
                            Kerberos
                            Kerberos
                      K v, texp), = K verifier t )
                                  v
                                  n    (K , c, (server)
            2           v    c,v v c,v            exp


3       4           Kc (Kc,v , v, texp , n)
                1 c, v, Paso 3
                    c, v,ttexp ,,n
                 1.1.       exp n
                    Kv (Tc,v ) = Kv (Kc,v , c, texp )
    V           2 Kcc(Kc,v ,,v, ttexp,,n)
                    K (Kc,v v, exp n)
                    Kc,v (ts, ck, Ks )
                 1.1. vv(Tc,v))) = 3 vv(Kc,v ,,c, ttexp))
                    K (Tc,v = K (Kc,v c, exp
                    K Paso K
                    Kv (Tc,v

                3 Kc,v (ts, ck, Ks )
                 1.1. Paso 3
                 1.1. Paso 3
                 1.2. Paso 4
                      Kv (Tc,v )
                      Kc,v (ts, ck, Kss))
                       Kc,v (ts, ck, K
                4     ts, Kc,v
                      Kv (Tc,v ))
                      Kv (Tc,v
exp
                 1.         Kerberos
            1         Kc (Kc,v , v, texp , n)
                                 c     client
    C           AS
                 1.
                 1.   c, (T
                                  as auth. server (kdc)
                            Kerberos
                            Kerberos
                      K v, texp), = K verifier t )
                                  v
                                  n    (K , c, (server)
            2           v    c,v v c,v            exp


3       4           Kc (Kc,v , v, texp , n)
                1 c, v, Paso 3
                    c, v,ttexp ,,n
                 1.1.       exp n
                    Kv (Tc,v ) = Kv (Kc,v , c, texp )
    V           2 Kcc(Kc,v ,,v, ttexp,,n)
                    K (Kc,v v, exp n)
                    Kc,v (ts, ck, Ks )
                     ticket

                 1.1. vv(Tc,v))) = 3 vv(Kc,v ,,c, ttexp))
                    K (Tc,v = K (Kc,v c, exp
                    K Paso K
                    Kv (Tc,v

                3 Kc,v (ts, ck, Ks )
                 1.1. Paso 3
                 1.1. Paso 3
                 1.2. Paso 4
                      Kv (Tc,v )
                      Kc,v (ts, ck, Kss))
                       Kc,v (ts, ck, K
                4     ts, Kc,v
                      Kv (Tc,v ))
                      Kv (Tc,v
exp
                 1.         Kerberos
            1         Kc (Kc,v , v, texp , n)
                                 c     client
    C           AS
                 1.
                 1.   c, (T
                                  as auth. server (kdc)
                            Kerberos
                            Kerberos
                      K v, texp), = K verifier t )
                                  v
                                  n    (K , c, (server)
            2           v    c,v v c,v            exp


3       4           Kc (Kc,v , v, texp , n)
                1 c, v, Paso 3
                    c, v,ttexp ,,n
                 1.1.       exp n
                    Kv (Tc,v )key Kv (Kc,v , c, texp )
                      session =

    V           2 Kcc(Kc,v ,,v, ttexp,,n)
                    K (Kc,v v, exp n)
                    Kc,v (ts, ck, Ks )session key
                     ticket

                 1.1. vv(Tc,v))) = 3 vv(Kc,v ,,c, ttexp))
                    K (Tc,v = K (Kc,v c, exp
                    K Paso K
                    Kv (Tc,v

                3 Kc,v (ts, ck, Ks )
                 1.1. Paso 3
                 1.1. Paso 3
                 1.2. Paso 4
                      Kv (Tc,v )
                      Kc,v (ts, ck, Kss))
                       Kc,v (ts, ck, K
                4     ts, Kc,v
                      Kv (Tc,v ))
                      Kv (Tc,v
exp
                 1.         Kerberos
            1         Kc (Kc,v , v, texp , n)
                                 c     client
    C           AS
                 1.
                 1.   c, (T
                                  as auth. server (kdc)
                            Kerberos
                            Kerberos
                      K v, texp), = K verifier t )
                                  v
                                  n    (K , c, (server)
            2           v    c,v v c,v            exp


3       4           Kc (Kc,v , v, texp , n)
                1 c, v, Paso 3
                    c, v,ttexp ,,n
                 1.1.       exp n
                    Kv (Tc,v )key Kv (Kc,v , c, texp )
                      session =

    V           2 Kcc(Kc,v ,,v, ttexp,,n)
                    K (Kc,v v, exp n)
                    Kc,v (ts, ck, Ks )session key
                     ticket

                 1.1. vv(Tc,v))) = 3 vv(Kc,v ,,c, ttexp))
                    K (Tc,v = K (Kc,v c, exp
                    K Paso K
                    Kv (Tc,v
                      authenticator

                3 Kc,v (ts, ck, Ks )
                 1.1. Paso 3
                 1.1. Paso 3
                 1.2. Paso 4
                      Kv (Tc,v )
                      Kc,v (ts, ck, Kss))
                       Kc,v (ts, ck, K
                4     ts, Kc,v
                      Kv (Tc,v ))
                      Kv (Tc,v
Ktgs (Tc,tgs ) texp , n)
                                   Kc (Kc,tgs , tgs,
                                1.2. tgs, ttexp,,)n4
                                          Paso
                                1 Ktgs (Tc,tgs n
                                   c, tgs, exp
             1
             solo la
                          AS       c, t , n
                                   v, c,tgs (ts, ..)
                                   K exp
           primera vez
                                2 Kc (Kc,tgs ,,tgs, texp , n)n)
                                   Kc,tgs (Kc,v , v,t exp ,n)
                                   Kc (Kc,tgs tgs, texp ,
               2                   K (T            )
      C                                tgs
                                   K (Tc,tgs
                                             c,tgs
                                1.1. tgsPaso) 3
                                1.2. v (Tcvn 4
                                   K t Paso )
                                   v,     ,
                                    Ktgs (Tc,tgs )
                                      exp
            3 4                 3   Kc,tgs (ts, ..)
  5 6                           1.1. c,tgs (Kc,v3 v, texp , n)
                                   K Paso ,
                         TGS       K (T       )
                                1.3. tgs Paso 4
                                         Paso 5
                                          c,tgs
                                1.2. (T ) 3
                                1.1. Paso
                                   Kv, v expcv ..)
                                       t ,n
      V                         4
                                    Kc,tgs (ts,
                                    Kc,tgs (Kck,,Kst) , n)
                                         (ts, c,v
                                    Kc,v (Tc,tgs ) v, exp
                                    Ktgs
                                   Kc,tgs (ts, ..) 5
                                1.3. v expc,v ) 4
                                   v, Paso
                                1.2. v (Tc,v )
                                   K t Paso,n
c
as
      client
      auth. server              5   Kc,v (ts, c,v ,)v, ts ) , n)
                                    Kc,tgs (K
                                    K tgs (Tc,tgs
                                              ck, K exp
v
tgs
      verifier (server)
      ticket granting service
                                1.4. vt(TPaso 46
                                1.3. Paso 5
                                1.2. Paso
                                   K cv )
                                   v,     ,n
                                    Kv (Tc,v )
                                       exp
                                    Kc,tgs (Kc,v , v, texp , n)
                                6   Kc,v (ts, ck, Ks )
                                         (ts)
                                1.3.      Paso 5
Ktgs (Tc,tgs ) texp , n)
                                   Kc (Kc,tgs , tgs,
                                1.2. tgs, ttexp,,)n4
                                          Paso
                                1 Ktgs (Tc,tgs n
                                   c, tgs, exp
             1
             solo la
                          AS       c, t , n
                                   v, c,tgs (ts, ..)
                                   K exp
           primera vez
                                2 Kc (Kc,tgs ,,tgs, texp , n)n)
                                   Kc,tgs (Kc,v , v,t exp ,n)
                                   Kc (Kc,tgs tgs, texp ,
               2                   K (T            )
      C                            ticket
                                       tgs    c,tgs
                                1.1. tgsPaso) 3
                                   K (Tc,tgs
                                1.2. v (Tcvn 4
                                   K t Paso )
                                   v,     ,
                                    Ktgs (Tc,tgs )
                                      exp
            3 4                 3   Kc,tgs (ts, ..)
  5 6                           1.1. c,tgs (Kc,v3 v, texp , n)
                                   K Paso ,
                                   ticket
                         TGS       K (T       )
                                1.3. tgs Paso 4
                                         Paso 5
                                          c,tgs
                                1.2. (T ) 3
                                1.1. Paso
                                   Kv, v expcv ..)
                                       t ,n
      V                         4
                                    Kc,tgs (ts,
                                    Kc,tgs (Kck,,Kst) , n)
                                         (ts, c,v
                                    Kc,v (Tc,tgs ) v, exp
                                    Ktgs
                                   Kc,tgs (ts, ..) 5
                                   ticket
                                1.3. v expc,v ) 4
                                   v, Paso
                                1.2. v (Tc,v )
                                   K t Paso,n
c
as
      client
      auth. server              5   Kc,v (ts, c,v ,)v, ts ) , n)
                                    Kc,tgs (K
                                    K tgs (Tc,tgs
                                              ck, K exp
v
tgs
      verifier (server)
      ticket granting service
                                1.4. vt(TPaso 46
                                1.3. Paso 5
                                1.2. Paso
                                     ticket
                                   K cv )
                                   v,     ,n
                                    Kv (Tc,v )
                                       exp
                                    Kc,tgs (Kc,v , v, texp , n)
                                6   Kc,v (ts, ck, Ks )
                                         (ts)
                                1.3.      Paso 5
Diferencias con
       Needham-Schroeder
1. Uso de marcas de tiempo para evitar la reutilización
   de los tickets por terceros (Replay Attack) [4].
2. Introducción del Ticket Granting Service, para evitar
   volver a autenticar contra el KDC en cada uso.
3. Permite el uso entre distintos realms de
   autenticación.
Ampliaciones

Uso de criptografía de clave pública.


One-time passcode.
Desventajas  Problemas
1. Sensible a la elección de las claves
2. La distribución de claves debe ser segura
3. KDC centraliza las claves
    3.1.Puede comprometer a toda la red
    3.2.Solo funciona si el KDC está online
4. Requiere sincronización de tiempos
5. Necesidad de adaptar las aplicaciones
6. Implementaciones no interoperables [5]
Implementaciones
Microsoft Windows
http://msdn.microsoft.com/en-us/library/aa378747(VS.85).aspx

Apple MacOS X
http://developer.apple.com/opensource/kerberosintro.html

Kerberos Infrastructure HOWTO
http://tldp.org/HOWTO/Kerberos-Infrastructure-HOWTO/

Debian
http://www.debian-administration.org/articles/570
http://wiki.debian.org/LDAP/Kerberos

Ubuntu (Samba+Kerberos)
https://help.ubuntu.com/community/Samba/Kerberos

FreeBSD (Heimdal)
http://www.freebsd.org/doc/en/books/handbook/kerberos5.html
Bibliografía
1. B. Clifford Neuman and Theodore Ts'o. Kerberos: An Authentication
   Service for Computer Networks, IEEE Communications, 32(9):
   33-38. September 1994
2. John Kohl and B. Clifford Neuman. The Kerberos Network
   Authentication Service (Version 5). Internet Request for Comments
   RFC-1510. September 1993
3. S. M. Bellovin and M. Merritt. Limitations of the kerberos
   authenication system. Computer Communication Review, 20(5):
   119-132, October 1990
4. D. E. Denning and G. M. Sacco. Timestamps in key distribution
   protocols. Communication of the ACM, 24(8):533-536, August 1981
5. Findings of Fact-Allegedly New "Bad" Acts Relating to
   Interoperation (139a) New York v. Microsoft Corp., 224 F. Supp. 2d
   76 - Dist. Court, Dist. of Columbia 2002

More Related Content

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Kerberos

  • 2. Kerberos es un protocolo de Autenticación. Creado por Miller, Neuman, Schiller y Saltzer para el proyecto Athena del MIT, en los años 80. Basado en el protocolo Needham-Schroeder.
  • 3. The Kerberos Authentication System uses a series of encrypted messages to prove to a verifier that a client is running on behalf of a particular user.
  • 4. Kerberos is a distributed authentication service that allows a process (a client) running on behalf of a principal (a user) to prove its identity to a verifier (an application server, or just server) without sending data across the network that might allow an attacker or the verifier to subsequently impersonate the principal.
  • 5. exp 1. Kerberos 1 Kc (Kc,v , v, texp , n) c client C AS 1. 1. c, (T as auth. server (kdc) Kerberos Kerberos K v, texp), = K verifier t ) v n (K , c, (server) 2 v c,v v c,v exp 3 4 Kc (Kc,v , v, texp , n) 1 c, v, Paso 3 c, v,ttexp ,,n 1.1. exp n Kv (Tc,v ) = Kv (Kc,v , c, texp ) V 2 Kcc(Kc,v ,,v, ttexp,,n) K (Kc,v v, exp n) Kc,v (ts, ck, Ks ) 1.1. vv(Tc,v))) = 3 vv(Kc,v ,,c, ttexp)) K (Tc,v = K (Kc,v c, exp K Paso K Kv (Tc,v 3 Kc,v (ts, ck, Ks ) 1.1. Paso 3 1.1. Paso 3 1.2. Paso 4 Kv (Tc,v ) Kc,v (ts, ck, Kss)) Kc,v (ts, ck, K 4 ts, Kc,v Kv (Tc,v )) Kv (Tc,v
  • 6. exp 1. Kerberos 1 Kc (Kc,v , v, texp , n) c client C AS 1. 1. c, (T as auth. server (kdc) Kerberos Kerberos K v, texp), = K verifier t ) v n (K , c, (server) 2 v c,v v c,v exp 3 4 Kc (Kc,v , v, texp , n) 1 c, v, Paso 3 c, v,ttexp ,,n 1.1. exp n Kv (Tc,v ) = Kv (Kc,v , c, texp ) V 2 Kcc(Kc,v ,,v, ttexp,,n) K (Kc,v v, exp n) Kc,v (ts, ck, Ks ) ticket 1.1. vv(Tc,v))) = 3 vv(Kc,v ,,c, ttexp)) K (Tc,v = K (Kc,v c, exp K Paso K Kv (Tc,v 3 Kc,v (ts, ck, Ks ) 1.1. Paso 3 1.1. Paso 3 1.2. Paso 4 Kv (Tc,v ) Kc,v (ts, ck, Kss)) Kc,v (ts, ck, K 4 ts, Kc,v Kv (Tc,v )) Kv (Tc,v
  • 7. exp 1. Kerberos 1 Kc (Kc,v , v, texp , n) c client C AS 1. 1. c, (T as auth. server (kdc) Kerberos Kerberos K v, texp), = K verifier t ) v n (K , c, (server) 2 v c,v v c,v exp 3 4 Kc (Kc,v , v, texp , n) 1 c, v, Paso 3 c, v,ttexp ,,n 1.1. exp n Kv (Tc,v )key Kv (Kc,v , c, texp ) session = V 2 Kcc(Kc,v ,,v, ttexp,,n) K (Kc,v v, exp n) Kc,v (ts, ck, Ks )session key ticket 1.1. vv(Tc,v))) = 3 vv(Kc,v ,,c, ttexp)) K (Tc,v = K (Kc,v c, exp K Paso K Kv (Tc,v 3 Kc,v (ts, ck, Ks ) 1.1. Paso 3 1.1. Paso 3 1.2. Paso 4 Kv (Tc,v ) Kc,v (ts, ck, Kss)) Kc,v (ts, ck, K 4 ts, Kc,v Kv (Tc,v )) Kv (Tc,v
  • 8. exp 1. Kerberos 1 Kc (Kc,v , v, texp , n) c client C AS 1. 1. c, (T as auth. server (kdc) Kerberos Kerberos K v, texp), = K verifier t ) v n (K , c, (server) 2 v c,v v c,v exp 3 4 Kc (Kc,v , v, texp , n) 1 c, v, Paso 3 c, v,ttexp ,,n 1.1. exp n Kv (Tc,v )key Kv (Kc,v , c, texp ) session = V 2 Kcc(Kc,v ,,v, ttexp,,n) K (Kc,v v, exp n) Kc,v (ts, ck, Ks )session key ticket 1.1. vv(Tc,v))) = 3 vv(Kc,v ,,c, ttexp)) K (Tc,v = K (Kc,v c, exp K Paso K Kv (Tc,v authenticator 3 Kc,v (ts, ck, Ks ) 1.1. Paso 3 1.1. Paso 3 1.2. Paso 4 Kv (Tc,v ) Kc,v (ts, ck, Kss)) Kc,v (ts, ck, K 4 ts, Kc,v Kv (Tc,v )) Kv (Tc,v
  • 9. Ktgs (Tc,tgs ) texp , n) Kc (Kc,tgs , tgs, 1.2. tgs, ttexp,,)n4 Paso 1 Ktgs (Tc,tgs n c, tgs, exp 1 solo la AS c, t , n v, c,tgs (ts, ..) K exp primera vez 2 Kc (Kc,tgs ,,tgs, texp , n)n) Kc,tgs (Kc,v , v,t exp ,n) Kc (Kc,tgs tgs, texp , 2 K (T ) C tgs K (Tc,tgs c,tgs 1.1. tgsPaso) 3 1.2. v (Tcvn 4 K t Paso ) v, , Ktgs (Tc,tgs ) exp 3 4 3 Kc,tgs (ts, ..) 5 6 1.1. c,tgs (Kc,v3 v, texp , n) K Paso , TGS K (T ) 1.3. tgs Paso 4 Paso 5 c,tgs 1.2. (T ) 3 1.1. Paso Kv, v expcv ..) t ,n V 4 Kc,tgs (ts, Kc,tgs (Kck,,Kst) , n) (ts, c,v Kc,v (Tc,tgs ) v, exp Ktgs Kc,tgs (ts, ..) 5 1.3. v expc,v ) 4 v, Paso 1.2. v (Tc,v ) K t Paso,n c as client auth. server 5 Kc,v (ts, c,v ,)v, ts ) , n) Kc,tgs (K K tgs (Tc,tgs ck, K exp v tgs verifier (server) ticket granting service 1.4. vt(TPaso 46 1.3. Paso 5 1.2. Paso K cv ) v, ,n Kv (Tc,v ) exp Kc,tgs (Kc,v , v, texp , n) 6 Kc,v (ts, ck, Ks ) (ts) 1.3. Paso 5
  • 10. Ktgs (Tc,tgs ) texp , n) Kc (Kc,tgs , tgs, 1.2. tgs, ttexp,,)n4 Paso 1 Ktgs (Tc,tgs n c, tgs, exp 1 solo la AS c, t , n v, c,tgs (ts, ..) K exp primera vez 2 Kc (Kc,tgs ,,tgs, texp , n)n) Kc,tgs (Kc,v , v,t exp ,n) Kc (Kc,tgs tgs, texp , 2 K (T ) C ticket tgs c,tgs 1.1. tgsPaso) 3 K (Tc,tgs 1.2. v (Tcvn 4 K t Paso ) v, , Ktgs (Tc,tgs ) exp 3 4 3 Kc,tgs (ts, ..) 5 6 1.1. c,tgs (Kc,v3 v, texp , n) K Paso , ticket TGS K (T ) 1.3. tgs Paso 4 Paso 5 c,tgs 1.2. (T ) 3 1.1. Paso Kv, v expcv ..) t ,n V 4 Kc,tgs (ts, Kc,tgs (Kck,,Kst) , n) (ts, c,v Kc,v (Tc,tgs ) v, exp Ktgs Kc,tgs (ts, ..) 5 ticket 1.3. v expc,v ) 4 v, Paso 1.2. v (Tc,v ) K t Paso,n c as client auth. server 5 Kc,v (ts, c,v ,)v, ts ) , n) Kc,tgs (K K tgs (Tc,tgs ck, K exp v tgs verifier (server) ticket granting service 1.4. vt(TPaso 46 1.3. Paso 5 1.2. Paso ticket K cv ) v, ,n Kv (Tc,v ) exp Kc,tgs (Kc,v , v, texp , n) 6 Kc,v (ts, ck, Ks ) (ts) 1.3. Paso 5
  • 11. Diferencias con Needham-Schroeder 1. Uso de marcas de tiempo para evitar la reutilización de los tickets por terceros (Replay Attack) [4]. 2. Introducción del Ticket Granting Service, para evitar volver a autenticar contra el KDC en cada uso. 3. Permite el uso entre distintos realms de autenticación.
  • 12. Ampliaciones Uso de criptografía de clave pública. One-time passcode.
  • 13. Desventajas Problemas 1. Sensible a la elección de las claves 2. La distribución de claves debe ser segura 3. KDC centraliza las claves 3.1.Puede comprometer a toda la red 3.2.Solo funciona si el KDC está online 4. Requiere sincronización de tiempos 5. Necesidad de adaptar las aplicaciones 6. Implementaciones no interoperables [5]
  • 14. Implementaciones Microsoft Windows http://msdn.microsoft.com/en-us/library/aa378747(VS.85).aspx Apple MacOS X http://developer.apple.com/opensource/kerberosintro.html Kerberos Infrastructure HOWTO http://tldp.org/HOWTO/Kerberos-Infrastructure-HOWTO/ Debian http://www.debian-administration.org/articles/570 http://wiki.debian.org/LDAP/Kerberos Ubuntu (Samba+Kerberos) https://help.ubuntu.com/community/Samba/Kerberos FreeBSD (Heimdal) http://www.freebsd.org/doc/en/books/handbook/kerberos5.html
  • 15. Bibliografía 1. B. Clifford Neuman and Theodore Ts'o. Kerberos: An Authentication Service for Computer Networks, IEEE Communications, 32(9): 33-38. September 1994 2. John Kohl and B. Clifford Neuman. The Kerberos Network Authentication Service (Version 5). Internet Request for Comments RFC-1510. September 1993 3. S. M. Bellovin and M. Merritt. Limitations of the kerberos authenication system. Computer Communication Review, 20(5): 119-132, October 1990 4. D. E. Denning and G. M. Sacco. Timestamps in key distribution protocols. Communication of the ACM, 24(8):533-536, August 1981 5. Findings of Fact-Allegedly New "Bad" Acts Relating to Interoperation (139a) New York v. Microsoft Corp., 224 F. Supp. 2d 76 - Dist. Court, Dist. of Columbia 2002