33
Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 Tim Medin - @timmedin 1

Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 1

Page 2: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 2

Slides:

https://www.dropbox.com/s/d7xpwdu8cvq

149s/Kerberoastv2.pdf?dl=0

Code:

https://github.com/nidem/kerberoast

Page 3: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 3

Page 4: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 4

Page 5: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 5

Page 6: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Leve

l o

f A

cce

ss

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 6

Full Domain

Compromise

Initial

Compromise

No Access

Golden Ticket

Kerberoast Cracking

Ticket RewritingKerberoast/Mimikatz

Page 7: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 7

Page 8: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 8

I'm Tim, and I need to

authenticate to something. Here

is a request encrypted using my

password hash

I can decrypt your

communication using

your NTLM hash. Here is

a TGT encrypted with

your NTLM Hash

KDC

Key Distribution Center(Windows Domain Controller)

Page 9: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 9

I need to authenticate to a

service via Kerberos. Can

I get a ticket for another

service. Here is my TGT to

verify my identity

Sure, here it is. I don't check

if you have permissions on

the target service. I leave

that up to the service. I have

enough to do.

KDC

Key Distribution Center(Windows Domain Controller)

Page 10: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 10

Here is some stuff I

can't read, but the

KDC says this should

verify me.

I can decrypt this ticket and

the HMAC signature using my

hash as the key is good. I see

your user info in this ticket, but

before I authorize you I may*

need to verify the details

Other Server

Page 11: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 11

Page 12: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 12

I need to talk to the

mail server on

cliff.medin.local

KDC

Before I can send

a ticket I need to

encrypt it using

the target

server's hash Service Account

MAIL/cliff.medin.local mailsvc

HTTP/charlotte.medin.local websvc

MSSQL/db01.medin.local sqlengine

Page 13: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 13

Page 14: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 14

Page 15: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 15

Page 16: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 16

Page 17: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 17

Page 18: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

18

Here is my TGT,

Can I get a ST for

Sql01

Web01

Mail01

Sure thing! Your TGT

looks good. The

services will authorize

you, not me. I can't

keep track of all that

Page 19: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 19

Page 20: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 20

Page 21: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 21

Page 22: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 22

Page 23: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 23

Page 24: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 24

Page 25: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 25

Page 26: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 26

Page 27: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 27

Page 28: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 28

Page 29: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 29

Service's Hash

Inject Straight into RAM (hidden feature)

Page 30: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 30

Page 31: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 31

Page 32: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 32

Page 33: Attacking Kerberos: Kicking the Guard Dog of Hades ©2014 ......Attacking Kerberos: Kicking the Guard Dog of Hades –©2014 Tim Medin - @timmedin 10 Here is some stuff I can't read,

Attacking Kerberos: Kicking the Guard Dog of Hades – ©2014 Tim Medin - @timmedin 33