Map of Contents for Active Directory.
Our goal from here is to have some account which will let us do the following.
- Communicate with Domain Controller.
- Use services which can make us talk to Domain joined machines without login.
- let us login to Domain joined machines and enumerate local accounts and exploit further.
- Repeat 1,2,3 steps again.
We can mainly have two different starting points for AD penetration testing. is a test account provided or not.
- User Generation, Enumeration & Validation
- Once you can communicate with Domain Controller (DC). you could enumerate with
- Authenticate with
- NTLM - older method.
- PFX file
- Impacket Notes
- check for Password re-uses with NetExec.
- If passwords are not sufficient and tickets are required for communication, use Kerberos Authentication with tools.
- if tickets are in memory use:
- if you find any weaknesses related to tickets, you could do the following attacks.
- Extract NTLM hash for reuse.
- Local machine - Secrets Dump
- DC - dcsync
- in some scenarios you could check if GoldenTicket is possible, but it is rare.
- if you find weaknesses related AD certificate services (Not part of OSCP).