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
pwd-shadow-credentials.mdMarkdown128 lines5.7 KiBsource raw download

title: "Password - Shadow Credentials" section: "Active Directory" sectionSlug: "active-directory" sourcePath: "docs/active-directory/pwd-shadow-credentials.md" sourceUrl: "https://github.com/swisskyrepo/InternalAllTheThings/blob/203bb0c0b290/docs/active-directory/pwd-shadow-credentials.md" sha: "203bb0c0b290" isIndex: false#

Password - Shadow Credentials#

Add Key Credentials to the attribute msDS-KeyCredentialLink of the target user/computer object and then perform Kerberos authentication as that account using PKINIT to obtain a TGT for that user. When trying to pre-authenticate with PKINIT, the KDC will check that the authenticating user has knowledge of the matching private key, and a TGT will be sent if there is a match.

:warning: User objects can't edit their own msDS-KeyCredentialLink attribute while computer objects can. Computer objects can edit their own msDS-KeyCredentialLink attribute but can only add a KeyCredential if none already exists

Requirements:

Exploitation:

Scenario#

Shadow Credential Relaying#

Workstation Takeover with RBCD#

Requirements:

Exploitation:

References#