Certi-Bhai AD CS Exploitation Toolkit - #2778
Open
carlospolop wants to merge 1 commit into
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://github.com/incredibleindishell/Certi-Bhai Content Categories: Based on the analysis, this content was categorized under "Windows Hardening > Active Directory Methodology > AD Certificates > AD CS Domain Escalation; optionally cross-reference Abusing Active Directory ACLs/ACEs > Shadow Credentials for msDS-KeyCredentialLink modification". 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
Certi-Bhai is a collection of PowerShell proof-of-concept tools for testing exploitable Active Directory Certificate Services (AD CS) configurations. The repository covers ESC1, ESC2/ESC3, ESC15, manual certificate-signing-request generation and submission, and ASP.NET interfaces for certificate enrollment and LDAP modification from IIS. These attacks target dangerous AD CS and Active Directory configurations rat...
🔧 Technical Details
Arbitrary certificate-identity injection: When an AD CS template grants an attacker enrollment permission and accepts requester-controlled subject or SAN values, submit a PKCS#10 request containing the identity of a privileged user or computer. Export the issued certificate and private key as a PFX and use certificate-based authentication to obtain credentials for the injected identity.
Certificate Request Agent impersonation: If an attacker can obtain an Any Purpose or Certificate Request Agent certificate and the CA does not adequately constrain on-behalf-of enrollment, use that certificate to authorize a second request for an arbitrary principal. The certificate returned by the second request represents the victim and may be used for Kerberos authentication.
Certificate-to-Kerberos authentication: Load an issued PFX, convert the required certificate data into the input format accepted by the Kerberos tool, a...
🤖 Agent Actions
Updated:
src/windows-hardening/active-directory-methodology/ad-certificates/domain-escalation.mdAdded:
RawDatalacks the private key.ESC15 and Shadow Credentials were not duplicated because existing pages already cover them comprehensively.
Validation:
git diff --checkpassed. Full mdBook build was skipped becausemdbookis not installed.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.