PowerShell module enumeration of AD principals via get-ADPrincipalGroupMembership

Flags PowerShell module usage of Get-ADPrincipalGroupMembership and Get-ADUser with -pr -f patterns indicative of AD discovery.

FreeReviewedSigma · Low · v2
Product
windows
Category
ps_module
Author
frack113 (SigmaHQ), DRL 1.1
Published
2021-12-15
Updated
2026-07-31

ATT&CK techniques

Discovery
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags PowerShell module activity where commands related to enumerating Active Directory principal group membership are present in either the payload or context. It can also match PowerShell calls that retrieve AD user details using get-aduser with specific parameters (including a flag pattern for pre-auth related behavior). Enumerating groups and users helps an attacker map domain permissions and identify accounts with elevated access. The detection relies on PowerShell telemetry fields containing the relevant command text in Payload and/or ContextInfo.

Related detections9 linkedT1069.001 — drag to rearrange
Suspicious Group Discovery - Command (via process_creation)
Suspicious Group Discovery - PowerShell (via powershell)
Windows PowerShell module commandlet names matching known exploitation and post-exploitation tooling
Windows Process Creation: Suspicious PowerShell Commandlets Used by Known Exploitation Tools
Windows file creation for SharpHound/BloodHound collection output filenames
PowerShell Module: Get-SmbShare Used for SMB Share Discovery
PowerShell ScriptBlock Enumeration of AD Group Membership and User Attributes (Windows)
Windows PowerShell: Query SMB Shares via Get-SmbShare
Windows Process Discovery via wmic.exe "group" Flag
PowerShell module enumeration of AD principals via get-ADPrincipalGroupMembership
Pivot detection · T1069.001 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.