Windows PowerShell Active Directory Group Enumeration via Get-AdGroup Cmdlet
Flags PowerShell script blocks that call Get-ADGroup with -Filter to enumerate Active Directory groups.
- Product
- windows
- Category
- ps_script
- Author
- frack113 (SigmaHQ), DRL 1.1
- Published
- 2022-03-17
- Updated
- 2026-07-31
ATT&CK techniques
DiscoveryRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule flags PowerShell activity that calls the Get-AdGroup cmdlet with a -Filter parameter, consistent with enumerating Active Directory groups. Attackers commonly use group enumeration to discover access pathways and identify targets for subsequent discovery or privilege escalation. The detection relies on PowerShell Script Block text telemetry (e.g., Script Block Logging) capturing the cmdlet invocation.
Reporting behind it
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No 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.
title: Windows PowerShell Active Directory Group Enumeration via Get-AdGroup Cmdlet
id: 9e36ae21-6108-4132-8f74-505a44558d2b
status: test
description: This rule flags PowerShell activity that calls the Get-AdGroup cmdlet with a -Filter parameter, consistent with enumerating Active Directory groups. Attackers commonly use group enumeration to discover access pathways and identify targets for subsequent discovery or privilege escalation. The detection relies on PowerShell Script Block text telemetry (e.g., Script Block Logging) capturing the cmdlet invocation.
references:
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1018/T1018.md
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/powershell/powershell_script/posh_ps_get_adgroup.yml
author: frack113, Huntrule Team
date: 2022-03-17
modified: 2022-11-17
tags:
- attack.discovery
- attack.t1069.002
logsource:
product: windows
category: ps_script
definition: "Requirements: Script Block Logging must be enabled"
detection:
selection:
ScriptBlockText|contains|all:
- "Get-AdGroup "
- -Filter
condition: selection
falsepositives:
- Unknown
level: low
license: DRL-1.1
related:
- id: 8c3a6607-b7dc-4f0d-a646-ef38c00b76ee
type: derived