Using pywerview to Enumerate Active Directory and Identify Privilege Risks

· Original article ↗

Summary

An Active Directory enumeration walkthrough shows how pywerview queries can reveal privileged accounts, Kerberoastable service accounts, delegation settings, and group memberships that may enable privilege escalation.

Key points

  • The walkthrough uses authenticated pywerview LDAP queries with low-privileged credentials to enumerate users, groups, computers, delegation settings, and other domain data.
  • It identifies a Domain Admin account with adminCount=1.
  • A service account with an SPN and constrained delegation to WIN-SQL is described as a Kerberoasting and impersonation risk if its ticket can be cracked.
  • The exercise reports multiple computers configured for unconstrained delegation.
  • A Backup Operators member is identified; the article says this membership could be abused to obtain the domain controller's NTDS.dit database or registry hives.
  • Examples show pywerview filters for SPNs, admin-count, delegation, group membership, and full LDAP attributes.

Article Details

Topic
Authenticated pywerview enumeration of the ignite.local Active Directory domain, identifying privileged accounts and delegation misconfigurations.

MITRE ATT&CK

Products

Tools

Related Articles