PISA Pakistan β€” Community CERT

← βš™οΈ Red Team Fundamentals (Ethical)

9. Active Directory Attacks: Kerberos Exploitation & Domain Dominance

⏱ 10 min

Why Active Directory is a Prime Target in Pakistan

Active Directory (AD) is the backbone of identity and access management for most Pakistani enterprises, including government agencies, banks, and telecom companies. With NADRA's national identity database integrated into many systems, a compromised AD domain can lead to massive data breaches. The Pakistan Computer Emergency Response Team (PakCERT) and NCCIA 1799 helpline frequently receive reports of credential theft leading to financial fraud. Red teamers must understand AD attack vectors to help organizations harden their defenses.

Key Kerberos Exploitation Techniques

Kerberos is the default authentication protocol in AD. Attackers exploit it via Kerberoasting, ASREPRoasting, and Golden Ticket attacks. These techniques allow privilege escalation and persistence. Tools like Impacket, Mimikatz, and Rubeus are commonly used. MITRE ATT&CK references: T1558 (Steal or Forge Kerberos Tickets), T1649 (Steal or Forge Service Tickets).

Hands-On Lab: Performing Kerberoasting with Impacket

  • Set up a Kali Linux machine with Impacket installed.
  • Enumerate service accounts using BloodHound to identify privileged SPNs.
  • Use GetUserSPNs.py from Impacket to request TGS tickets.
  • Crack offline with Hashcat to recover plaintext passwords.
  • Document findings and recommend disabling weak service accounts.

Do/Don't for AD Red Teaming

  • Do: Obtain written authorization and scope from the organization.
  • Don't: Exploit vulnerabilities without confirming they are in scope.
  • Do: Use Mimikatz only in controlled lab environments with proper disclaimers.
  • Don't: Leave any persistence mechanisms after the assessment.

Takeaway: Securing Service Accounts

Immediately audit service accounts for weak passwords and enable Protected Users security group. Enforce strong, complex passwords and consider rotating them regularly. Use Microsoft's Local Administrator Password Solution (LAPS) to manage local admin credentials.

← PrevNext β†’