Active Directory Attacks
By Jaskaran & Mufaddal
Brief Introduction About us
Disclaimer
Agenda
Introduction to Active Directory
What is Active Directory?
Why Active Directory?
Components of Active Directory
Active Directory - Structure
Most Common AD Security Issues
AD Admin Accounts Have Old Passwords
Weak Domain Password Policy
We should set to at least 12 characters, preferably 15 and use Fine-Grained Password Policies for Admins & Service Accounts
Server GPOs Linked to Domain Controllers
Server GPOs Linked to Domain Controllers
Only use GPOs dedicated to Domain Controllers, don’t link GPOs already linked to other OUs.
Service Accounts in Domain Admins
Mitigations:
Default Domain Administrator Account SPN
A Service Principal Name (SPN) is a name in Active Directory that a client uses to uniquely identify an instance of a service. An SPN combines a service name with a computer and user account to form a type of service ID. For Kerberos authentication (a protocol that authenticates client and server entities on a network) to function, an SPN must be registered for each SQL Server service account in Active Directory.
AD Admin Accounts with SPNs
Domain Permission Delegation Issues
Windows Authentication
NTLM Authentication
Kerberos Authentication
Active Directory Attack Simulation
AD Enumeration Vectors
Manual Approach
Automated Approach
Domain Enumeration with Powerview
We will use Powerview for our enumeration Purpose: https://github.com/PowerShellMafia/PowerSploit/blob/master/Recon/PowerView.ps1
Domain Enumeration with Powerview
Domain Enumeration with Powerview
User Enumeration with Powerview
Invoke-UserHunter:
User Enumeration with Powerview
BloodHound
BloodHound
An Example View of Enumeration Done with the help of BloodHound
Privilege Escalation
– Hunting for Local Admin access on other machines
– Hunting for high privilege domain accounts (like a Domain Administrator)
There are various ways of locally escalating privileges on Windows box:
– Missing patches
– Automated deployment and AutoLogon passwords in clear text
– AlwaysInstallElevated (Any user can run MSI as SYSTEM)
– Misconfigured Services
– DLL Hijacking and more
Privilege Escalation
– PowerUp: https://github.com/PowerShellMafia/PowerSploit/tree/master/Privesc
– BeRoot: https://github.com/AlessandroZ/BeRoot
– Privesc: https://github.com/enjoiz/Privesc
We are using PowerUp for our demonstration
Privilege Escalation
Privilege Escalation
Privilege Escalation
Lateral Movement - Kerberoasting
Lateral Movement - Kerberoasting
Lateral Movement - Kerberoasting
Lateral Movement - Kerberoasting
Lateral Movement - Kerberoasting
Lateral Movement - Kerberoasting
Lateral Movement - Kerberoasting
Persistence
Persistence
Persistence
Invoke-Mimikatz -Command '"kerberos::golden /User:Administrator /domain:scrm.local /sid:S-1-5-21-1874506631-3219952063-538504511 /krbtgt:ff46a9d8bd66c6efd77603da26796f35 id:500 /ptt"'
Persistence
Persistence
Persistence
Persistence
Persistence
References
References
Thank You for Listening!��Please don’t ask questions that can hurt us ☺