Windows Active Directory (AD) has been the center stage for most corporate infrastructure for decades. Hence, it is crucial for security professionals to grasp the intricacies and threats associated with Windows infrastructures.
Windows Active Directory (AD) has been the center stage for most corporate infrastructure for decades. Hence, it is crucial for security professionals to grasp the intricacies and threats associated with Windows infrastructures.
Active Directory Penetration Tests offer a better way for security experts to analyze and engage with the threats present in modern AD environments. This course, suitable for experienced pentesters and anyone interested in taking their pentesting to the next level, includes loads of detailed videos and thorough walkthroughs of attack scenarios and vectors, built upon extensive practical experience and dedicated research in compromising Windows AD ecosystems.
This course emulates real-world attack scenarios, beginning with an adversary with nothing but just a network-level access and no Active Directory-level access to obtaining an initial foothold, laterally moving withing the network and escalating privileges to that of Enterprise Administrator level. The emphasis lies on abusing often-overlooked domain features rather than merely software vulnerabilities.
Key areas of focus include:
External OSINT
Initial Access via Kerberos-based Password Spray, Network Protocol Abuses, etc.
Active Directory Situational Awareness
Privilege Escalation via Kerberoasting, Kerberos Delegations, Access Control Lists, etc.
Persistence via Golden Ticket, Silver Ticket, Diamond Ticket, Sapphire Ticket, etc.
Abusing Active Directory Certificate Services (AD CS)
Domain and Forest Trust Abuses
Penetration Testing Report Writing
Extra resource if inclined to build your own lab:
https://github.com/Orange-Cyberdefense/GOAD?tab=readme-ov-file
NTLM Authentication Process
Client Request: The client (e.g., a user's computer) sends a request to the server to authenticate.
Server Challenge: The server responds with a challenge, which is a random string of characters.
Client Response: The client encrypts the challenge using the user's password hash and sends the encrypted response back to the server.
Server Verification: The server decrypts the response using the stored password hash and verifies if it matches the challenge. If it does, the authentication is successful.
NTLM-Relay Attack Process
Intercept Authentication: The attacker positions themselves in the middle of the communication between the client and the server (Man-in-the-Middle position).
Initiate Connection: The attacker initiates a connection to the target server as the victim user.
Relay Challenge: The attacker relays the server's challenge to the victim client.
Client Response: The victim client sends the encrypted response back to the attacker.
Relay Response: The attacker relays the client's response back to the server.
Gain Access: The server verifies the response and grants access to the attacker, who can now perform actions as the victim user.
Mitigation Steps
Enable SMB Signing: This ensures that the data being transmitted is signed, preventing tampering.
Use Extended Protection for Authentication (EPA): This adds additional binding to the authentication process, making it harder for attackers to relay.
AS-REP Roasting is a technique used to extract password hashes from Kerberos tickets when Kerberos pre-authentication is disabled.
AS-REP Roasting Attack
Reconnaissance: The attacker identifies accounts with Kerberos pre-authentication disabled.
Send AS-REQ: The attacker sends an Authentication Server Request (AS-REQ) to the Domain Controller for the target account.
Receive AS-REP: The Domain Controller responds with an Authentication Server Response (AS-REP) containing the Ticket Granting Ticket (TGT).
Extract Hash: The attacker extracts the password hash from the AS-REP.
Mitigation Steps
Enable Kerberos Pre-Authentication: Ensure that Kerberos pre-authentication is enabled for all accounts.
Extra resource on relay attacks against IPv6:
https://dirkjanm.io/relaying-kerberos-over-dns-with-krbrelayx-and-mitm6/
Kerberoast is an attack that targets the Kerberos authentication protocol to extract password hashes from Kerberos tickets.
Reconnaissance: The attacker identifies service accounts with Service Principal Names (SPNs) set in the Active Directory.
Request Kerberos Ticket: The attacker, using an authenticated domain user, requests a Kerberos Ticket Granting Ticket (TGT) for the target SPN.
Extract Ticket: The attacker extracts the encrypted Kerberos ticket from the response.
Mitigation Steps
Enable Kerberos Pre-Authentication: Ensure that Kerberos pre-authentication is enabled for all accounts.
Monitor for Suspicious Activity: Use monitoring tools to detect unusual authentication requests and ticket requests.
Use Strong Passwords: Enforce the use of strong, complex passwords for service accounts to make brute force attacks more difficult.
Limit SPN Assignment: Only assign SPNs to accounts that absolutely need them and regularly review and remove unnecessary SPNs.
Kerberos Delegation Purpose: Allows a service to request resources or perform actions on behalf of a user while maintaining security principles of authentication and authorization.
Types of Delegation:
Unconstrained Delegation: The service can impersonate the user for any service on any server.
Constrained Delegation: Limits the services that the delegated server can access.
Resource-Based Constrained Delegation: Further restricts delegation to specific resources.
Use Cases: Commonly used when an application, such as a web server, needs to access resources hosted on a different server, such as a SQL database.
Security: Helps facilitate secure, seamless interactions between services on behalf of users.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.