HTB Pirate Predictable Machine Passwords, gMSA Credential Th... - #2801
Open
carlospolop wants to merge 1 commit into
Open
HTB Pirate Predictable Machine Passwords, gMSA Credential Th...#2801carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://0xdf.gitlab.io/2026/09/05/htb-pirate.html Content Categories: Based on the analysis, this content was categorized under "Windows Hardening > Active Directory Methodology, especially Resource-based Constrained Delegation, Constrained Delegation, and a new subsection for predictable pre-created computer-account passwords and SPN-jacking/service-class substitution; cross-reference gMSA credential theft". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview and impact: This Hack The Box Pirate walkthrough documents an assume-breach attack against the Windows Active Directory domain
pirate.htb, beginning with the supplied low-privileged credentialspentest / p3nt3st2025!&. The demonstrated portion identifies pre-created computer accounts whose legacy passwords equal their lowercase hostnames, compromisesMS01$, abuses its membership inDomain Secure Serversto read ...🔧 Technical Details
Detecting hidden internal hosts through TTL and TCP path differences: Compare traceroutes or response TTLs across ports exposed on the same public address. If most services terminate at a Windows host with TTL 127 but one service returns TTL 126 or requires an extra hop, that port may be forwarded to a VM or container behind the visible server. Use TCP-aware tracing such as
lft target:port, because ordinary ICMP traceroutes may not reproduce the forwarding path.Predictable pre-created computer-account passwords: Enumerate computer accounts created in advance for legacy domain joins. Some retain an initial password equal to the lowercase hostname without the trailing
$, such as accountMS01$with passwordms01. NetExec'spre2kmodule enumerates candidates, tests the password format, requests TGTs, and saves the credential caches. Test Kerberos explicitly with-k...🤖 Agent Actions
Plan:
Repository review shows dedicated constrained-delegation, RBCD, gMSA/dMSA, Kerberos, LDAP relay-hardening, and AD methodology pages. I’m now checking exact coverage and source provenance before selecting the single best page, as required by the non-duplication rule.
The RBCD and protocol-transition portions are already well covered. Two additions remain materially new: legacy pre-created machine-account credentials (including Kerberos-only validation) and full SPN-jacking (distinct from existing same-host
/altservicesubstitution). I’m locating primary research for those techniques and will avoid duplicating the already-documented relay/RBCD chain.Plan update: source verification is complete. I will modify two existing pages only:
README.md: the missing pre-created machine-account → gMSA authorization chain.constrained-delegation.md: ghost/live SPN-jacking and same-key service-class substitution.RBCD relay/setup is already present, so it will not be duplicated.
Edits are implemented. I’m now reviewing the exact diff for technical accuracy, citation numbering, forbidden-source leakage, markdown structure, and repository cleanliness.
A final provenance check found an authoritative Microsoft schema page for
msDS-GroupMSAMembership. I’m adding it ahead of the reporting blog in the per-file reference order and tightening that paragraph’s attribution.Plan update: content and references are finalized. Remaining work is validation only: run whitespace/reference checks and an mdBook build if the local toolchain is available, then inspect the final status.
Implemented HackTricks updates in two existing pages:
src/windows-hardening/active-directory-methodology/README.mdpre2kenumeration and Kerberos-specific validation.src/windows-hardening/active-directory-methodology/constrained-delegation.mdAdded numbered references to the original SPN-jacking research, NetExec source, Microsoft schema documentation, and the supplied blog.
Validation passed:
git diff --checkmdbook buildwas skipped becausemdbookis not installed.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.