Active Directory
When testing active directory our goals should be to:
gain a foothold on a machine on the domain and elevate our privileges
enumerate the domain to find additional accounts, users, etc. that ideally increase our privilege level on the domain
gain access to the domain controller
persist on the domain (situation dependent)
Assuming that we've already enumerated the domain, we should now be focused on gathering credentials to move laterally within the domain.
Cached credential retrieval
Once you have local admin privileges on a domain joined computer you can dump the credentials stored in LSASS and the SAM database.
Mimikatz
Attacks
Kerberoasting
If we find interesting service accounts while enumerating we can export the Kerberos 5 etype 23 hash for offline cracking.
Alternatively, we can use the Invoke-Kerberoast.ps1, to enumerate SPNs, request tickets, and export them in a format ready for cracking.
AS-REP Roasting
The AS-REP roasting attack attempts to retrieve the Kerberos hash of users that don't require Kerberos pre-authentication.
Unconstrained delegation
Constrained delegataion
DCSync
Lateral movement
Moving laterally within a domain is fairly straightforward once you have credentials.
Windows remote management
PS-Remoting
**
PS-EXEC
SMB-EXEC
Pass the hash
Pass the hash allows attackers to authenticate to a remote system using an NTLM hash.
Many PTH tools require both the LM and NTLM hash as part of the command. If the LM hash is not available you can use a string of 32 zeros in its place.
Overpass the hash
The overpass the hash technique utilizes the NTLM hash to obtain a Kerberos ticket, thus avoiding NTLM authentication.
Pass the ticket
Persistence
Golden tickets
Last updated