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-read-dmsa.mdMarkdown121 lines5.1 KiBsource raw download

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

Password - dMSA#

Delegated Managed Service Accounts (dMSAs)

BadSuccessor#

Requirements:

Tools:

badsuccessor-attack-flow

Manual Exploitation:

Credential Dumping#

When you request a TGT for a dMSA, it comes with a new structure called KERB-DMSA-KEY-PACKAGE. This structure includes two fields: current-keys and previous-keys. - Akamai Blog Post

The previous-keys field contains the RC4-HMAC of the password (NT Hash).

.\Invoke-BadSuccessorKeysDump.ps1 -OU 'OU=temp,DC=aka,DC=test'

References#