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 questionsBy 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
| Word | What it means | Example |
|---|---|---|
| Kerberos | how a directory signs people in with tickets, not passwords | |
| TGT | ticket-granting ticket: the first ticket, proving who you are | |
| Service ticket | a ticket for one service, got by showing the TGT | |
| KDC | key distribution centre: the part of the DC that issues tickets | |
| Encryption type | the cipher a ticket is locked with | aes256 or RC4 |
The cells students fill in are left blank in this preview.
Starter
Have a go
Starter
3 questionsGet 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
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
klist -eShown here, not run. Press Start lab to type it into your own lab’s terminal.
Check
Have a go
Check
3 questionsWhy 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