Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

How Kerberos signs people in

After this lesson: I can get a Kerberos ticket, read its encryption type and say what each ticket is for.

55 min lesson2 commandsActive Directory security lab: a Samba domain controller to audit and harden on one private Ubuntu VM

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

Nobody sends a password twice

When Jade signs in once in the morning, she does not send her password to every server she uses all day. Instead the directory gives her a ticket, and she shows the ticket.

That is Kerberos. Understanding how a ticket is made, and how it is protected, is what lets you spot the weak one in lesson 4.

The one rule

Warning

Ask only for tickets in your own lab directory. Requesting tickets or reading another organisation's Kerberos needs written permission; in the UK, without it, it can break the Computer Misuse Act 1990.

Quick check: the rule

Have a go

Quick check: the rule

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

By the end of this lesson

Note

I can get a Kerberos ticket, read its encryption type and say what each ticket is for.

Key words

WordWhat it meansExample
Kerberoshow a directory signs people in with tickets, not passwords
TGTticket-granting ticket: the first ticket, proving who you are
Service ticketa ticket for one service, got by showing the TGT
KDCkey distribution centre: the part of the DC that issues tickets
Encryption typethe cipher a ticket is locked withaes256 or RC4

The cells students fill in are left blank in this preview.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Get a ticket and read it

Sign in as Jade with kinit, which gets her TGT from the KDC. Then klist -e lists her tickets, and -e shows each ticket's encryption type.

Read the Etype line. A good ticket is aes256-cts-hmac-sha1-96, a strong modern cipher. Hold that word in mind: lesson 4 shows a ticket that is not.

Sign in as Jade

Command
echo Helpdesk-2026x | kinit [email protected]

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

List her tickets with their ciphers

Command
klist -e

Shown here, not run. Press Start lab to type it into your own lab’s terminal.

Check

Have a go

Check

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Why the cipher matters

A ticket is locked with a key made from an account's password. If the cipher is strong, like AES, cracking that lock offline is out of reach.

If it is the old RC4 (shown as arcfour-hmac), an attacker who captures the ticket can guess password after password against it. They do this on their own machine, as fast as their hardware allows.

So two things decide whether a captured ticket is dangerous: the cipher, and the password's strength. Jade's ticket is AES. Lesson 4 meets one that is not.

A common mistake

Warning

People assume every ticket in a modern directory is AES. It is not: a service account can still hand out RC4 tickets, and an account that allows RC4 is the one an attacker looks for. You check, you never assume.

What you learned

A TGT proves who you are; a service ticket is for one service; both are locked with a cipher made from a password. The cipher and the password together decide whether capturing a ticket helps an attacker.

Next, before the weak ticket, the other old way to sign in: NTLM.

Exit quiz

Have a go

Exit quiz

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teaching a class? Set this module for your students with a teacher guide, marked assignments and a lab for every student.