Metasploit Walkthrough Chains 13 Active Directory Attack Phases

· Original article ↗

Summary

A hands-on Metasploit lab walkthrough chains 13 Active Directory attack phases—from LDAP and Kerberos enumeration through AD CS abuse, RBCD, credential theft and Golden Tickets—and pairs them with defensive controls.

Key points

  • The walkthrough uses Metasploit modules to enumerate users, groups, computers, domain policies and certificate templates in a Windows Server 2019 Active Directory lab.
  • Demonstrated techniques include AS-REP roasting, Kerberoasting, credential dumping, pass-the-hash and pass-the-ticket, RBCD abuse, Shadow Credentials and certificate-template abuse.
  • The article shows how ESC1 and ESC4 certificate-template misconfigurations can enable privileged-account impersonation and credential extraction.
  • It connects a default MachineAccountQuota of 10 to rogue computer-account creation and subsequent RBCD or Shadow Credentials techniques.
  • The chain culminates in forged Kerberos tickets, including a Golden Ticket, for persistent domain-level access.
  • Defensive recommendations include setting MachineAccountQuota to zero, hardening certificate templates, rotating the krbtgt secret, and monitoring LDAP changes and anomalous Kerberos activity.

Article Details

Topic
Metasploit-based Active Directory exploitation walkthrough and defensive mitigations

MITRE ATT&CK

Vendors

Products

Tools

Related Articles