Skip to content

Golden dMSA #1140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2025
Merged

Golden dMSA #1140

merged 1 commit into from
Jul 17, 2025

Conversation

carlospolop
Copy link
Collaborator

🤖 Automated Content Update

This PR was automatically generated by the HackTricks News Bot based on a technical blog post.

📝 Source Information

🎯 Content Summary

Overview

Windows delegated Managed Service Accounts (dMSAs) and group Managed Service Accounts (gMSAs) derive their passwords on the Domain Controller (DC) using a KDS (Key Distribution Service) Root Key and a per‐account ManagedPasswordID (GUID). The password is computed as an AES256‐HMAC of the SID and ManagedPasswordID, then Base64‐encoded and stored in the msDS-ManagedPassword attribute.

Golden dMSA Attack

By extracting the DC’s KDS Root Key and enum...

🔧 Technical Details

Golden dMSA Attack: Allows offline derivation of any Active Directory delegated or group Managed Service Account password by extracting the DC’s KDS Root Key and computing the AES256‐HMAC of the account SID and ManagedPasswordID, bypassing all live Kerberos requests.

Key Material Extraction: Dump the KDS Root Key from a Domain Controller (requires Enterprise Admin or SYSTEM) via Volume Shadow Copy, registry hive export (reg save HKLM\\SECURITY🤖 Agent Actions

Added comprehensive coverage of the Golden gMSA/dMSA attack:

  1. Created new file
    src/windows-hardening/active-directory-methodology/golden-dmsa-gmsa.md
    • Explains MSA password derivation, attack prerequisites, 4-phase workflow, tooling, detection & mitigation.
    • Includes detailed command examples with GoldenDMSA, mimikatz, etc.
    • Provides references section with blog and related research links.

  2. Updated Active-Directory methodology README
    • Inserted internal cross-reference to the new page inside the “Compromise any gMSA in the forest” subsection for easy navigation.

These changes document the latest offline Managed Service Account password-derivation technique and integrate it into existing AD attack paths.

✅ Review Checklist

  • Content is technically accurate
  • Formatting follows HackTricks style guidelines
  • Links and references are working
  • Content adds educational value
  • No sensitive information is exposed

This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.

@carlospolop
Copy link
Collaborator Author

🔗 Additional Context

Original Blog Post: https://github.com/Semperis/GoldenDMSA

Content Categories: Based on the analysis, this content was categorized under "generic-hacking/active-directory-kerberos (new subsection for AD service account attacks)".

Repository Maintenance:

  • MD Files Formatting: 854 files processed

Review Notes:

  • This content was automatically processed and may require human review for accuracy
  • Check that the placement within the repository structure is appropriate
  • Verify that all technical details are correct and up-to-date
  • All .md files have been checked for proper formatting (headers, includes, etc.)

Bot Version: HackTricks News Bot v1.0

@carlospolop
Copy link
Collaborator Author

merge

@carlospolop carlospolop merged commit ef9082b into master Jul 17, 2025
@carlospolop carlospolop deleted the update_Golden_dMSA_20250717_012843 branch July 17, 2025 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant